[PATCH v2 01/18] common/cnxk: fix engine capabilities fetch logic

Rahul Bhansali rbhansali at marvell.com
Tue Feb 17 06:43:28 CET 2026


From: Rakesh Kudurumalla <rkudurumalla at marvell.com>

For CN9k platform, incorrect status is checked from LOAD
FVC instruction while retrieving engine capabilities.

The loop is updated for a valid return status check on
LOADFVC instruction.

Fixes: 7c67c489d466 ("common/cnxk: fetch engine capabilities")
Cc: stable at dpdk.org

Signed-off-by: Rakesh Kudurumalla <rkudurumalla at marvell.com>
---
Changes in v2: Updated commit message. Removed not related macro change.

 drivers/common/cnxk/roc_nix_inl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/common/cnxk/roc_nix_inl.c b/drivers/common/cnxk/roc_nix_inl.c
index f8be98efd5..683a9cc7ce 100644
--- a/drivers/common/cnxk/roc_nix_inl.c
+++ b/drivers/common/cnxk/roc_nix_inl.c
@@ -1228,7 +1228,7 @@ nix_inl_eng_caps_get(struct nix *nix)
 		do {
 			roc_lmt_mov_seg((void *)lmt_base, &inst, 4);
 			lmt_status = roc_lmt_submit_ldeor(lf->io_addr);
-		} while (lmt_status != 0);
+		} while (lmt_status == 0);

 		/* Wait until CPT instruction completes */
 		do {
--
2.34.1



More information about the stable mailing list