You are not logged in.

#1 2018-10-23 16:01:27

POINTS
Member
Registered: 2013-11-29
Posts: 29

[SOLVED] Driver override script does not work with kernel 4.18.16

I followed the steps in https://wiki.archlinux.org/index.php/PC … _host_GPUs to setup my system to use only one of my graphics cards (so that I can use the second card with a VM). The script works fine in kernel 4.18.14 but in version 4.18.16, dmesg shows that the device is enabled.

Here are the scripts that I have. (They are pretty much the same as what the wiki shows.)

/usr/bin/vfio-pci-override.sh

#!/bin/sh

GROUP="0000:00:0b.0"
DEVS="0000:03:00.0 0000:03:00.1 ."

if [ ! -z "$(ls -A /sys/class/iommu)" ]; then
        for DEV in $DEVS; do
                echo "vfio-pci" > /sys/bus/pci/devices/$GROUP/$DEV/driver_override
        done
fi

modprobe -i vfio-pci

/etc/modprobe.d/vfio.conf

install vfio-pci /usr/bin/vfio-pci-override.sh

/etc/mkinitcpio.conf (edited: added to FILES)

FILES=(/etc/modprobe.d/vfio.conf /usr/bin/vfio-pci-override.sh)

I wasn't sure how to collect more information or if I should write a bug report (or if the wiki needs to be updated). Has anyone else had this issue with 4.18.16?

Last edited by POINTS (2018-10-27 20:17:59)

Offline

#2 2018-10-23 16:38:51

loqs
Member
Registered: 2014-03-06
Posts: 17,560

Re: [SOLVED] Driver override script does not work with kernel 4.18.16

Offline

#3 2018-10-27 20:17:16

POINTS
Member
Registered: 2013-11-29
Posts: 29

Re: [SOLVED] Driver override script does not work with kernel 4.18.16

That's loqs. There was a good discussion there and a link to a reddit thread too. In case anyone is interested, the reddit thread is: https://www.reddit.com/r/VFIO/comments/ … iledin_no/

The ticket has been closed and it looks like the resolution was to revert the change that caused my issue in 4.18.16. Kernel 4.19 doesn't have the issue for me anymore. (4.19 is currently in the testing repo.)

I'll mark this thread as resolved. The work around was to avoid the arch build of kernel 4.18.16 and use 4.18.14 or 4.19 instead.

Offline

Board footer

Powered by FluxBB