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 DDAF448B59 for ; Thu, 20 Nov 2025 13:45:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D908340289; Thu, 20 Nov 2025 13:45:35 +0100 (CET) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mails.dpdk.org (Postfix) with ESMTP id F26B540289 for ; Thu, 20 Nov 2025 13:45:34 +0100 (CET) Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-477aa218f20so5498975e9.0 for ; Thu, 20 Nov 2025 04:45:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763642734; x=1764247534; 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=6ShxE12DKIgLXQM5JwrQxX9tfwinepVTJo9n12WYARY=; b=HRXHQTQR1whDRkkOypeeJBDmNfIAX1dWTaYZpLJMPDsYwQC0Yy+S1Dhq5/VQAb3zwm 6hwTo+Qh4EwqLLgJQkoiZy6avlzGaKqUNnlS5ZUr7g7Ty66ThvQJncGZFjO9OAARL1Rn 5Qvca9wAQQHHHw/V8Z5ThAYO/Ggt0SfAtNHgWJThpcmA7vjI9CgVRWYzJJgpzCX3Eqfj TZXw/13zJNaLtftFtwSSyY0UCF1wWUpj0c9SGlzHPTsRmH89dHr8G9u2ZQp13GJGpaxW 95F9vVYOotix0JUP7D5nEgTpBB+vLyGsybE5HK4g0W+XEXtUP4Ze8GosY9xfs4bSoM+k GfPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763642734; x=1764247534; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=6ShxE12DKIgLXQM5JwrQxX9tfwinepVTJo9n12WYARY=; b=IaGAkMOZmKKcDJ0fdRkJxF6RkWKFmpYUOH3QkQVa7GtAWVvjz2J8LNUEsTXaE7a3zU ivgHGJCeon2Cf42s1aGIqoBkFeT10TPqI4pSIjr0lx3Ony/GC5wH4ziDzDHhCgBMiUcu hYJIrC12taUIOJZVg6io/HuXAKcBO1b2ZRo3utw7ve5nNxUMUiCBm0l6/0JjKDPsxOG6 BjmnQ3zNx4Cj/vpQTSFAVEdBKuv8EmO9VOyRvN7QtM8+zLKZySlptBc2JMzR/pSIZbwr lZPJ23opbRHKOtq7aygTKQRbslsS/UjVqwOhXtJmEdHcJgXZZwbafNMjGtOdBh2xp5ZO fN/w== X-Gm-Message-State: AOJu0Yz9H1TCpGo7DoTx6bclkPznB3O/ixYUZXA+giyIHMQ5xHwnd9GO /WNVVVutWW83IynsfW1WZPud+IQbhFBPflQj59WOrM2gQZ8A4DsdoEcGsMY7m+HC X-Gm-Gg: ASbGncvCzcRyYKKCBGkILceUtuggFUBcNjLfxYFQTXgTzAQ5s1c5X4Ow2qUhjtxtdbN ZMhVu9OsyECBOIWxDj0EW6D7r2mh2f6kZOA9Uy3t9ta9FGZMEVgNF3dlFnsP31lmXHlXJib7L3r jSN2X1QRLG1nk/9UKSGjZ4HV980iAK2KD9YUmX+xZRrQerTuK8ranfx5NacTvB2U6OCrSWx0fMU T8ZP1HMfxV1nI1JAwBduE8oeLiSKpoNDV3wuqSrRSI1e41pFdCErcFIDPUdzF+AdvBojxVSGxge LGqfH/WPstEtRopYv+fRrpcm9tjwHYIqZCiTiD62ls5lxgAEoLiwBbRbEpbhysOPUgsNuRbUwpR TQwm2u+8+OMgsLDIX9WSupREJEbU7RDbegmKBfmZcFIrSLrmxzqey3f2hMt3N0LMvjlR64kP7na VX7lwotwFAdCmMoiBs X-Google-Smtp-Source: AGHT+IGRECWZ7/f2lQ6ySb7HX6SRNUVh/YRaH7f8pkBqB6mrfLpx05JOhJke0pqR1WuzQS6shDgimQ== X-Received: by 2002:a05:600c:1c06:b0:477:b642:9dc9 with SMTP id 5b1f17b1804b1-477b9e4176bmr20798915e9.28.1763642734488; Thu, 20 Nov 2025 04:45:34 -0800 (PST) Received: from localhost ([2a01:4b00:d036:ae00:f372:8d1a:399f:e8a2]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-42cb7fb9190sm5469748f8f.33.2025.11.20.04.45.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Nov 2025 04:45:33 -0800 (PST) From: luca.boccassi@gmail.com To: Sunil Kumar Kori Cc: dpdk stable Subject: patch 'common/cnxk: fix max number of SQB buffers in clean up' has been queued to stable release 22.11.11 Date: Thu, 20 Nov 2025 12:44:39 +0000 Message-ID: <20251120124514.757933-7-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251120124514.757933-1-luca.boccassi@gmail.com> References: <20251112165308.1618107-49-luca.boccassi@gmail.com> <20251120124514.757933-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.11 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/22/25. 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/55eaf1cf8f35eb42e14c7bd985ea257993f2bab0 Thanks. Luca Boccassi --- >From 55eaf1cf8f35eb42e14c7bd985ea257993f2bab0 Mon Sep 17 00:00:00 2001 From: Sunil Kumar Kori Date: Thu, 13 Nov 2025 10:07:57 +0530 Subject: [PATCH] common/cnxk: fix max number of SQB buffers in clean up [ upstream commit f3c15bb6062475a62451c62ca2c5c9a5e12706c8 ] By default, SQB pool is created with max (512 buffers) + extra threshold buffers and aura limit is set to 512 + thr. But while clean up, aura limit is reset to MAX (512 buffers) only before destroying the pool. Hence while destroying the pool, only 512 buffers are cleaned from aura and extra threshold buffers are left as it is. At later stage if same SQB pool is created then H/W throws error for extra threshold buffers that it is already in pool. Fixes: 780f90e951a5 ("common/cnxk: restore NIX SQB pool limit before destroy") Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_nix_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_nix_queue.c b/drivers/common/cnxk/roc_nix_queue.c index 965ebc7a1f..a93f4e44a2 100644 --- a/drivers/common/cnxk/roc_nix_queue.c +++ b/drivers/common/cnxk/roc_nix_queue.c @@ -1332,7 +1332,7 @@ roc_nix_sq_fini(struct roc_nix_sq *sq) /* Restore limit to max SQB count that the pool was created * for aura drain to succeed. */ - roc_npa_aura_limit_modify(sq->aura_handle, NIX_MAX_SQB); + roc_npa_aura_limit_modify(sq->aura_handle, sq->aura_sqb_bufs); rc |= roc_npa_pool_destroy(sq->aura_handle); plt_free(sq->fc); plt_free(sq->sqe_mem); -- 2.47.3 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-11-20 12:44:13.046423616 +0000 +++ 0007-common-cnxk-fix-max-number-of-SQB-buffers-in-clean-u.patch 2025-11-20 12:44:12.778087984 +0000 @@ -1 +1 @@ -From f3c15bb6062475a62451c62ca2c5c9a5e12706c8 Mon Sep 17 00:00:00 2001 +From 55eaf1cf8f35eb42e14c7bd985ea257993f2bab0 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit f3c15bb6062475a62451c62ca2c5c9a5e12706c8 ] + @@ -20 +21,0 @@ -Cc: stable@dpdk.org @@ -28 +29 @@ -index e59cd77538..1de6e51c5e 100644 +index 965ebc7a1f..a93f4e44a2 100644 @@ -31 +32 @@ -@@ -2057,7 +2057,7 @@ roc_nix_sq_fini(struct roc_nix_sq *sq) +@@ -1332,7 +1332,7 @@ roc_nix_sq_fini(struct roc_nix_sq *sq)