From: "xu,huilong" <huilongx.xu@intel.com>
To: dts@dpdk.org
Cc: "xu,huilong" <huilongx.xu@intel.com>
Subject: [dts] [PATCH V1 1/2] support uio_pci_generic insmod in framework
Date: Wed, 18 Oct 2017 09:26:13 +0800 [thread overview]
Message-ID: <1508289974-12545-1-git-send-email-huilongx.xu@intel.com> (raw)
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
next reply other threads:[~2017-10-18 1:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-18 1:26 xu,huilong [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1508289974-12545-1-git-send-email-huilongx.xu@intel.com \
--to=huilongx.xu@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).