From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0076.outbound.protection.outlook.com [104.47.36.76]) by dpdk.org (Postfix) with ESMTP id BA18D2B9A for ; Sat, 7 Oct 2017 13:23:12 +0200 (CEST) Received: from CY4PR03CA0001.namprd03.prod.outlook.com (2603:10b6:903:33::11) by SN2PR03MB2365.namprd03.prod.outlook.com (2603:10b6:804:e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Sat, 7 Oct 2017 11:23:11 +0000 Received: from BN1AFFO11FD008.protection.gbl (2a01:111:f400:7c10::109) by CY4PR03CA0001.outlook.office365.com (2603:10b6:903:33::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7 via Frontend Transport; Sat, 7 Oct 2017 11:23:11 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD008.mail.protection.outlook.com (10.58.52.68) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.77.10 via Frontend Transport; Sat, 7 Oct 2017 11:23:10 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v97BKr5N002316; Sat, 7 Oct 2017 04:21:08 -0700 From: Hemant Agrawal To: , CC: Date: Sat, 7 Oct 2017 16:50:21 +0530 Message-ID: <1507375221-16271-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1499946530-29581-1-git-send-email-hemant.agrawal@nxp.com> References: <1499946530-29581-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131518489912437087; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(376002)(346002)(39860400002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(2950100002)(86362001)(5003940100001)(6666003)(104016004)(5660300001)(106466001)(81156014)(81166006)(8676002)(105606002)(68736007)(48376002)(33646002)(36756003)(2906002)(47776003)(498600001)(4326008)(189998001)(69596002)(50226002)(8936002)(110136005)(97736004)(16586007)(316002)(50466002)(50986999)(76176999)(305945005)(77096006)(53936002)(85426001)(356003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB2365; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD008; 1:ffYgXU87xva6WweMuIdj+cECK2AtpHx39Q3rQm1kKjpbcmOftOMWlz+2tLWmFH/T3p4y31UK1FDqKXr1a8qkLw5ZNYWqpWJRTA3b0nfbx4hMZ1coAe5ZnyXxnbJNJfg5 MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d9783737-0b88-437f-07fe-08d50d75cb15 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017052603199)(201703131430075)(201703131517081); SRVR:SN2PR03MB2365; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2365; 3:ZYYAPYzG7IT82k68DGxi36BzIdICfxoWDWobR/smM4CbJuuVpag3/kkX/LBXeVVvkQhxhv0gXz4tbcplX8Qbe0tV3tpgCCYUFw4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X0GzMncenEcSKjXJFg4I2JPooeFoLXM7TRkAZX0ZD9M6/hVUzSYZajv5BoAlP6ly902gIHt+zfSmkx5YJOjl8tcglay5vBLss64IjQB2evS462ePgCDbVRkrduMB7h/05E= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(10201501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123556025)(20161123565025)(20161123563025)(20161123561025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN2PR03MB2365; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN2PR03MB2365; X-Forefront-PRVS: 045315E1EE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR03MB2365; 23:kfXtP3p3clK3UIz2nju2A8m+VnVzlH6+xJmattF5I?= =?us-ascii?Q?jJrD7eGUXTAOXa6zKznfKfqjTj+ONsEQdVcomNYqIAd12nbg/VLQE8pxRxWo?= =?us-ascii?Q?IyUYPBiaWKqHWyjlOnKFbGBvEauLa2XjLburSbKOJyqpo+ibfWqOi7Hs6kU/?= =?us-ascii?Q?r8OoKBhTbgZTAsd/xfWX64DqO7CzkhKyNNEzhr7dinnqWY/DNvp66eAYVj+1?= =?us-ascii?Q?DE1mwCW/g+OKQGWgyxeidhfeeji9V+JxOhRaatHA7JZutUBReukTIioaZeld?= =?us-ascii?Q?2WaktS2dG8l0j/nw065RmNdyLa1IzhgjIJcZiF9Oss82AzKkFzg3hTlCQ9JO?= =?us-ascii?Q?PlNv4QwxbTPd7B1cTZwsZ0zIDOhmP47/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58CC+lK4uCuD2QNoc4224E5fpZ0Yrbik8ACjpUx1mhViKDBZxtwrURLd+KA5tQiKC2BYI0dgR81P2U6nmgZ8tJrwCjj95kp0pD4yqanil0XLl6APQSBY3Ut8oIZ/OUhoOVV7wYe19a4H4fXniK3DYyGp8JUMTyAwSoyWbXzAjdywg73Yv+g6HR91gXEXjlZHzrTJ86inbwwtVAOO/YjUYvKvKVrBc83iXSFcC9GggnJxBSU6VuTBQm59kIfCgEcnCg==; 5:7+2jP/k+nS11SMnfcOphGO1dolMoUnSdhgveW0tWocifCI9mdkn6wAXe73zZLC2fd6UPy6b7skAep+OF+VLMwF8PSD8xJbsP2Nb7cKz6FcCXShNIWr1YRp3wXgdeCrduyq+AyFQxJNmUSzoWx318jbaj96hGPAjXZ9/ha0jyO+Y=; 24:+RxR5/VzZiz3G3+pXjh2Dl9quPK/dEZokvZ1I2JdXpEJzUT5OpnPM5tffl2gaSySFZ4ltWUK6B+uAU0BH2Nh17+0m+577x1S0hpvwIGoic8=; 7:g33BE79JaFtsINFN7mh9us/VhNc73R/4+2MwtogKnO1rCgFg20Wb+pZ8glI/gJcFBUUIZr8wYuQThffQrwS6Jn7Dli5rhAXv7qbGF2oWVffuXgMYASCid79hkneTvZQBD6zoEWbp95BtgYqlQPrvGWwjXNuwvlH5zOVazQKwZBOVS3+h/X6olBuih/3A10/tt++E0K0gsL4ck7tUemdtd7JQF7BM6qZazHZGe8XRjSM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2017 11:23:10.9941 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR03MB2365 Subject: [dpdk-dev] [PATCH v2] eal: enable vfio independent of no PCI flag 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: Sat, 07 Oct 2017 11:23:14 -0000 In case no_pci is configured, other buses e.g. fslmc bus will still need the the vfio to be enabled. Signed-off-by: Hemant Agrawal --- v2: enabled VFIO, independent of no-pci flag as suggested by Thomas lib/librte_eal/linuxapp/eal/eal.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index 28bc46b..76c980c 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -733,10 +733,8 @@ static int rte_eal_vfio_setup(void) { int vfio_enabled = 0; - if (!internal_config.no_pci) { - pci_vfio_enable(); - vfio_enabled |= pci_vfio_is_enabled(); - } + pci_vfio_enable(); + vfio_enabled |= pci_vfio_is_enabled(); if (vfio_enabled) { -- 2.7.4