From patchwork Mon Jan 16 09:39:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nithin Dabilpuram X-Patchwork-Id: 122088 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 05BEE423EE; Mon, 16 Jan 2023 10:41:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 844FE42D25; Mon, 16 Jan 2023 10:41:03 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 4CA2142D29 for ; Mon, 16 Jan 2023 10:41:02 +0100 (CET) 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 30G6400m001556 for ; Mon, 16 Jan 2023 01:41:01 -0800 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=JXbMHWP1noZllYx8/P5hpUFlzUo+Qz6wEl2zCaPKrLk=; b=THxKsCjK1T/7bSqKv8LojGOncnwfBmw6iob5b6wNFKVRYp8Z1rUcy8TCiBmWu2dF7GEc ucCozGThyRoXn3GOdlKYNgxqPOHJ10+fG+eXVMPBMMIjrpNeA1yN2AcrdIljrb8nRmDb GbShPZ6Ws/2QaU7EZxBPeScGlVABhF//uthZ1Ax4D5hcy4Q6X8YFd1+ePKGlOqJrg5wM kCCLq4+WlMvWTh9LFEjcmQwi++wrvCpS774TMsADYZtSYWQ+glOf8sozJGH7mzwEabSN DUs9NBIdRir3vwll2KEZ+X05pd6hYafBbT9atlG8LumGge5mKodcUgcawqWGMj59ypuX mw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3n3tmvkujp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 16 Jan 2023 01:41:01 -0800 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.42; Mon, 16 Jan 2023 01:40:59 -0800 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.42 via Frontend Transport; Mon, 16 Jan 2023 01:40:59 -0800 Received: from hyd1588t430.caveonetworks.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id B0EC83F7041; Mon, 16 Jan 2023 01:40:57 -0800 (PST) From: Nithin Dabilpuram To: , Nithin Dabilpuram , "Kiran Kumar K" , Sunil Kumar Kori , Satha Rao CC: Subject: [PATCH 5/9] common/cnxk: dump inline device RQ context Date: Mon, 16 Jan 2023 15:09:50 +0530 Message-ID: <20230116093954.172938-5-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230116093954.172938-1-ndabilpuram@marvell.com> References: <20230116093954.172938-1-ndabilpuram@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: WIruLtPyH9K4XxHkv-nUskwY7Iy94rno X-Proofpoint-GUID: WIruLtPyH9K4XxHkv-nUskwY7Iy94rno X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-16_08,2023-01-13_02,2022-06-22_01 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 Dump inline device RQ context along with ethdev's RQ context. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix_debug.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/common/cnxk/roc_nix_debug.c b/drivers/common/cnxk/roc_nix_debug.c index 775325115b..2f8c595bd9 100644 --- a/drivers/common/cnxk/roc_nix_debug.c +++ b/drivers/common/cnxk/roc_nix_debug.c @@ -693,6 +693,7 @@ roc_nix_queues_ctx_dump(struct roc_nix *roc_nix, FILE *file) struct npa_aq_enq_req *npa_aq; struct dev *dev = &nix->dev; int sq = nix->nb_tx_queues; + struct roc_nix_rq *inl_rq; struct npa_lf *npa_lf; volatile void *ctx; uint32_t sqb_aura; @@ -726,6 +727,25 @@ roc_nix_queues_ctx_dump(struct roc_nix *roc_nix, FILE *file) nix_lf_rq_dump(ctx, file); } + /* Dump inline dev RQ for this port */ + inl_rq = roc_nix_inl_dev_rq(roc_nix); + if (inl_rq) { + struct idev_cfg *idev = idev_get_cfg(); + struct nix_inl_dev *inl_dev = idev->nix_inl_dev; + + rc = nix_q_ctx_get(&inl_dev->dev, NIX_AQ_CTYPE_RQ, inl_rq->qid, &ctx); + if (rc) { + plt_err("Failed to get rq context"); + goto fail; + } + nix_dump(file, "============== port=%d inl_rq=%d ===============", roc_nix->port_id, + inl_rq->qid); + if (roc_model_is_cn9k()) + nix_cn9k_lf_rq_dump(ctx, file); + else + nix_lf_rq_dump(ctx, file); + } + for (q = 0; q < sq; q++) { rc = nix_q_ctx_get(dev, NIX_AQ_CTYPE_SQ, q, &ctx); if (rc) {