Hello Youhei,
we have found the `modinfo` command (from the kmod package[1]) will need to be 
at least with version 27 (which is available in Focal) to support reading 
information from built-in modules.

To be more precise, with these commits:
https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/commit/?h=v27&id=60084cf1cb24dc3a257976c0d539a4c3ffda5db5
https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/commit/?h=v27&id=73eed2aba3cbe18bbda40f18f7bc32e8de1ec81f
https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/commit/?h=v27&id=b866b2165ae6cf18fb26b635f4a7ee57c0334731
https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/commit/?h=v27&id=e7e2cb61fa9f1db3429d91ef6accff549500d268

I have these changes backported here:
https://code.launchpad.net/~cypressyew/ubuntu/+source/kmod/+git/kmod/+ref/builtin-test

If you want to give this a try, you can clone this repo and do the following:
  git clone -b builtin-test 
https://git.launchpad.net/~cypressyew/ubuntu/+source/kmod 
  sudo apt install gtk-doc-tools autoconf automake libtool
  cd kmod
  ./autogen.sh
  ./configure CFLAGS='-g -O2' --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib 
         --with-rootprefix=         --with-rootlibdir=/lib         
  make
  cd tools
  ./modinfo vfio-pci

This will fix this modinfo issue, it can print the built-in module info
correctly. Hopefully we can push this to Ubuntu archive later.

Regarding DPDK, I have no experience with it, not sure if it will use
the modinfo command here (a quick check with their repository[2] I
didn't see it calling modinfo directly.)

I found this article with keyword "unused vfio-pci dpdk" on the Internet, it 
looks like you will have to bind the driver to the device with something like:
# dpdk-devbind -b vfio-pci 0000:01:00.0 0000:01:00.1
Hope this helps:
https://www.miraclelinux.com/tech-blog/gofc5x


[1] https://launchpad.net/ubuntu/+source/kmod
[2] https://github.com/DPDK/dpdk

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1903612

Title:
  Can't Load vfio-pci Module on Ubuntu 18.04 HWE Kernel

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kmod/+bug/1903612/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to