patch 'event/cnxk: fix SSO cleanup' has been queued to stable release 22.11.2

Xueming Li xuemingl at nvidia.com
Sun Apr 9 17:23:14 CEST 2023


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/2f9bb3f72a14cae2ff3a37810411946b08762743

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From 2f9bb3f72a14cae2ff3a37810411946b08762743 Mon Sep 17 00:00:00 2001
From: Volodymyr Fialko <vfialko at marvell.com>
Date: Thu, 2 Mar 2023 11:58:32 +0100
Subject: [PATCH] event/cnxk: fix SSO cleanup
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit c31a3b37bb26c2f7f270592c8976072b510869dd ]

dev_fini() can return EAGAIN in case if LF is active(used by other
devices). Ignoring return code leads to early free of resources that are
still in use.

Fixes: 8558dcaa05b8 ("event/cnxk: add build infra and device setup")

Signed-off-by: Volodymyr Fialko <vfialko at marvell.com>
---
 drivers/event/cnxk/cnxk_eventdev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/event/cnxk/cnxk_eventdev.c b/drivers/event/cnxk/cnxk_eventdev.c
index db62d32a81..db50d193a5 100644
--- a/drivers/event/cnxk/cnxk_eventdev.c
+++ b/drivers/event/cnxk/cnxk_eventdev.c
@@ -613,9 +613,8 @@ cnxk_sso_fini(struct rte_eventdev *event_dev)
 
 	cnxk_tim_fini();
 	roc_sso_rsrc_fini(&dev->sso);
-	roc_sso_dev_fini(&dev->sso);
 
-	return 0;
+	return roc_sso_dev_fini(&dev->sso);
 }
 
 int
-- 
2.25.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-04-09 21:45:38.993538500 +0800
+++ 0006-event-cnxk-fix-SSO-cleanup.patch	2023-04-09 21:45:38.569042200 +0800
@@ -1 +1 @@
-From c31a3b37bb26c2f7f270592c8976072b510869dd Mon Sep 17 00:00:00 2001
+From 2f9bb3f72a14cae2ff3a37810411946b08762743 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit c31a3b37bb26c2f7f270592c8976072b510869dd ]
@@ -11 +13,0 @@
-Cc: stable at dpdk.org
@@ -19 +21 @@
-index 5f1fa1e96d..cb9ba5d353 100644
+index db62d32a81..db50d193a5 100644
@@ -22 +24 @@
-@@ -670,9 +670,8 @@ cnxk_sso_fini(struct rte_eventdev *event_dev)
+@@ -613,9 +613,8 @@ cnxk_sso_fini(struct rte_eventdev *event_dev)


More information about the stable mailing list