From: Pavan Nikhilesh <pbhagavat...@marvell.com>

The function `sso_hwgrp_alloc_xaq` expects aura ID, fix incorrectly
passing aura handle to it.

Fixes: 7e9a94909eea ("common/cnxk: realloc inline device XAQ AURA")

Signed-off-by: Pavan Nikhilesh <pbhagavat...@marvell.com>
---
 drivers/common/cnxk/roc_nix_inl_dev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/common/cnxk/roc_nix_inl_dev.c 
b/drivers/common/cnxk/roc_nix_inl_dev.c
index 2863d5da51..de3498a4f7 100644
--- a/drivers/common/cnxk/roc_nix_inl_dev.c
+++ b/drivers/common/cnxk/roc_nix_inl_dev.c
@@ -678,7 +678,8 @@ roc_nix_inl_dev_xaq_realloc(uint64_t aura_handle)
        }
 
        /* Setup xaq for hwgrps */
-       rc = sso_hwgrp_alloc_xaq(&inl_dev->dev, inl_dev->xaq.aura_handle, 1);
+       rc = sso_hwgrp_alloc_xaq(&inl_dev->dev,
+                                
roc_npa_aura_handle_to_aura(inl_dev->xaq.aura_handle), 1);
        if (rc) {
                plt_err("Failed to setup hwgrp xaq aura, rc=%d", rc);
                return rc;
-- 
2.25.1

Reply via email to