From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 53E181B2F5 for ; Wed, 1 Nov 2017 19:31:37 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP; 01 Nov 2017 11:31:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,330,1505804400"; d="scan'208";a="916346323" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.254.27.219]) ([10.254.27.219]) by FMSMGA003.fm.intel.com with ESMTP; 01 Nov 2017 11:31:35 -0700 To: "Tan, Jianfeng" , Jerin Jacob Cc: Thomas Monjalon , "Richardson, Bruce" , "Gonzalez Monroy, Sergio" , "dev@dpdk.org" , Santosh Shukla References: <20171101010726.17781-1-ferruh.yigit@intel.com> <20171101040251.GA13569@jerin> <80719d01-7859-e6ac-ee1e-964a04357098@intel.com> <20171101065431.GA25152@jerin> <20171101082642.GA30967@jerin> From: Ferruh Yigit Message-ID: <236c9e59-c43f-7503-343a-fe05824fa2d7@intel.com> Date: Wed, 1 Nov 2017 11:31:34 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] eal: disable IOVA mode detection by default X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Nov 2017 18:31:37 -0000 On 11/1/2017 1:53 AM, Tan, Jianfeng wrote: > > >> -----Original Message----- > ... >>> >>>> Regarding the KNI crash, it can be avoid by first checking the exiting >>>> mode(rte_eal_iova_mode()). i.e since legacy driver like KNI need real >>>> physical address to work "now", it can grace full exit on the init time if >>>> mode == IOVA_VA; >>> >>> For the KNI crash, do we really need to correct the case: make those PMDs >>> (requires IOVA_VA) also work well with KNI? >>> - If no, we just need to report RTE_PCI_DRV_IOVA_AS_VA smartly. >>> - If yes, we shall make KNI work with VA. >> >> I would say "yes". But for this immediate release, I would say "no". > > Ferruh, if you also agree on "no" for now, we might fix it like this: I agree with Jerin, for this release "no", for long term "yes". > > For PMDs like ixgbe/i40e/..., we detect if phys_addrs_available to decide RTE_PCI_DRV_IOVA_AS_VA in a RTE_INIT function. > > How do you think of that? Instead Santosh's suggestion looks simpler. Detect if kni module inserted, if so set IOVA PA mode. I guess rte_bus_get_iommu_class() can updated for this check as workaround. > > Thanks, > Jianfeng >