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 8E67B46A9C for ; Mon, 30 Jun 2025 14:27:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 880D1402E1; Mon, 30 Jun 2025 14:27:08 +0200 (CEST) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mails.dpdk.org (Postfix) with ESMTP id A356E4066C for ; Mon, 30 Jun 2025 14:27:05 +0200 (CEST) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4531e146a24so25533985e9.0 for ; Mon, 30 Jun 2025 05:27:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751286425; x=1751891225; 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=NhxdCWz+7HJcyiqJ8ez6V5Kds3ZS0miGpQFnipQFi70=; b=J3/dYGy/zwnVwzvF72SkAs63DfET2lHUumfa6j86f4RfEoKRl6L+/T1rVLhK4PEzm1 swEbwfdbTHoDBtn3eEn3RNHbGh0cPQ8d+xpcxidPHfdBYG8CiPldPeRptXr98qN5DB9D l1gZrTgspyM4eaikz31+9U+emSU119r8dqdyW4bdEc6RhrsK/VHxZQHYOk6OdA4hKPz9 dnyr/mlOeD4cLxRP9xsKAbNZmvBDDEV1/rPh0eK2fslfS7I5/o83jcWaZRtwH7iqeUV8 tqAF7VDyouJ5K3EGmLnn+G/qKghHea4ahqQRJeU/kq79SdkGoU3BHicTQool215U4aXE 1Ljg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751286425; x=1751891225; 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=NhxdCWz+7HJcyiqJ8ez6V5Kds3ZS0miGpQFnipQFi70=; b=XB4bvIPmu6G698eL6WNExumDMEgDUXmbPc4wvn7Bj/it0WuCpIUmAII4m85eVwRxhG dFlt/BJmJCYkeQmZvYp5DYHBIcEPBUVy6T4m5/DSxcchKiBvyz3CTQ1+DOQf/ez/52Fl xFKBFmr+7vSRwQD6HLFuhHM/yJIjGS6UoQchN+Dyh+FGR7o7Vlboie6JyNPCM5znFBqD WR9DfuG2FTm7qsWdhB8e8MaRnLPcishULQOZXmW7RjPYrDsnn+7xSBXYremhBG5acHs+ 26a9TcfMUtzPSYinItJ8qr97DywOn5tnyHQNAADnSPN3jDViX4oep16J0Kl7dTAPkiAA D+Tw== X-Gm-Message-State: AOJu0YwFpD2eE1Te4A+Wk6VVmWKvyDta3fotxZ25IcGNfIgVB+tja7mm ts1cROidiVMV/56l0NfHIU0zcuSk7yr+pKBDP1wF495xilUbYmmD37pS X-Gm-Gg: ASbGncsqP6mK67HB4yGznjfaAUNdPoV+6R2oNw/DqlbRIHE2iAsnNSKmeTQa4zG3xDG P85TtUyyUzdHmUmE7uJZSjmm0/aLC3yq1ojFSgJHhKrPfWv400FnYAXKrT2gYfCPMzQn7xO6yKw CwAE6TUEMprN7lZ/p1GH/7s3AauifUOH0c1GJdSPsDAiCmZ2AIkCGDcNOs4yt1Fc5EkbZOP59oS nkkxoJ2nZAvOSjwouJ/maIyQi1SPOqOmcciEvGAQVl72gBlAKtx/We2kVvDhlyZTUJXPLrZYrRo 5e/dVILQvUvXe0aLCxNlJtE6fvKake6zNIW5cXhOIUAa5S9L0FtQHGXS9Z7/2I2XCHk= X-Google-Smtp-Source: AGHT+IGUNFo0OeDV8tECQIQoxJO2YXkB+ADrTTnHPK92OPo+/nt92ZbhB5v7V1DaYEX+dM+KOTDfgA== X-Received: by 2002:a05:6000:4407:b0:3a5:52cc:346e with SMTP id ffacd0b85a97d-3a8fdb2accemr6707523f8f.6.1751286424983; Mon, 30 Jun 2025 05:27:04 -0700 (PDT) Received: from localhost ([2a01:4b00:d036:ae00:ded1:f637:68f:c2a6]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-453962dd8besm73941965e9.31.2025.06.30.05.27.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jun 2025 05:27:04 -0700 (PDT) From: luca.boccassi@gmail.com To: Tirthendu Sarkar Cc: dpdk stable Subject: patch 'event/dlb2: fix default credits based on HW version' has been queued to stable release 22.11.9 Date: Mon, 30 Jun 2025 13:25:52 +0100 Message-ID: <20250630122556.1133654-22-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250630122556.1133654-1-luca.boccassi@gmail.com> References: <20250612210733.2506558-72-luca.boccassi@gmail.com> <20250630122556.1133654-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.9 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/02/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/4f11c905afb974890cbce23bb90e8a9114971317 Thanks. Luca Boccassi --- >From 4f11c905afb974890cbce23bb90e8a9114971317 Mon Sep 17 00:00:00 2001 From: Tirthendu Sarkar Date: Wed, 18 Jun 2025 23:03:16 -0500 Subject: [PATCH] event/dlb2: fix default credits based on HW version [ upstream commit 07a08b13b3bc65abe295557d1dc2609e7f4afc45 ] dlb2_eventdev_info_get() that implements rte_event_dev_info_get() should return the maximum available credits as supported by HW. Set maximum credits before device probing by checking HW version. Fixes: b66a418d2ad3 ("event/dlb2: add v2.5 probe") Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/pf/dlb2_pf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/event/dlb2/pf/dlb2_pf.c b/drivers/event/dlb2/pf/dlb2_pf.c index e585861254..8ff3cf91cd 100644 --- a/drivers/event/dlb2/pf/dlb2_pf.c +++ b/drivers/event/dlb2/pf/dlb2_pf.c @@ -729,6 +729,8 @@ dlb2_eventdev_pci_init(struct rte_eventdev *eventdev) if (rte_eal_process_type() == RTE_PROC_PRIMARY) { dlb2 = dlb2_pmd_priv(eventdev); /* rte_zmalloc_socket mem */ dlb2->version = DLB2_HW_DEVICE_FROM_PCI_ID(pci_dev); + if (dlb2->version == DLB2_HW_V2_5) + dlb2_args.max_num_events = DLB2_MAX_NUM_CREDITS(DLB2_HW_V2_5); /* Were we invoked with runtime parameters? */ if (pci_dev->device.devargs) { -- 2.47.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-06-30 13:21:22.587480769 +0100 +++ 0022-event-dlb2-fix-default-credits-based-on-HW-version.patch 2025-06-30 13:21:21.767057807 +0100 @@ -1 +1 @@ -From 07a08b13b3bc65abe295557d1dc2609e7f4afc45 Mon Sep 17 00:00:00 2001 +From 4f11c905afb974890cbce23bb90e8a9114971317 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 07a08b13b3bc65abe295557d1dc2609e7f4afc45 ] + @@ -12 +13,0 @@ -Cc: stable@dpdk.org @@ -20 +21 @@ -index 15a06bee4f..edcdfb319f 100644 +index e585861254..8ff3cf91cd 100644 @@ -23 +24 @@ -@@ -789,6 +789,8 @@ dlb2_eventdev_pci_init(struct rte_eventdev *eventdev) +@@ -729,6 +729,8 @@ dlb2_eventdev_pci_init(struct rte_eventdev *eventdev)