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 CD1AC4608B; Wed, 15 Jan 2025 13:56:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6B34E4025F; Wed, 15 Jan 2025 13:56:04 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 92ECF400D7 for ; Wed, 15 Jan 2025 13:56:02 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50FBxT5g032473 for ; Wed, 15 Jan 2025 04:56:01 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=pfpt0220; bh=3U65H8FWmw8K3D4c4ftsBKW rAadbTETlJ24B+kM+QVc=; b=bfF0uVyjychi8jE5LuK+rQlR2EY/rhh2evJCs2N BvVeFTK3lUiWT9U0AkIxjTQY0p4yM6HHoCMTTxdEjwT4GhHkXLRyUd7trPq7fj2H GFAZq10ncFP62uU2s7Sdyk/P0S13vcluZe5ZA2KD/wCl8vzcJG0WE92KAnuXL0Pw OViq8opRSpwPqmbNKdu6CjrHG36PJ2eTytIgNkwT6igWTW13SqsKr0rLajF4g999 /CR9tM8Au0AnkV95LgNxgwc4VQFMa9xa0zk2ZL41GXJ4TIwcO8WEQVDzW0SMn4bi npeK/XVhRjqyu/xrlmardei3jun9/ghizMlb7DGrmYdK45g== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 446cmpr2sa-13 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 15 Jan 2025 04:56:01 -0800 (PST) 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; Wed, 15 Jan 2025 04:55:58 -0800 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; Wed, 15 Jan 2025 04:55:58 -0800 Received: from cavium-VAMSI-BM.. (unknown [10.28.36.156]) by maili.marvell.com (Postfix) with ESMTP id 17B665E6B18; Wed, 15 Jan 2025 04:36:57 -0800 (PST) From: Vamsi Krishna To: CC: , Vamsi Attunuru Subject: [PATCH v0 1/1] common/cnxk: fix DPI mailbox structure Date: Wed, 15 Jan 2025 18:06:54 +0530 Message-ID: <20250115123654.1490937-1-vattunuru@marvell.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: xFyBL17XhJ7B6uBimUwg4NX1aeAhwFkh X-Proofpoint-ORIG-GUID: xFyBL17XhJ7B6uBimUwg4NX1aeAhwFkh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-15_05,2025-01-15_02,2024-11-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 From: Vamsi Attunuru In the existing DPI mailbox structure, one of the fields spans a 64-bit boundary, making it appear unusual and complicatng extraction using bit operations. Patch enlarges csize fields to ensure that mailbox fields are correctly positioned. Fixes: b6e395692b6d ("common/cnxk: add DPI DMA support") Signed-off-by: Vamsi Attunuru --- drivers/common/cnxk/roc_dpi_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_dpi_priv.h b/drivers/common/cnxk/roc_dpi_priv.h index 1f975915f7..05b6751ca6 100644 --- a/drivers/common/cnxk/roc_dpi_priv.h +++ b/drivers/common/cnxk/roc_dpi_priv.h @@ -27,7 +27,7 @@ typedef union dpi_mbox_msg_t { /* Command code */ uint64_t cmd : 4; /* Command buffer size in 8-byte words */ - uint64_t csize : 14; + uint64_t csize : 16; /* aura of the command buffer */ uint64_t aura : 20; /* SSO PF function */ -- 2.34.1