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 3355641EA5 for ; Wed, 15 Mar 2023 23:46:38 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F5F1410DD; Wed, 15 Mar 2023 23:46:38 +0100 (CET) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mails.dpdk.org (Postfix) with ESMTP id 04627410FB for ; Wed, 15 Mar 2023 23:46:36 +0100 (CET) Received: by mail-wr1-f54.google.com with SMTP id h17so4669800wrt.8 for ; Wed, 15 Mar 2023 15:46:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678920395; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Vt+1hWSgqCslEo6/x+MG4lGrH3E5HmKdmyl3CW8IrLM=; b=Ju1dOFEfqOG4tplV1sJe/8bOVhfu4umg8iD0XmXhbKjimgpLhtyzkRgPCAcK5mp6iV tEK6IqUdw5ufmxGcgNAyaFB7/cVEJf8cP4fTiviafaauIoLiZ2WACpJ/SjjzsTrRTPtz AOomRpAVPuXfH0mqDG8FHr69Yvcxi7Jf3xjfEN/WGUG0YN9VwfKChWloOE8NDGmobbty GmorNqm1XryCSGLksyBVBfXQdrWQ3HPekpX+pAnOFyzcD5CyLd2mI19mjQmeqD+8AF6c dAt45v45x52OtaHwFNn85jTiCWxZAdLmhqMWUPWTELjaZd/OYL9QjAKVZn2UWP0kJnrQ GX3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678920395; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Vt+1hWSgqCslEo6/x+MG4lGrH3E5HmKdmyl3CW8IrLM=; b=yRuXnL0VZEE6he1Hrki1aA6WdX43wcyiJqq7jBYe0xZHQ0C1JDseFyi7u+IMokigxL EDpNSI5e0r8HarsBvYfJkLPAE4ftcOUw8KkehpvJXVHpryBA4c9ONEqXzIPDBHfoJcq0 VHLwbcnuhd5GhqgZgEtQnodoD8PmdsJext2MBiR+HQvxr9evulF9g6PYufmmue4kVDsm /bN47opvbwAbqauTMTS3F59CKHzLhCwk0QzfCHUspdFpII3d81fzfz1t2VPj6d79pgXP KEzeuldw8brJ7vhUQOgLfYBJeqLp4zqMvfngqKfcP1+9E/Kz/vOgE+qcaCwtVuit7F7U fAvQ== X-Gm-Message-State: AO0yUKXeByOPgtHGBANx9Lt8ZknNhMthIHMrJ4jc9RA0T5R+yAGfyrfk 3lT9fa431wjp/FYuVT21hCw= X-Google-Smtp-Source: AK7set/cDziBUcyzHU4+w+6vNDaJqASo2wfPcplnF3jnhCqIaGnSWPeHy1mrdpBboL5dwBDiUtpntA== X-Received: by 2002:adf:ed03:0:b0:2c8:9ab8:85f9 with SMTP id a3-20020adfed03000000b002c89ab885f9mr2811282wro.40.1678920395661; Wed, 15 Mar 2023 15:46:35 -0700 (PDT) Received: from localhost ([2a01:4b00:d307:1000:f1d3:eb5e:11f4:a7d9]) by smtp.gmail.com with ESMTPSA id j19-20020a5d6e53000000b002cfea3c49d5sm5395601wrz.52.2023.03.15.15.46.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Mar 2023 15:46:35 -0700 (PDT) From: luca.boccassi@gmail.com 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 20.11.8 Date: Wed, 15 Mar 2023 22:45:54 +0000 Message-Id: <20230315224631.1025649-3-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230315224631.1025649-1-luca.boccassi@gmail.com> References: <20230223093715.3926893-71-luca.boccassi@gmail.com> <20230315224631.1025649-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 20.11.8 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/17/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://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/9df9bd72b00d52167e6285988534b39c9ca0d1a7 Thanks. Luca Boccassi --- >From 9df9bd72b00d52167e6285988534b39c9ca0d1a7 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 [ 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 f38d991f87..5f8bd91ac7 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -76,7 +76,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 */ @@ -1925,9 +1925,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.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-03-15 22:44:49.814447124 +0000 +++ 0003-test-bbdev-fix-crash-for-non-supported-HARQ-length.patch 2023-03-15 22:44:49.479848080 +0000 @@ -1 +1 @@ -From bee9ac50e5da1f573dfb3c647687da15326d7c3e Mon Sep 17 00:00:00 2001 +From 9df9bd72b00d52167e6285988534b39c9ca0d1a7 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit bee9ac50e5da1f573dfb3c647687da15326d7c3e ] + @@ -11 +12,0 @@ -Cc: stable@dpdk.org @@ -20 +21 @@ -index 45e1780df7..027f32cbf1 100644 +index f38d991f87..5f8bd91ac7 100644 @@ -23 +24 @@ -@@ -84,7 +84,7 @@ +@@ -76,7 +76,7 @@ @@ -32 +33 @@ -@@ -2111,9 +2111,9 @@ validate_op_harq_chain(struct rte_bbdev_op_data *op, +@@ -1925,9 +1925,9 @@ validate_op_harq_chain(struct rte_bbdev_op_data *op,