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 023FCA054F; Wed, 7 Sep 2022 17:38:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8FB3E40143; Wed, 7 Sep 2022 17:38:36 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 0C0AD400D6 for ; Wed, 7 Sep 2022 17:38:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662565115; x=1694101115; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=aBYHHP8MU/inLR8gwbpDDduqbpHSa/3BSBRF3v1ziaU=; b=mthOz34R+mKf8axFhdfzPLMiuC54mDAVjbFfREQbIUlyhTGrlAzqF6LT z1Qs18PPmuhnb+Wfvj1B3gVv4Ujuy3MpSm3Imw5Ep+ryhzDfeiFFM/qKQ 4+YXD4Lh0+n3Sxozrh68nIn8IdUelFNK8Zjg2N6N2l37r6u6jSRQoy2ZO 8RSTj+uizcWEmQeZzEMQi4rlQqaatMhhPwNP8eAzFpUdxoBsj93BdOP7v n76ksLRqP766ZKWX7CW6kDz6ijZa4BBcoLoMwLKze2styvXC/x6cEwoVb f8hzERWHTGzdlNDVX1y3fECZ5mKHdbfYTrS4kIiWreYm26TLupw+GedKa A==; X-IronPort-AV: E=McAfee;i="6500,9779,10463"; a="277302662" X-IronPort-AV: E=Sophos;i="5.93,297,1654585200"; d="scan'208";a="277302662" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 08:38:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,297,1654585200"; d="scan'208";a="942936881" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga005.fm.intel.com with ESMTP; 07 Sep 2022 08:38:22 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 7 Sep 2022 08:38:22 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 7 Sep 2022 08:38:22 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Wed, 7 Sep 2022 08:38:22 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.168) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Wed, 7 Sep 2022 08:38:21 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QZjqH6TW4YYfQDbAzthpBsmdOcQW1A39ijoaQl+jAKHPoGOTmCBgcpfaUN4kAgVWs8xeYcpUqnu2MG8yalN7kJqYhs2kLpCdPd8CK2mezZcuR2plPEmLi8w5hAaILaBPTC9JCWli2Ta19R7KyzA0ylrpzSSBTB0ISm4fkuzjkWJ0pmnHA9VbUYVVCLF8+c9gVGEuaspSqZfKegu82RNf0dXz/cg5V9mYpCn4rggVGAgpdbqHECOs3Y+fWwtUTtQJAK1MBSwzi0NzogwTHh4Tmz6u8mABldVCEoWF8XECb87faZiiNq6n/eYB+fCI77xHsNBNtBfPNuAEBxFx8CaQqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=h5nkWjyfuJY1L4vUEbb1KCajr5yIDJbLVOzBHwwe6cI=; b=LDjxlGC/mHT+Ifjio04iZH32dC5l2Yo3rd5sIPZmKj+AR28EBvZ6kxM+4dQhpeTy5AXbN86fmG0lpPFBod/fBx8wH+QW49R37jCfffs+pgTWf1W8WPLIWTiB8R4rbhyeuf+BofaVfMDe6E4uURR84ADqq8DbZNIQpAIyj6YK5Dc2HFji9ETeU0TkDQbAp7PtNaENRs0I0Jgp3dlAauwCgrEcpwgKsbf9maNyym4vPqsFAO+7uMZ1hlP3+473WCOHmG7MFjlY8eFT9bzSIsfAv260xH4BG/JBuftIaO5z6mLpJ5IsPeXqiyXNIPB+xt+P/aZBkwNpYIHqiD9j8hsyaw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MWHPR11MB1629.namprd11.prod.outlook.com (2603:10b6:301:d::21) by DS7PR11MB6270.namprd11.prod.outlook.com (2603:10b6:8:96::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.21; Wed, 7 Sep 2022 15:38:19 +0000 Received: from MWHPR11MB1629.namprd11.prod.outlook.com ([fe80::13c:8120:d994:16d2]) by MWHPR11MB1629.namprd11.prod.outlook.com ([fe80::13c:8120:d994:16d2%6]) with mapi id 15.20.5612.014; Wed, 7 Sep 2022 15:38:18 +0000 Date: Wed, 7 Sep 2022 16:38:10 +0100 From: Bruce Richardson To: Stephen Hemminger CC: Shijith Thotton , , , , , , , , Nicolas Chautru , "Ciara Power" , Konstantin Ananyev , Chengwen Feng , Kevin Laatz , Reshma Pattan , Maxime Coquelin , Chenbo Xia Subject: Re: [PATCH v2 1/5] build: add meson option to configure IOVA mode as VA Message-ID: References: <20220829151626.2101336-1-sthotton@marvell.com> <20220907134340.3629224-2-sthotton@marvell.com> <20220907083109.1cfe432c@hermes.local> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220907083109.1cfe432c@hermes.local> X-ClientProxiedBy: PR0P264CA0220.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1e::16) To MWHPR11MB1629.namprd11.prod.outlook.com (2603:10b6:301:d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR11MB1629:EE_|DS7PR11MB6270:EE_ X-MS-Office365-Filtering-Correlation-Id: 4c9d11ee-541e-487a-e42d-08da90e6fcc5 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: H1y49q2KSJHYGbGcIx5WbzJZFTe8KKLWxYf5CZ1jsz1xKwEgwJ8Zlrt2Nz4uup31HAEvMsGrAAJizpNJpnyb37SrrndEbfCI/3UMekr7mRh9YElaAbhEkxBqUiNWYEpOUQ8vcpe8GCzuWWDOymxuL4+QQY+SFSgn4+ljSSAbfqLv+zlxorWERyekIFIaAAtUA1s460STVTywbtvPTyovp8MghG4rCDLQJM68UvaZabAUL1MW4tXGQXvzKkb7JjA6FH0cJz67aCzsukiUk8XbS5NOyRK4orxkKNaxFTBEC/hHobthsXixsAhl/sJUF3TxypgPZ54lvaSk9EXdkUoiyhDOO6SkdECUMxVf5qCr9f/3UXPxN1gyuiCoim2pr8vk/q8N0vYkOce19LhBm09L2B9r1q7ddT1ze4fZMMQk5+Lgz1vhNGNDFTqlLiAcKuU5WUBiuG5bkuqa1PSZuatFCXWqcOJZCsNylDhFYP8WbLNNLcySh12wc13Kn9nvBUzZ9kyrKiS8orsUquUmVEhJCtpRiWLf0Ub4570YUsu/ROBp4tlr3MRHK63kZ/Zr3gR69UIMbQBQ9dAF30+Ra5gVaFddUFz2C+UJ9RZosm+BhqeKiCrvCq06E7QUD2o/ZMXPWoXBRbQtKoDH05LCocHjsHs6T2AU2ceI8Qmp6ISlkB4ULdIDgc1wZZZNsBrFtIYSewn4UQGzI8dVKEeYcYfi5g== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB1629.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(376002)(366004)(136003)(39860400002)(396003)(346002)(44832011)(86362001)(8676002)(66476007)(38100700002)(4326008)(82960400001)(66556008)(316002)(66946007)(41300700001)(6512007)(83380400001)(6506007)(186003)(26005)(5660300002)(6486002)(478600001)(54906003)(2906002)(6916009)(7416002)(107886003)(6666004)(8936002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?YeXiml9Z0KMqVMWTgW9D2ZVhu0m9KwCElXLCI/rdukvVIw05LW7jNXcTjzfW?= =?us-ascii?Q?YQPrUA8kK7YVhklPhT0HBleLK67uYCnNQrGQq6dB2PZDCVcBDStoma5/i9JE?= =?us-ascii?Q?gfNRgeB5WdmRIVz8vkzGt4MK3oJTMF0jwM0vnFoaCmWCWrXQiPcgwxVPr8UE?= =?us-ascii?Q?EQ05urGUmJOZIFW8t+JHaZs4r2CHfwBXCr7195QKapXfGi+JrmhvxfsxFX4s?= =?us-ascii?Q?+PgtbNz8Z3AgD3XxBbzhlYBT5GY89uykBDapaTcQBQ4hxfDw8WSqVxwMCW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ez8p14iluO7nmw5ZptA73?= =?us-ascii?Q?3lrzUmp2OaAllPEtBLB1z74lrsMUKjsJVsoeothv00xEdU5wjV0nb2mBXlfF?= =?us-ascii?Q?48Y7Ey/A6teQDVgMRvWAujFO+sXdUfTQcEuv7mBBRnhSsnKtjhgOwIjMI61Y?= =?us-ascii?Q?8byMju4++ge4/WuczzYtthHlXtJ+XQLdQEHrMRlW5N5/3guTH1wmDmsvVsyf?= =?us-ascii?Q?kHKW3ml/zLT9E5nKSWSr3cNPGx+0v3jLFi3rCFdKS1J9Iu/usKy8IaQTDlru?= =?us-ascii?Q?fVEW1Yx0h3Tsz7j/2foSIqO+seZJ3iuIIVbeEc3hOIpNAjiEceXLf58ZO4+Z?= =?us-ascii?Q?O9u5X8vOnW4hyTgpDxy8zoA+sSRA4L8kh16escNJeTArC58tule7eKr4KfQb?= =?us-ascii?Q?gz15LCEib+BftgqM+H3nVa1Dh4zU45wLLrNyuE9O6WUSzRgbc6WzOPaNfVFY?= =?us-ascii?Q?CA=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 4c9d11ee-541e-487a-e42d-08da90e6fcc5 X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1629.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Sep 2022 15:38:18.7645 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Wt47MqlUKF+2dZFr6jwsCtQvDvmJSyoC1zr9IC/fbwZZE9dKhJsYhB5kJiRsprJEtHj5SpN/U9wtSyw1/XHLOTjzJymQX+EgluAKHMUyg38= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB6270 X-OriginatorOrg: intel.com 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 On Wed, Sep 07, 2022 at 08:31:09AM -0700, Stephen Hemminger wrote: > On Wed, 7 Sep 2022 19:13:36 +0530 Shijith Thotton > wrote: > > > IOVA mode in DPDK is either PA or VA. The new build option iova_as_va > > configures the mode to VA at compile time and prevents setting it to PA > > at runtime. For now, all drivers which are not always enabled are > > disabled with this option. Supported driver can set the flag > > pmd_iova_as_va in its build file to enable build. > > > > mbuf structure holds the physical (PA) and virtual address (VA) of a > > buffer. if IOVA mode is set to VA, PA is redundant as it is the same as > > VA. So PA field need not be updated and marked invalid if the build is > > configured to use only VA. > > > > Signed-off-by: Shijith Thotton > > NAK This works ok for use cases where NFV is building local version of > DPDK, but meson options dont work for distro vendors. > I think for something of this magnitude a build-time option is definitely the way to go. Sure, it won't be available in distro-packages, but for something like this it's just too invasive - and rather niche IMHO - to make a runtime option. /Bruce