From: Rakesh Kudurumalla <[email protected]>
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: [email protected]
Signed-off-by: Rakesh Kudurumalla <[email protected]>
---
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