From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hemant Agrawal Subject: Re: [PATCH] eal: fslmc bus need vfio enabled for non PCI case as well Date: Sat, 7 Oct 2017 16:52:06 +0530 Message-ID: References: <1499946530-29581-1-git-send-email-hemant.agrawal@nxp.com> <2584395.73f1Oakct5@xps> <1afffe26-d574-0c6d-6101-836aaca1a37b@nxp.com> <3872801.Digd9JTyXe@xps> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Cc: , To: Thomas Monjalon Return-path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0072.outbound.protection.outlook.com [104.47.34.72]) by dpdk.org (Postfix) with ESMTP id 390402B9A for ; Sat, 7 Oct 2017 13:23:13 +0200 (CEST) In-Reply-To: <3872801.Digd9JTyXe@xps> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 10/6/2017 10:38 PM, Thomas Monjalon wrote: > 06/10/2017 18:22, Hemant Agrawal: >> On 10/6/2017 5:11 AM, Thomas Monjalon wrote: >>> 13/07/2017 13:48, Hemant Agrawal: >>>> In case no_pci is configured, fslmc bus will still need the >>>> the vfio to be enabled. >>>> >>>> Signed-off-by: Hemant Agrawal >>>> --- >>>> --- a/lib/librte_eal/linuxapp/eal/eal.c >>>> +++ b/lib/librte_eal/linuxapp/eal/eal.c >>>> +#ifdef RTE_LIBRTE_FSLMC_BUS >>>> + if (!vfio_enabled) { >>>> + if (!vfio_enable("vfio_fsl_mc")) >>>> + vfio_enabled = 1; >>>> + } >>>> +#endif >>> >>> It seems to be a hack. >>> VFIO is not only PCI. >>> Why --no-pci is impacting VFIO? >>> >>> Anatoly? >>> >> >> At present there are only 2 users of VFIO. PCI and fsl-mc bus. >> >> >> One options is that we always enable vfio irrespective of --no-pci flag. >> My believe is that vfio-pci will be present in most system supporting >> any other flavor of vfio (platform, fsl-mc etc). >> >> The other option is what I proposed. i.e. if vfio is not already enabled >> the platform is FSLMC bus, enable it. > > Why not always enable it? > I agree. sent a v2 for this. Regards, Hemant