You are not logged in.

#1 2018-12-07 15:50:44

buptwugh
Member
Registered: 2017-06-10
Posts: 5

[Solved] After Update VFIO not work

Hi,

After last week `pacman -Syu` I cannot isolate the GPU by VFIO, I follow the guide in https://wiki.archlinux.org/index.php/PC … the_kernel
Here is some information

My Kernel version is

Linux highspeed 4.19.4-arch1-1-ARCH #1 SMP PREEMPT Fri Nov 23 09:06:58 UTC 2018 x86_64 GNU/Linux

My IOMMU Group is

IOMMU Group 12 06:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
IOMMU Group 1 00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) [8086:1901] (rev 07)
IOMMU Group 1 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP104 [GeForce GTX 1070] [10de:1b81] (rev a1)
IOMMU Group 1 01:00.1 Audio device [0403]: NVIDIA Corporation GP104 High Definition Audio Controller [10de:10f0] (rev a1)
IOMMU Group 2 00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 530 [8086:1912] (rev 06)

Then I change my grub config to floowing

menuentry 'Arch Linux VM' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-58a0e9ff-4800-43ed-9c0c-2d502fca9c2f' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod fat
        set root='hd0,gpt1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt1' --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  5322-BE08
        else
          search --no-floppy --fs-uuid --set=root 5322-BE08
        fi
        echo    'Loading Linux linux ...'
        linux   /vmlinuz-linux root=UUID=58a0e9ff-4800-43ed-9c0c-2d502fca9c2f rw  quiet intel_iommu=on module_blacklist=nvidia_drm,nvidia_modeset,nvidia,nouveau vfio-pci.ids=10de:1b81,10de:10f0
        echo    'Loading initial ramdisk ...'
        initrd  /intel-ucode.img /initramfs-linux.img
}

After add the blacklist, my linux didn't load the nvidia and nouveau driver. But the vfio still can not as the module in lspci.

01:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070] (rev a1)
        Subsystem: Micro-Star International Co., Ltd. [MSI] GP104 [GeForce GTX 1070]
        Kernel modules: nouveau, nvidia_drm, nvidia
01:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1)
        Subsystem: Micro-Star International Co., Ltd. [MSI] GP104 High Definition Audio Controller
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

Is this related to kernel problems?

Thank you

Last edited by buptwugh (2018-12-08 03:02:50)

Offline

#2 2018-12-07 21:15:29

nassi
Member
From: Finland
Registered: 2017-01-27
Posts: 35

Re: [Solved] After Update VFIO not work

https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#With_vfio-pci_loaded_as_a_module wrote:

linux kernel does not include vfio-pci as a built-in module and therefore needs to be loaded en configured separately like so

For a (short) while vfio-pci was included as a built-in module but now that you upgraded your system that is no longer the case. So instead of what you're currently doing, please refer to what's written under the earlier title in the link you posted.

Offline

#3 2018-12-08 03:02:10

buptwugh
Member
Registered: 2017-06-10
Posts: 5

Re: [Solved] After Update VFIO not work

nassi wrote:
https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#With_vfio-pci_loaded_as_a_module wrote:

linux kernel does not include vfio-pci as a built-in module and therefore needs to be loaded en configured separately like so

For a (short) while vfio-pci was included as a built-in module but now that you upgraded your system that is no longer the case. So instead of what you're currently doing, please refer to what's written under the earlier title in the link you posted.

Ok, So I think the wiki need update.

The wiki mention that "Starting with Linux 4.1, the kernel includes vfio-pci.", my kernel already " 4.19.4-arch1-1-ARCH"

Offline

Board footer

Powered by FluxBB