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 4FF4845C9B for ; Tue, 12 Nov 2024 23:10:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4B3CE40B9A; Tue, 12 Nov 2024 23:10:15 +0100 (CET) Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by mails.dpdk.org (Postfix) with ESMTP id 3339C40B9A for ; Tue, 12 Nov 2024 23:10:14 +0100 (CET) Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-37d47eff9acso3784165f8f.3 for ; Tue, 12 Nov 2024 14:10:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731449414; x=1732054214; darn=dpdk.org; 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=+x2X1ql9+3sQNvKkWFn2CCD9d6b1/7ahpraVsoj+8hk=; b=KmYhjwU/FeMjb0YtKu9nyWv9wtbZKImjMsPwcISjqDexUq9GZdOu/MD9r8fe5ngC+/ IAL2774m6qXoGTAmzJ3pdhiYCYQzPvFXsNDfq06xpxH5wNU3ITmOPDXXjKlI3CDcJCi5 kIX2EBmS2mavwDK1CLAUqGjooH000C2oZFzgPkoSqpw+ro/iNNW1DGOAGwR2GzHAlvFi oVZBDRNamD0tvK4fIafe0GmtzGgZu1KCf6ttxGOHc2Ukzg+VcRLTi26zPK1rnG8ty3vG zWMw1KksKllc5DhNAln1PLLlvPYULXUJJ5T8ydiNTsYnm8RSBvJMv/vEJRUtv4YM+CP5 77oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731449414; x=1732054214; 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=+x2X1ql9+3sQNvKkWFn2CCD9d6b1/7ahpraVsoj+8hk=; b=cCmK+CrymuU9zfUVq30esvlGIELOgBiJ0WTEjFiUwoMS0dyhQHG1IFPdaUxAN+T56b 0IEWbdQM9zIKfLi9FFfZ7QrLyYbBTFMh+AvEHPQnOhy6+8NzoVK8jNqoMtjmFkTDETPF vvcov1M6pKTDAqRIr6QP3crnfB5j9Ies3mvUqc760p2nWW19yseHjTcWDu2pBw+wXGSS zG4W+2dskrI4aIBbuzndOO8PO8Z5bbCYf+QeOvWtj1Asj+sW+uc6GZt/1XjB5luY0vvh 2eKr17cyV7/PvLYTB0ONrBTksayTN2HHVTYCBJ3046kO5hTeJYGZgbMKKAW878tpfzzs bKng== X-Forwarded-Encrypted: i=1; AJvYcCVrD8T90myulmR0qawwpMbNb0fF4nv/UFvl0iDj0ubZJOw24AlAcO3xhTVqrsZdiLdaMiNgOhM=@dpdk.org X-Gm-Message-State: AOJu0YwFAgIZTTW/XNR0viHzUCvgQ6DfsRp37FcymlW6ev2wI44/bvOm CyJdj+dH3pPNgXBlBtXSHqF2YWI+Gq+d0Q3H4Pp/cTGY4BXC/O17 X-Google-Smtp-Source: AGHT+IHbnm6HaFurCTwAdTbVnR5dRPrNRkdHYdUa0ZyGvLDw40er9hQY+tB0MD6Sa8161WPGMibo0w== X-Received: by 2002:a05:6000:4106:b0:381:f5c2:97c9 with SMTP id ffacd0b85a97d-381f5c297e0mr10694898f8f.25.1731449413763; Tue, 12 Nov 2024 14:10:13 -0800 (PST) Received: from localhost ([2a01:4b00:d036:ae00:e89d:e9a1:da72:2f9d]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381eda04049sm16238510f8f.93.2024.11.12.14.10.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2024 14:10:13 -0800 (PST) From: luca.boccassi@gmail.com To: Nicolas Chautru Cc: Maxime Coquelin , dpdk stable Subject: patch 'baseband/acc: fix ring memory allocation' has been queued to stable release 22.11.7 Date: Tue, 12 Nov 2024 22:07:47 +0000 Message-ID: <20241112220754.666489-37-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241112220754.666489-1-luca.boccassi@gmail.com> References: <20241023211704.1216956-79-luca.boccassi@gmail.com> <20241112220754.666489-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 22.11.7 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/14/24. 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/58d7a7a993b52b5120205cbada4f0d0c2173af9a Thanks. Luca Boccassi --- >From 58d7a7a993b52b5120205cbada4f0d0c2173af9a Mon Sep 17 00:00:00 2001 From: Nicolas Chautru Date: Thu, 7 Nov 2024 16:32:38 -0800 Subject: [PATCH] baseband/acc: fix ring memory allocation [ upstream commit 0c5709824b531e83b36ed91852cea98b1cb292e1 ] Allowing ring memory allocation whose end address is aligned with 64 MB. Previous logic was off by one. Fixes: 060e76729302 ("baseband/acc100: add queue configuration") Signed-off-by: Nicolas Chautru Reviewed-by: Maxime Coquelin --- drivers/baseband/acc/acc_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/baseband/acc/acc_common.h b/drivers/baseband/acc/acc_common.h index 7ea3cc9a02..ddd7d63f8a 100644 --- a/drivers/baseband/acc/acc_common.h +++ b/drivers/baseband/acc/acc_common.h @@ -729,7 +729,7 @@ alloc_sw_rings_min_mem(struct rte_bbdev *dev, struct acc_device *d, sw_rings_base, ACC_SIZE_64MBYTE); next_64mb_align_addr_iova = sw_rings_base_iova + next_64mb_align_offset; - sw_ring_iova_end_addr = sw_rings_base_iova + dev_sw_ring_size; + sw_ring_iova_end_addr = sw_rings_base_iova + dev_sw_ring_size - 1; /* Check if the end of the sw ring memory block is before the * start of next 64MB aligned mem address -- 2.45.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-12 22:06:59.845769612 +0000 +++ 0037-baseband-acc-fix-ring-memory-allocation.patch 2024-11-12 22:06:58.687307516 +0000 @@ -1 +1 @@ -From 0c5709824b531e83b36ed91852cea98b1cb292e1 Mon Sep 17 00:00:00 2001 +From 58d7a7a993b52b5120205cbada4f0d0c2173af9a Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 0c5709824b531e83b36ed91852cea98b1cb292e1 ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -19 +20 @@ -index 4c60b7896b..bf218332be 100644 +index 7ea3cc9a02..ddd7d63f8a 100644 @@ -22 +23 @@ -@@ -795,7 +795,7 @@ alloc_sw_rings_min_mem(struct rte_bbdev *dev, struct acc_device *d, +@@ -729,7 +729,7 @@ alloc_sw_rings_min_mem(struct rte_bbdev *dev, struct acc_device *d,