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 1F56645B37; Mon, 14 Oct 2024 13:07:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DDE8840395; Mon, 14 Oct 2024 13:07:02 +0200 (CEST) Received: from mx0a-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 83E3A402D7 for ; Mon, 14 Oct 2024 13:07:01 +0200 (CEST) Received: from pps.filterd (m0431384.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49E9PT1X005993; Mon, 14 Oct 2024 04:06:56 -0700 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=T8KarR6RbE6ZaKWDvRUaqYW 2Y0TujTOp2/Vbbk4tuFM=; b=Z2dGOGIXqB0oN7H064XeopLyDr18hQOFx0G/f5i sueTQYBSlq8k5EDfq2fB6DrHN59bsKo7dw8Wu+PCXXoKobozQYrIe6GM/DYKQQ43 SAJq93aSBrGYSGvFJl9+P2Fgxq4OOlqPE+4fZmN3rF4PKqvgZ8eWSDWyRvFBW4KJ vpDxL53DH7bRrMafb8H1K9/YDiQa4pbwDcjcIY/iLQ8ed/h/WkyLzVElXqYetzuZ 8p/OTaW9Cl1rWKIiRDaKovo3ApahjgY4AkBSfRf1HgElfWF1eB4aqRuQ9qA7uMW4 F12JSX0ZC4aA1cQcbgZ4RLyhmC2eSPVIz2iRcrSStcN8dUg== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 428xtyrdea-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Oct 2024 04:06:56 -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, 14 Oct 2024 04:06:55 -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, 14 Oct 2024 04:06:55 -0700 Received: from localhost.localdomain (unknown [10.28.34.29]) by maili.marvell.com (Postfix) with ESMTP id 11D8C5B6926; Mon, 14 Oct 2024 04:06:51 -0700 (PDT) From: Shijith Thotton To: , CC: , Shijith Thotton , Wathsala Vithanage , Bruce Richardson , Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Harman Kalra Subject: [PATCH] common/cnxk: allow enabling IOVA field in mbuf Date: Mon, 14 Oct 2024 16:36:07 +0530 Message-ID: <20241014110608.2170844-1-sthotton@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: nS2dmCcfAiY8KAGajm6vSAdz4IKfU1PO X-Proofpoint-GUID: nS2dmCcfAiY8KAGajm6vSAdz4IKfU1PO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.687,Hydra:6.0.235,FMLib:17.0.607.475 definitions=2020-10-13_15,2020-10-13_02,2020-04-07_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 Value of RTE_IOVA_IN_MBUF was always disabled on cnxk platforms, as IOVA in the mbuf is not required. This change modifies that behavior, allowing RTE_IOVA_IN_MBUF to be enabled if the build option -Denable_iova_as_pa=true is explicitly specified. Signed-off-by: Shijith Thotton --- config/arm/meson.build | 8 ++------ drivers/common/cnxk/meson.build | 9 +++++++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/config/arm/meson.build b/config/arm/meson.build index 012935d5d7..ca54524376 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -439,10 +439,7 @@ soc_cn9k = { 'description': 'Marvell OCTEON 9', 'implementer': '0x43', 'part_number': '0xb2', - 'numa': false, - 'flags': [ - ['RTE_IOVA_IN_MBUF', 0] - ] + 'numa': false } soc_cn10k = { @@ -451,8 +448,7 @@ soc_cn10k = { 'flags': [ ['RTE_MAX_LCORE', 24], ['RTE_MAX_NUMA_NODES', 1], - ['RTE_MEMPOOL_ALIGN', 128], - ['RTE_IOVA_IN_MBUF', 0] + ['RTE_MEMPOOL_ALIGN', 128] ], 'part_number': '0xd49', 'extra_march_features': ['crypto'], diff --git a/drivers/common/cnxk/meson.build b/drivers/common/cnxk/meson.build index dc2ddf1f20..bba780e750 100644 --- a/drivers/common/cnxk/meson.build +++ b/drivers/common/cnxk/meson.build @@ -108,4 +108,13 @@ deps += ['bus_pci', 'net', 'telemetry'] require_iova_in_mbuf = false +cnxk_socs = ['cn9k', 'cn10k', 'cn20k'] + +# Enable RTE_IOVA_IN_MBUF only if enable_iova_as_pa is set explicitly, else disable it +if meson.version().version_compare('>=1.1.0') + if '-Denable_iova_as_pa' not in meson.build_options() and soc_type in cnxk_socs + dpdk_conf.set10('RTE_IOVA_IN_MBUF', false) + endif +endif + annotate_locks = false -- 2.25.1