test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] framework/project_dpdk:Modify the verification mode of load vfio PCI
@ 2020-05-27  9:05 xizhan4x
  2020-05-27  9:06 ` Zhang, XiX
  2020-06-01  3:23 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: xizhan4x @ 2020-05-27  9:05 UTC (permalink / raw)
  To: dts; +Cc: xizhan4x

Ubuntu 20.04 vfio-pci is a builtin module ,Modify the verification mode of load vfio PCI
 
Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
 framework/project_dpdk.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

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 = self.send_expect("lsmod | grep vfio_iommu_type1", "#")
-            assert ("vfio_iommu_type1" in out), "Failed to setup vfio-pci"
+            out = self.send_expect("lsmod | grep vfio_iommu_type1", "#")
+            if not out:
+                out = self.send_expect("ls /sys/module |grep vfio_pci", "#")
+            assert ("vfio_pci" in out), "Failed to insmod vfio_pci"
+
 
             if drivermode == "noiommu":
                 self.send_expect("echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode", "#", 70)
-- 
2.17.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-01  3:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-27  9:05 [dts] [PATCH V1] framework/project_dpdk:Modify the verification mode of load vfio PCI xizhan4x
2020-05-27  9:06 ` Zhang, XiX
2020-06-01  3:23 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).