test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1 1/2] support uio_pci_generic insmod in framework
@ 2017-10-18  1:26 xu,huilong
  2017-10-18  1:26 ` [dts] [PATCH V1 2/2] add a new support drivername in execution file drivername list xu,huilong
  2017-10-18  9:28 ` [dts] [PATCH V1 1/2] support uio_pci_generic insmod in framework Liu, Yong
  0 siblings, 2 replies; 3+ messages in thread
From: xu,huilong @ 2017-10-18  1:26 UTC (permalink / raw)
  To: dts; +Cc: xu,huilong

dpdk support uio_pci_generic driver, so should support insmod uio_pci_generic in
dts framework

Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
 framework/project_dpdk.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py
index 23d1d7c..6bc47f2 100644
--- a/framework/project_dpdk.py
+++ b/framework/project_dpdk.py
@@ -109,6 +109,12 @@ class DPDKdut(Dut):
             if drivermode == "noiommu":
                 self.send_expect("echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode", "#", 70)
 
+        elif drivername == "uio_pci_generic":
+            self.send_expect("modprobe uio", "#", 70)
+            self.send_expect("modprobe uio_pci_generic", "#", 70)
+            out = self.send_expect("lsmod | grep uio_pci_generic", "#")
+            assert ("uio_pci_generic" in out), "Failed to setup uio_pci_generic"
+ 
         else:
             self.send_expect("modprobe uio", "#", 70)
             out = self.send_expect("lsmod | grep igb_uio", "#")
-- 
1.9.3

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

end of thread, other threads:[~2017-10-18  1:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-18  1:26 [dts] [PATCH V1 1/2] support uio_pci_generic insmod in framework xu,huilong
2017-10-18  1:26 ` [dts] [PATCH V1 2/2] add a new support drivername in execution file drivername list xu,huilong
2017-10-18  9:28 ` [dts] [PATCH V1 1/2] support uio_pci_generic insmod in framework Liu, Yong

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).