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 32638428F8 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 2DEBF42BFE; Sun, 9 Apr 2023 17:26:48 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2071.outbound.protection.outlook.com [40.107.101.71]) by mails.dpdk.org (Postfix) with ESMTP id ABB70410EE 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=guDEzTwFDy5kF9qaBMzCwR8DBHKRdjkIThDHne3oXTZdytHOyfj1dY1ePxiF6iK2jFMzanQHsp2SXtugttWXZaIVXnP8pTqIjCc/MEITeaTCnFLej4lLslN2SFKXNv7fLtRVlbbPym+QrtUdjNLI48ITeTfA5swjgmuksDeX1Zkrvr25W5w/anzuFJ8T+/MQu+u0meDkl4kCCUq5QBUmHOv/TfMxjJE5jcYWu4xGAGi6JhcDdcj+dEWLyITBPOd16dYhpl3opRN9jzYj2Nn8Eg+UwK9qYhtTQQkSr6kdpk9CoKC0ZNcKXeCt1oRF4MMO6zqreJzfHbHzC8SoGhvvFw== 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=RlWjhiGzGJg6YLq8bvsFPYy11XFR+NWY6boCma+YC2c=; b=AseysWAoqZ8f8tSfnU7yWgtff8YlSTCTRJIAA0I8+f61oqH8QT2v3SfSjZtcsjwItnVeDYogX+ubgwBOnNz+3B+v9XaBNhbq4hfAdODdI7kvzJaxelSOXkDVOefWzGMRXjIKYYgxMUH2Ic+NOxM7Ot5h+0FEffhSrtWNaKxn+DVmjMzYRWS3B0clFAYYPXUNF8FsXERgm+5iZUbGSU63phXPSAgQmQYXnz+b+z/UzfFcxkC0zs+2ePk73vhJGaJKzHZ1oq/pjDTiNW0BebsiWvlHR44OunvzOqNSLHY/IIL+DgrfhcfQnPsoCb9U1Mz/CwkGQB9RXZ0edhbDhuF8gA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=RlWjhiGzGJg6YLq8bvsFPYy11XFR+NWY6boCma+YC2c=; b=pwxxMQ+w6TKxfcC4tTcBVet7URgP/BPDs67YallUsR8z62xWdSIG3Yv3zQg1ZQtqX26E9swgvNB1svMLMIbF8GoHQZZfKUO2jV0OZXzfUP0o+qpwe8uLekL0rI7dzizfdqgmd4yAp0+mi9qVmyumvP1yuAHykhvW5gQS5u1jGXZKUxSBijlrN8F5nguW7nffvUVO/m5dUsnGxq7MZTjlrTtaht7AGoWYGMiWpgaboaRgRF0HhQorQlMf8NAssZsxurEGFwGEhvkCcIxqPyka/UiJDnGz13n/So6oI7F9RPHfuasUlpacY9zMNDI9aCoHOt14rAli7NMjrWIhpqA2rw== Received: from DS7P222CA0024.NAMP222.PROD.OUTLOOK.COM (2603:10b6:8:2e::13) by CYYPR12MB8870.namprd12.prod.outlook.com (2603:10b6:930:bb::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Sun, 9 Apr 2023 15:26:45 +0000 Received: from DM6NAM11FT097.eop-nam11.prod.protection.outlook.com (2603:10b6:8:2e:cafe::f5) by DS7P222CA0024.outlook.office365.com (2603:10b6:8:2e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38 via Frontend Transport; Sun, 9 Apr 2023 15:26:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DM6NAM11FT097.mail.protection.outlook.com (10.13.172.72) 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.67) 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:42 -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:41 -0700 From: Xueming Li To: Hernan Vargas CC: Maxime Coquelin , dpdk stable Subject: patch 'test/bbdev: fix crash for non supported HARQ length' has been queued to stable release 22.11.2 Date: Sun, 9 Apr 2023 23:23:21 +0800 Message-ID: <20230409152529.5308-14-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: DM6NAM11FT097:EE_|CYYPR12MB8870:EE_ X-MS-Office365-Filtering-Correlation-Id: 0d051824-33d7-4c74-4331-08db390ed3e9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c7qUP1s1zIrTncrieA2vxT2w9yXDC89okMCWUV+p7KVIQ88YbCBgVx7DLctmotg0bQMkA9lDmGf9MDXnBEsfa1KKXkWNlWd2guQ3zceH3gDBIorSFrHfI7RTufKZZQ4qcjOyhvgd65paeqAvxocwnRsbi9aKRQr77moPbI+s3xzqWtb9/3XufwM+Pg0J2E2gF+ywdTBSaJGbj07H4Av2+qUySZIKrLrJAHyE+yVUzwStlGvD5tfiox+3A78L+e3SdiFuBUmLIqgMw/fPfXm7RpFkLfc31NVH76+v9vvUKtPi9dgNwkhkkE+gj5DEYjCBzTz2MscyLq6SSZo5w2owKJRCALOxItN7adpTgpXNzLqVwHfLZNSzAjoL6YWCjuqgvo1awS9vPREpAWzipuFn2YlINqyG/Am+G3dMo0n6kpEv/5EAkgibz5Jj9Ix+pRta32CRmpWkYs56pfAj9z0XJCp8LuhT8MS9XFOq9y3aCTd2J5geta5HmplV6BPnjrN8DyZ2ZhCixqDk5jq8+3GlBZSZr6geVPHM4IOc74Iy/y/TYvMOgYLTKGWIlPbWwpwMNN5cQwFDjB51YhlYGrzw3Zb80x0d8YdhryB6BZmYmat7bLAEaeYzd/P1J/7mL6Lr02BVyYVuOYqEyNGR9bPbrm6gL+qMoWNdUJNoYkLy6ONP2wWVeE162l1qzQ+hDbNFnbbQWWteoWaeTzK3iLYOJFI8vrVSJOVH4gr+/pOhAnPWxs4/GITD5mP+XrjZlcNnAMdY6Xf9Bl6tU3yRZdXytSTkckKr8y7FIkJGJAhaO5NPuBO6UlOm4aFfAYG1KOd6n+GoPFbKDuNx67HeCQaTSA== X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230028)(4636009)(39860400002)(396003)(136003)(376002)(346002)(451199021)(40470700004)(46966006)(36840700001)(86362001)(36756003)(316002)(41300700001)(70586007)(70206006)(6916009)(4326008)(7696005)(6666004)(966005)(54906003)(478600001)(40480700001)(55016003)(82310400005)(5660300002)(8676002)(8936002)(2906002)(36860700001)(82740400003)(7636003)(356005)(16526019)(6286002)(186003)(53546011)(1076003)(26005)(47076005)(426003)(336012)(2616005)(83380400001)(40460700003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2023 15:26:44.9099 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0d051824-33d7-4c74-4331-08db390ed3e9 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.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT097.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR12MB8870 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/cdfa1794a622bb5d40bfeff1f95b8c53ef941517 Thanks. Xueming Li --- >From cdfa1794a622bb5d40bfeff1f95b8c53ef941517 Mon Sep 17 00:00:00 2001 From: Hernan Vargas Date: Thu, 2 Mar 2023 12:21:55 -0800 Subject: [PATCH] test/bbdev: fix crash for non supported HARQ length Cc: Xueming Li [ upstream commit bee9ac50e5da1f573dfb3c647687da15326d7c3e ] Fix segmentation fault happening in corner case in test-bbdev. This fault could happen when running some specific vectors which size are not supported by the PMD. Fixes: 335c11fd2763 ("app/bbdev: support HARQ validation") Signed-off-by: Hernan Vargas Reviewed-by: Maxime Coquelin --- app/test-bbdev/test_bbdev_perf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index e001074861..0c32e366a3 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -84,7 +84,7 @@ /* Increment for next code block in external HARQ memory */ #define HARQ_INCR 32768 /* Headroom for filler LLRs insertion in HARQ buffer */ -#define FILLER_HEADROOM 1024 +#define FILLER_HEADROOM 2048 /* Constants from K0 computation from 3GPP 38.212 Table 5.4.2.1-2 */ #define N_ZC_1 66 /* N = 66 Zc for BG 1 */ #define N_ZC_2 50 /* N = 50 Zc for BG 2 */ @@ -2113,9 +2113,9 @@ validate_op_harq_chain(struct rte_bbdev_op_data *op, ops_ld->n_filler; if (data_len > deRmOutSize) data_len = deRmOutSize; - if (data_len > orig_op->segments[i].length) - data_len = orig_op->segments[i].length; } + if (data_len > orig_op->segments[i].length) + data_len = orig_op->segments[i].length; /* * HARQ output can have minor differences * due to integer representation and related scaling -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-04-09 21:45:39.173545600 +0800 +++ 0013-test-bbdev-fix-crash-for-non-supported-HARQ-length.patch 2023-04-09 21:45:38.589042200 +0800 @@ -1 +1 @@ -From bee9ac50e5da1f573dfb3c647687da15326d7c3e Mon Sep 17 00:00:00 2001 +From cdfa1794a622bb5d40bfeff1f95b8c53ef941517 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit bee9ac50e5da1f573dfb3c647687da15326d7c3e ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -20 +22 @@ -index 45e1780df7..027f32cbf1 100644 +index e001074861..0c32e366a3 100644 @@ -32 +34 @@ -@@ -2111,9 +2111,9 @@ validate_op_harq_chain(struct rte_bbdev_op_data *op, +@@ -2113,9 +2113,9 @@ validate_op_harq_chain(struct rte_bbdev_op_data *op,