From patchwork Fri May 20 05:22:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Bhansali X-Patchwork-Id: 111475 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 01CE5A0503; Fri, 20 May 2022 07:25:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DEAF440156; Fri, 20 May 2022 07:25:10 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 981CA40151 for ; Fri, 20 May 2022 07:25:08 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24JNtIR5018336; Thu, 19 May 2022 22:23:04 -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=0DUYSCbeStiJbzxldmwoaoNCk5xDKzUMXuOen0MZPWM=; b=EDmNIDo7qjVR5zkwI1fkFy/ftgVgas3V8hkzCAXhPIpziFX7mun1UTthdLni0nWRzKui EIlmEbbfinE0Ftm8TVUOmpQ7ozZ4YkU5eqD4fCtGf4YEMohdryKfpD72jFF+NGBEAH7N jAzJ4yr92nOYMwNwAgT9m6uea6gSR8GZyQ5/YlrRnVGmrzPNstUpndytWyFDRPx7DVFc br/IZbQ8cW6Njatx45TqcvpikHuSWXzSH8EZAreQZ6Bvw6CASmeBmF17w4f5Ff18FLdZ nPACXdS458wbuPx+Zi95u+2cCnGcvEv2rULdzPDSjKNkloWYw46W1QOPIdDzYZ8EpVjp Mw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3g6008s25s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 19 May 2022 22:23:04 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 19 May 2022 22:23:03 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 19 May 2022 22:23:02 -0700 Received: from localhost.localdomain (unknown [10.28.48.107]) by maili.marvell.com (Postfix) with ESMTP id 86F553F70A6; Thu, 19 May 2022 22:23:00 -0700 (PDT) From: Rahul Bhansali To: , Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Ray Kinsella CC: , Rahul Bhansali Subject: [PATCH 2/2] common/cnxk: print NIX inline outbound CPT LF registers Date: Fri, 20 May 2022 10:52:30 +0530 Message-ID: <20220520052230.3680344-2-rbhansali@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220520052230.3680344-1-rbhansali@marvell.com> References: <20220520052230.3680344-1-rbhansali@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: SZzKWp0XfgGBIlTtflh_AnhqgerEw1Mq X-Proofpoint-ORIG-GUID: SZzKWp0XfgGBIlTtflh_AnhqgerEw1Mq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-20_01,2022-05-19_03,2022-02-23_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 This add the support to dump NIX inline outbound CPT LF registers. Signed-off-by: Rahul Bhansali Acked-by: Ray Kinsella --- drivers/common/cnxk/roc_nix_debug.c | 14 ++++++++++++++ drivers/common/cnxk/roc_nix_inl.h | 1 + drivers/common/cnxk/version.map | 1 + 3 files changed, 16 insertions(+) diff --git a/drivers/common/cnxk/roc_nix_debug.c b/drivers/common/cnxk/roc_nix_debug.c index e05e60daea..efac7e5b14 100644 --- a/drivers/common/cnxk/roc_nix_debug.c +++ b/drivers/common/cnxk/roc_nix_debug.c @@ -1272,3 +1272,17 @@ roc_nix_inl_dev_dump(struct roc_nix_inl_dev *roc_inl_dev) for (i = 0; i < inl_dev->nb_rqs; i++) roc_nix_rq_dump(&inl_dev->rqs[i]); } + +void +roc_nix_inl_outb_cpt_lfs_dump(struct roc_nix *roc_nix) +{ + struct nix *nix = roc_nix_to_nix_priv(roc_nix); + struct roc_cpt_lf *lf_base = nix->cpt_lf_base; + int i; + + nix_dump("nix@%p", nix); + for (i = 0; i < nix->nb_cpt_lf; i++) { + nix_dump("NIX inline dev outbound CPT LFs:"); + cpt_lf_print(&lf_base[i]); + } +} diff --git a/drivers/common/cnxk/roc_nix_inl.h b/drivers/common/cnxk/roc_nix_inl.h index 7835ba364d..b1b4c5b471 100644 --- a/drivers/common/cnxk/roc_nix_inl.h +++ b/drivers/common/cnxk/roc_nix_inl.h @@ -200,5 +200,6 @@ int __roc_api roc_nix_inl_sa_sync(struct roc_nix *roc_nix, void *sa, bool inb, enum roc_nix_inl_sa_sync_op op); int __roc_api roc_nix_inl_ctx_write(struct roc_nix *roc_nix, void *sa_dptr, void *sa_cptr, bool inb, uint16_t sa_len); +void __roc_api roc_nix_inl_outb_cpt_lfs_dump(struct roc_nix *roc_nix); #endif /* _ROC_NIX_INL_H_ */ diff --git a/drivers/common/cnxk/version.map b/drivers/common/cnxk/version.map index a77f3f6e3c..1ba5b4f438 100644 --- a/drivers/common/cnxk/version.map +++ b/drivers/common/cnxk/version.map @@ -161,6 +161,7 @@ INTERNAL { roc_nix_inl_ts_pkind_set; roc_nix_inl_ctx_write; roc_nix_inl_dev_pffunc_get; + roc_nix_inl_outb_cpt_lfs_dump; roc_nix_cpt_ctx_cache_sync; roc_nix_is_lbk; roc_nix_is_pf;