From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hemant Agrawal Subject: [PATCH] eal: fslmc bus need vfio enabled for non PCI case as well Date: Thu, 13 Jul 2017 17:18:50 +0530 Message-ID: <1499946530-29581-1-git-send-email-hemant.agrawal@nxp.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , To: Return-path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0055.outbound.protection.outlook.com [104.47.32.55]) by dpdk.org (Postfix) with ESMTP id 0D57729D9 for ; Thu, 13 Jul 2017 13:48:53 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" In case no_pci is configured, fslmc bus will still need the the vfio to be enabled. Signed-off-by: Hemant Agrawal --- lib/librte_eal/linuxapp/eal/eal.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index 7c78f2d..0484396 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -722,6 +722,13 @@ static int rte_eal_vfio_setup(void) vfio_enabled |= pci_vfio_is_enabled(); } +#ifdef RTE_LIBRTE_FSLMC_BUS + if (!vfio_enabled) { + if (!vfio_enable("vfio_fsl_mc")) + vfio_enabled = 1; + } +#endif + if (vfio_enabled) { /* if we are primary process, create a thread to communicate with -- 2.7.4