From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 89BE346790; Mon, 19 May 2025 14:54:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 76BC540655; Mon, 19 May 2025 14:54:55 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id A0C4440655 for ; Mon, 19 May 2025 14:54:53 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 54JCG8Hi010616 for ; Mon, 19 May 2025 05:54:52 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=Q lrJkVLHx7jeJLErpPaXwpSMdh1+/wY5RZVDK441brs=; b=YTeN7vu6Bzk1IUUJ1 /ijKsQjhsqZtmyi+9siLVxJ8zqM/xHK5P8ljm1CDSMgM5ZUA5gE6JYor41tnZj5d kgCrK4pHdzeU0oVbq/dNpo/F4LtEGIkJMyvjWpNU8iYBpIyUFbJgG/erP9fCdVlK 4K85LMrzHjmM3vS+ApM/tG6iLe1evFQ7+F9m32mQbv8bzGyNCtdO+FBEGVUkAiL2 FM7qB50TxUbtZqcEa/1Oy5VEfG3YSZ7ZA8dQFeDs0d1mHQjbUVYHP+di9v5nsKxT NbOwpZVD+LoDKzHfUBGjwoEDfDVfJlQwk7ovh61WPcOI2tHmM39YiefUkqtFNlMB QYvWg== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 46r4g981rg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 19 May 2025 05:54:52 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 19 May 2025 05:54:51 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Mon, 19 May 2025 05:54:51 -0700 Received: from localhost.localdomain (unknown [10.28.36.158]) by maili.marvell.com (Postfix) with ESMTP id BA06A3F7055; Mon, 19 May 2025 05:54:48 -0700 (PDT) From: Rahul Bhansali To: , Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Harman Kalra CC: , Rahul Bhansali Subject: [PATCH 3/6] common/cnxk: update CPT parse header for O20 Date: Mon, 19 May 2025 18:24:21 +0530 Message-ID: <20250519125424.1435140-3-rbhansali@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250519125424.1435140-1-rbhansali@marvell.com> References: <20250519125424.1435140-1-rbhansali@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: 9063BLoZfvti8L5zDcZKxS6NuAkfnXI4 X-Proofpoint-ORIG-GUID: 9063BLoZfvti8L5zDcZKxS6NuAkfnXI4 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNTE5MDEyMCBTYWx0ZWRfX8zyArVgwsauP p5NZYaCrFVC8A8x7RKN9E2aB3DmNQzkTTGCCOZd+P3kvytlA1ohKxMrXDJYewQ516VlXJKI1axY iNoJ/VrCx4gU11IAuCx/kB/BsWA9LjBO8C63S09I+mKXoIi491eO1oNQL59dGdD+mH33/Gq5dMs layWSoF4N+lQaYu3Ih/V8IiwnG60YZKgUC/2VZM7UHZNWAE/vYQq7hwA3nIX+RQHbveO3Fe5ybI qL/ArkFeEhljCAjVm3+zGDiyH+T/VXFmbz8fixpM0R6qJvH59Y8M+kpokJyqQwNdUfTtfmZVqbg tGWL6rwllI3qvzZEETxMW8PPgBAm/DmscvFoDP5UdoATHYcj5naxBKV1BcLihC26Gv9rxyOfAcq 8vwR3NScLKlByyj7X5eZ5OCUXs4cMOncBVONM5rzHBV6pVmeE5w3EDCo5cPvxEzwTNvi3Qt8 X-Authority-Analysis: v=2.4 cv=B7m50PtM c=1 sm=1 tr=0 ts=682b2a1c cx=c_pps a=rEv8fa4AjpPjGxpoe8rlIQ==:117 a=rEv8fa4AjpPjGxpoe8rlIQ==:17 a=dt9VzEwgFbYA:10 a=M5GUcnROAAAA:8 a=ju4TS-rKbe-V9a9IbisA:9 a=OBjm3rFKGHvpk9ecZwUJ:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-05-19_05,2025-05-16_03,2025-03-28_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 Updates CPT parse header HW structure for O20. Signed-off-by: Rahul Bhansali --- drivers/common/cnxk/hw/cpt.h | 12 +++++++----- drivers/common/cnxk/roc_cpt_debug.c | 8 ++++---- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/common/cnxk/hw/cpt.h b/drivers/common/cnxk/hw/cpt.h index 40987abbb9..e542f3a3d4 100644 --- a/drivers/common/cnxk/hw/cpt.h +++ b/drivers/common/cnxk/hw/cpt.h @@ -358,11 +358,11 @@ union cpt_parse_hdr_u { struct { uint64_t rsvd_134_128 : 7; uint64_t pkt_inline : 1; - uint64_t new_pkt_aura : 20; + uint64_t rsvd_155_136 : 20; uint64_t orig_pkt_aura : 20; uint64_t il3_off : 8; - uint64_t ptr_pad : 3; - uint64_t ptr_offset : 5; + uint64_t ptr_pad : 5; + uint64_t ptr_offset : 3; }; } w2; @@ -383,10 +383,12 @@ union cpt_parse_hdr_u { uint64_t u64; struct { uint32_t l4_chksum; - uint32_t l4_chksum_type : 1; - uint32_t rsvd_298_289 : 10; + uint32_t l4_chksum_type : 2; + uint32_t rsvd_292_290 : 3; uint32_t channel : 12; + uint32_t rsvd_308_305 : 4; uint32_t sctr_size : 4; + uint32_t rsvd_314_313 : 2; uint32_t gthr_size : 5; }; } w4; diff --git a/drivers/common/cnxk/roc_cpt_debug.c b/drivers/common/cnxk/roc_cpt_debug.c index 35a2cf6b3a..28aedf088e 100644 --- a/drivers/common/cnxk/roc_cpt_debug.c +++ b/drivers/common/cnxk/roc_cpt_debug.c @@ -36,8 +36,8 @@ cpt_cnxk_parse_hdr_dump(FILE *file, const struct cpt_parse_hdr_s *cpth) cpt_dump(file, "W1: wqe_ptr \t0x%016lx\t", cpth->wqe_ptr); /* W2 */ - cpt_dump(file, "W2: pkt_inline \t0x%x\t\tnew_pkt_aura \t0x%x\t\torig_pkt_aura \t0x%x", - cpth->w2.pkt_inline, cpth->w2.new_pkt_aura, cpth->w2.orig_pkt_aura); + cpt_dump(file, "W2: pkt_inline \t0x%x\t\torig_pkt_aura \t0x%x", cpth->w2.pkt_inline, + cpth->w2.orig_pkt_aura); cpt_dump(file, "W2: il3_off \t0x%x\t\tptr_pad \t0x%x \t", cpth->w2.il3_off, cpth->w2.ptr_pad); cpt_dump(file, "W2: ptr_offset \t0x%x \t", cpth->w2.ptr_offset); @@ -53,9 +53,9 @@ cpt_cnxk_parse_hdr_dump(FILE *file, const struct cpt_parse_hdr_s *cpth) cpt_dump(file, "W4: channel \t0x%x\t\tsctr_size \t0x%08x\t\tgthr_size \t0x%08x", cpth->w4.channel, cpth->w4.sctr_size, cpth->w4.gthr_size); - /* offset of 0 implies 256B, otherwise it implies offset*8B */ + /* offset of 0 implies 256B, otherwise it implies offset*32B */ offset = cpth->w2.ptr_offset; - offset = (((offset - 1) & 0x1f) + 1) * 8; + offset = (((offset - 1) & 0x7) + 1) * 32; frag_info = PLT_PTR_ADD(cpth, offset); if (cpth->w0.num_frags > 0) { -- 2.25.1