From patchwork Fri Aug 11 08:57:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nithin Dabilpuram X-Patchwork-Id: 130133 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E415E43032; Fri, 11 Aug 2023 11:00:05 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 403F343261; Fri, 11 Aug 2023 10:59:12 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id B05A442D3F for ; Fri, 11 Aug 2023 10:59:10 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37AMjl8H001550 for ; Fri, 11 Aug 2023 01:59:10 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=0WFaBUk8FN3a5Gs6WMItsnGLJvvmBRz+j4ju4dq8Ls0=; b=G2hay/9UhqZADu+YQYYEHiUmy8PAo6AhUeq0ArcKDdAcjYW1CpqXKyz47x3BDztfnrk1 R6xM/AqIhwvEQ6yZ/uYwZ7VgWMr7/ZM5NrhD5GSXk8AH9D45FBuyGbPnCvH7+8Eixu9o TDYQbE0Gx/P/UiV6+rInIIF30K8czUAw6GWNAf47bo5YV5wmAx1R5GyTkLVSFgXWRkIc urXNxF+nM0lS+kpxuj+W8GWR/BEecJxPZBPtpTiH4gpr41Ybj4kr06bjhKa3E85GqyHD D5NX5kgWU1UTF3lYA08KfldYGz5rq5FdKfP7KYBj/N0Sqh2/8iXCrftBzTp83VoafVOp Ew== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3sd8yp9ra1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 11 Aug 2023 01:59:08 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Fri, 11 Aug 2023 01:59:06 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Fri, 11 Aug 2023 01:59:06 -0700 Received: from hyd1588t430.caveonetworks.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 0BFDB3F706B; Fri, 11 Aug 2023 01:59:03 -0700 (PDT) From: Nithin Dabilpuram To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , , Pavan Nikhilesh Subject: [PATCH 19/31] common/cnxk: fix incorrect aura ID Date: Fri, 11 Aug 2023 14:27:53 +0530 Message-ID: <20230811085805.441256-19-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230811085805.441256-1-ndabilpuram@marvell.com> References: <20230811085805.441256-1-ndabilpuram@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: izaLVkHd-hQC3RBp_1mndJqEzN9otEfw X-Proofpoint-GUID: izaLVkHd-hQC3RBp_1mndJqEzN9otEfw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-10_20,2023-08-10_01,2023-05-22_02 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Pavan Nikhilesh 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 --- 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;