From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6F9DFA04EF; Mon, 1 Jun 2020 05:24:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5EA6C1D416; Mon, 1 Jun 2020 05:24:06 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 4D9521D414 for ; Mon, 1 Jun 2020 05:24:04 +0200 (CEST) IronPort-SDR: ttqdbix4gMRbeIXbi6UsHo4ol7J75NKq+XGMkBUPZONQoSo6P0yUd6KiTirfUnpvwMPAuWAjbT kH1nxQ7sVzhw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2020 20:24:03 -0700 IronPort-SDR: ELMmoawLEFFDqXqkHYQxPR88I8ebC2yg9NOCR097GbmnETbC0eObFiZOsof8ZLs142QPJW4B4f HlXQsua7jabw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,459,1583222400"; d="scan'208";a="256656567" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga007.fm.intel.com with ESMTP; 31 May 2020 20:24:03 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 31 May 2020 20:23:59 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sun, 31 May 2020 20:23:57 -0700 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Sun, 31 May 2020 20:23:57 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.41]) with mapi id 14.03.0439.000; Mon, 1 Jun 2020 11:23:54 +0800 From: "Tu, Lijuan" To: "Zhang, XiX" , "dts@dpdk.org" CC: "Zhang, XiX" Thread-Topic: [dts] [PATCH V1] framework/project_dpdk:Modify the verification mode of load vfio PCI Thread-Index: AQHWNAUgbLNtJ1ZX8kih5ZK+6fHA6ajDIBlA Date: Mon, 1 Jun 2020 03:23:54 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC56701@SHSMSX101.ccr.corp.intel.com> References: <1590570301-110587-1-git-send-email-xix.zhang@intel.com> In-Reply-To: <1590570301-110587-1-git-send-email-xix.zhang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] framework/project_dpdk:Modify the verification mode of load vfio PCI X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xizhan4x > Sent: Wednesday, May 27, 2020 5:05 PM > To: dts@dpdk.org > Cc: Zhang, XiX > Subject: [dts] [PATCH V1] framework/project_dpdk:Modify the verification > mode of load vfio PCI >=20 > Ubuntu 20.04 vfio-pci is a builtin module ,Modify the verification mode o= f > load vfio PCI >=20 > Signed-off-by: xizhan4x > --- > framework/project_dpdk.py | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) >=20 > diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index > a1c0e20..6fd5d4a 100644 > --- a/framework/project_dpdk.py > +++ b/framework/project_dpdk.py > @@ -106,8 +106,11 @@ class DPDKdut(Dut): > self.send_expect("rmmod vfio", "#", 70) > self.send_expect("modprobe vfio", "#", 70) > self.send_expect("modprobe vfio-pci", "#", 70) > - out =3D self.send_expect("lsmod | grep vfio_iommu_type1", "#= ") > - assert ("vfio_iommu_type1" in out), "Failed to setup vfio-pc= i" > + out =3D self.send_expect("lsmod | grep vfio_iommu_type1", "#= ") > + if not out: > + out =3D self.send_expect("ls /sys/module |grep vfio_pci"= , "#") > + assert ("vfio_pci" in out), "Failed to insmod vfio_pci" > + >=20 > if drivermode =3D=3D "noiommu": > self.send_expect("echo 1 > > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode", "#", 70) > -- > 2.17.2