From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C403E428F8 for ; Sun, 9 Apr 2023 17:26:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A4A4B42D0C; Sun, 9 Apr 2023 17:26:48 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2048.outbound.protection.outlook.com [40.107.92.48]) by mails.dpdk.org (Postfix) with ESMTP id EAFE742C24 for ; Sun, 9 Apr 2023 17:26:46 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZyGQ24yFrq3n/3FOaoKSEHIS3upHpo4jFb1fXrBtSKB/OdmyZGsFQQYEmcETeExpdUrf9LrtLRiTXDi/W+PwRuoVc9BvnJNkml2Qu34tlwuNhG5zD2hxCEx3JKchya4Yvg0e+XYaPNWetqDnjBghkvWY0lkT/6z7ChIsTnbj19htlB19ewTeinySqha21oO2gECALSGZLoWbDZU2bH2AqyfAbM7fabOJ2OgLVH6tElOWvuIcI67TAg0JGyhi/oHrzEw88jhYbDAf1laCnP0g1gKIZuAQbjCvX7YmTyiqShx3gwCa7LM7vcal+G8qLAD3eEd2AaYWMPrW9495r9jpiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8gbj6HEXBQTn6K6FCj/QvURQ1qeCVaheGUWWQBSFKjY=; b=hhOGQ8pDWLvDUt70TMiVw6/bxfaH89Cc1nQhNzEzKPVJDsY0/o6nqEWSRDHz/CSKmISnNzyqBM7Lht+j2lbfIK6rF1b/Zhe7njeQKSVSD4hgEm+NFN/cCEGczyAexsP4Fl0TQdjZLT8xCjfMENggrvJ14FC8Jb1JiQ+oA2GpM7/6rRkwz1fhtZY0v445eTqNvPn3KMUW+5kChl+A6Gz+fwFv0vE4fi3uwXzbJ+k4cWOI+ychf7cDx6MGNiMVW4OrSphOpnDL5JyhBPrDdDKxR9rzYNmhNNNDOabSVeVhihy8S0Kt0hT4ny0WcggM7X0zPaGhCUsL8mO2DP7h2EGmcQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8gbj6HEXBQTn6K6FCj/QvURQ1qeCVaheGUWWQBSFKjY=; b=e4EvMWgJB/7C2tj9pNz00LNMo6ZTW8M9yqiFlVaLBW4CWbCzowThKECxlq1sMAASOYC555sTgmRYSutSP8GUAcaQtO4HZZABTTuzR+rRKA7X86MziFCwDmno9CruEM+a7ffgs8PV+3vyTtlVmv7vGari3ZIrOWqNXZJLx6HkcGe0qHi6CRdGvKST3PJd8QCR5FiLxjwCkIkZldCpxLELT/xDGYei+AdadB9BWIoKwANVqMolgJit0boAZVPsQ3TwgEKERgrQE9w8pgNTdrGNbTlk7vaO2iucZ5N4mUYFiBcRnzQ9HkG/hZaqU4wfhZP7BJrJN0cg6i/JgcWwm5RjeQ== Received: from MW4PR03CA0347.namprd03.prod.outlook.com (2603:10b6:303:dc::22) by IA0PR12MB8256.namprd12.prod.outlook.com (2603:10b6:208:407::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.35; Sun, 9 Apr 2023 15:26:44 +0000 Received: from CO1NAM11FT029.eop-nam11.prod.protection.outlook.com (2603:10b6:303:dc:cafe::be) by MW4PR03CA0347.outlook.office365.com (2603:10b6:303:dc::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.35 via Frontend Transport; Sun, 9 Apr 2023 15:26:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by CO1NAM11FT029.mail.protection.outlook.com (10.13.174.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.20 via Frontend Transport; Sun, 9 Apr 2023 15:26:44 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Sun, 9 Apr 2023 08:26:43 -0700 Received: from nvidia.com (10.126.230.37) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Sun, 9 Apr 2023 08:26:42 -0700 From: Xueming Li To: Hernan Vargas CC: Maxime Coquelin , dpdk stable Subject: patch 'test/bbdev: extend HARQ tolerance' has been queued to stable release 22.11.2 Date: Sun, 9 Apr 2023 23:23:22 +0800 Message-ID: <20230409152529.5308-15-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230409152529.5308-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230409152529.5308-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT029:EE_|IA0PR12MB8256:EE_ X-MS-Office365-Filtering-Correlation-Id: 508407ea-9f93-4af9-ce63-08db390ed371 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: h1E1bv2rcJe/ORlw1BI4EO2YvS8+vprlJeAu4J+t8ISI+k1hygGhP5KZZ6AY7rBt2vvyP4R263+IXFllxujUUi6K9/5OK6iek5Q17006+0cK5jn5fARTjMR6xKnsN4g4yUKLPFc3r93UJjR5/9wyNaTNnbQcZRw1gsW25VBIcwpDmai5xNQUtMEPs3pjRh62rFmLG6w6Ks6UCM88awT0aY1t7h/aWQkNoKHhy8X6A2iRD1IyZj+DRpAKakaiFao1W6nZIyHlK1CrUchhtn0IoVvdAqadrkbZFn2zz0Zb1WMRJ1in0DgXsVfcI/TxumUFfXpzvnHyeboYW+AItxUehaL96Hfr7ht/4EkDxTjkyqtuDciMo4RyvKRnYRpnGRXX7cO+ZXex7NdbpZD7zuYj2KpWi6KIHqgASYDzM8nuvoc8Zb9wgAC/GdeQygRbQBjzUUfrArmHd5F35F6mZb0+Yao+Z7gFg/s5OT45jdm+6m/Ha+74X/aVYqygpuHPJ4Z3e155e5d0b7IK0hRH8PXIvlzzUFSA+fZoHxqQiMWWI4zjEm+4H5R/um80K5lbF7MSjLv2vvQnyaDYTxgEvVtawa7uxdMPABEu2iziuDTSbXHtk0J/WAksMpOHMaZ7xr6PfqVyK/Bk2cVfEJLS0eX7jzDK3fmerywPyA8We28HXyDSW8SRMuowLDpTVrdjYHxjnXBby+l5974oXDMRCF0cMOrNTU5BgPqhwuz2Hj/G0warDnOm8StPSrqMOYo4mqtSfehgtb2CR3knOOthATRqXKIZZzZnTMOcWZoqBlAGT85GZv0bBdb3Hz0n6kE5GV7Sz6GOBL1RU9ORL5Asf2cl1g== X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230028)(4636009)(346002)(39860400002)(376002)(136003)(396003)(451199021)(46966006)(40470700004)(36840700001)(478600001)(7696005)(6666004)(316002)(54906003)(1076003)(26005)(53546011)(16526019)(6286002)(186003)(966005)(2906002)(70586007)(70206006)(5660300002)(8676002)(6916009)(4326008)(41300700001)(8936002)(82310400005)(356005)(82740400003)(7636003)(55016003)(86362001)(40480700001)(36756003)(40460700003)(47076005)(83380400001)(2616005)(336012)(426003)(36860700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2023 15:26:44.1896 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 508407ea-9f93-4af9-ce63-08db390ed371 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT029.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8256 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 22.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 04/11/23. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging/commit/dccdf95daad1116c2c53a82832526b09dd68bc95 Thanks. Xueming Li --- >From dccdf95daad1116c2c53a82832526b09dd68bc95 Mon Sep 17 00:00:00 2001 From: Hernan Vargas Date: Thu, 2 Mar 2023 12:21:56 -0800 Subject: [PATCH] test/bbdev: extend HARQ tolerance Cc: Xueming Li [ upstream commit 39b601c462b8192b8f1c98fe26b604430ebcc8e4 ] HARQ memory implementation could have different size assumptions. Extending HARQ tolerance to cover different implementations. Fixes: 335c11fd2763 ("app/bbdev: support HARQ validation") Signed-off-by: Hernan Vargas Reviewed-by: Maxime Coquelin --- app/test-bbdev/test_bbdev_perf.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index 0c32e366a3..2f15bf6fe8 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -95,6 +95,7 @@ #define K0_3_1 56 /* K0 fraction numerator for rv 3 and BG 1 */ #define K0_3_2 43 /* K0 fraction numerator for rv 3 and BG 2 */ +#define HARQ_MEM_TOLERANCE 256 static struct test_bbdev_vector test_vector; /* Switch between PMD and Interrupt for throughput TC */ @@ -2092,13 +2093,17 @@ validate_op_harq_chain(struct rte_bbdev_op_data *op, uint16_t data_len = rte_pktmbuf_data_len(m) - offset; total_data_size += orig_op->segments[i].length; - TEST_ASSERT(orig_op->segments[i].length < - (uint32_t)(data_len + 64), + TEST_ASSERT(orig_op->segments[i].length < (uint32_t)(data_len + HARQ_MEM_TOLERANCE), "Length of segment differ in original (%u) and filled (%u) op", orig_op->segments[i].length, data_len); harq_orig = (int8_t *) orig_op->segments[i].addr; harq_out = rte_pktmbuf_mtod_offset(m, int8_t *, offset); + /* Cannot compare HARQ output data for such cases */ + if ((ldpc_llr_decimals > 1) && ((ops_ld->op_flags & RTE_BBDEV_LDPC_LLR_COMPRESSION) + || (ops_ld->op_flags & RTE_BBDEV_LDPC_HARQ_6BIT_COMPRESSION))) + break; + if (!(ldpc_cap_flags & RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_FILLERS ) || (ops_ld->op_flags & @@ -2174,7 +2179,7 @@ validate_op_harq_chain(struct rte_bbdev_op_data *op, /* Validate total mbuf pkt length */ uint32_t pkt_len = rte_pktmbuf_pkt_len(op->data) - op->offset; - TEST_ASSERT(total_data_size < pkt_len + 64, + TEST_ASSERT(total_data_size < pkt_len + HARQ_MEM_TOLERANCE, "Length of data differ in original (%u) and filled (%u) op", total_data_size, pkt_len); -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-04-09 21:45:39.199604600 +0800 +++ 0014-test-bbdev-extend-HARQ-tolerance.patch 2023-04-09 21:45:38.589042200 +0800 @@ -1 +1 @@ -From 39b601c462b8192b8f1c98fe26b604430ebcc8e4 Mon Sep 17 00:00:00 2001 +From dccdf95daad1116c2c53a82832526b09dd68bc95 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 39b601c462b8192b8f1c98fe26b604430ebcc8e4 ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org @@ -19 +21 @@ -index 027f32cbf1..74e7e13940 100644 +index 0c32e366a3..2f15bf6fe8 100644 @@ -30 +32 @@ -@@ -2090,13 +2091,17 @@ validate_op_harq_chain(struct rte_bbdev_op_data *op, +@@ -2092,13 +2093,17 @@ validate_op_harq_chain(struct rte_bbdev_op_data *op, @@ -50 +52 @@ -@@ -2172,7 +2177,7 @@ validate_op_harq_chain(struct rte_bbdev_op_data *op, +@@ -2174,7 +2179,7 @@ validate_op_harq_chain(struct rte_bbdev_op_data *op,