You are not logged in.
Pages: 1
In the last few days I have been trying to set up a GPU passthrough to a virtual machine as described in this wiki page and this guide that first told me about this possibilty. I plan to use my HD6950 for the virtual machine and the iGPU of the i5 4460 for Arch, the host.
However, following the instructions I've run into a problem: After isolating the GPU using vfio-pci I no longer get an output to my monitor. If I connect it to the HDMI port of the motherboard it shows nothing at all, though it still seems to find a signal (the "no signal found" sign does not appear). If I connect it to the graphics card using video=efifb:off (I'm not sure whether I'm supposed to) I get the usual motherboard messages and the grub screen, however after this only
Loading Linux linux ...
Loading initial ramdisk ...
_appears. If I do not use that option it only says
starting version 229
_The only way I can fix this (without an additional boot medium of course) is to unplug the graphics card. Without it the PC boots fine using only the iGPU. After removing the vfio-pci modules from /etc/mkinitcpio.conf everything works fine again.
I've thought about a few different reasons, maybe you can deduce the reason of the problems from the output of the commands from the wiki. If you already have an idea for a fix and don't want to read through all of this, feel free to post it. At the moment this machine is used for nothing but testing this!
First of, in the Prerequisites it says the GPU ROM must support UEFI, and in the HD6950 ROMs it always says it does not. However, in other guides such as this one on the Debian wiki nearly the exact same configuration is used, so I expect this not to be a problem.
The output of dmesg|grep -e DMAR -e IOMMU is
[ 0.000000] ACPI: DMAR 0x00000000B9C34AB0 0000B8 (v01 INTEL BDW 00000001 INTL 00000001)
[ 0.000000] DMAR: IOMMU enabled
[ 0.027102] DMAR: Host address width 39
[ 0.027103] DMAR: DRHD base: 0x000000fed90000 flags: 0x0
[ 0.027110] DMAR: dmar0: reg_base_addr fed90000 ver 1:0 cap c0000020660462 ecap f0101a
[ 0.027111] DMAR: DRHD base: 0x000000fed91000 flags: 0x1
[ 0.027114] DMAR: dmar1: reg_base_addr fed91000 ver 1:0 cap d2008c20660462 ecap f010da
[ 0.027115] DMAR: RMRR base: 0x000000bbecf000 end: 0x000000bbeddfff
[ 0.027116] DMAR: RMRR base: 0x000000bd000000 end: 0x000000bf1fffff
[ 0.027127] DMAR-IR: IOAPIC id 8 under DRHD base 0xfed91000 IOMMU 1
[ 0.027127] DMAR-IR: HPET id 0 under DRHD base 0xfed91000
[ 0.027128] DMAR-IR: x2apic is disabled because BIOS sets x2apic opt out bit.
[ 0.027129] DMAR-IR: Use 'intremap=no_x2apic_optout' to override the BIOS setting.
[ 0.027356] DMAR-IR: Enabled IRQ remapping in xapic mode
[ 0.311102] DMAR: No ATSR found
[ 0.311170] DMAR: dmar0: Using Queued invalidation
[ 0.311214] DMAR: dmar1: Using Queued invalidation
[ 0.311221] DMAR: Setting RMRR:
[ 0.311234] DMAR: Setting identity map for device 0000:00:02.0 [0xbd000000 - 0xbf1fffff]
[ 0.311412] DMAR: Setting identity map for device 0000:00:14.0 [0xbbecf000 - 0xbbeddfff]
[ 0.311429] DMAR: Setting identity map for device 0000:00:1a.0 [0xbbecf000 - 0xbbeddfff]
[ 0.311448] DMAR: Setting identity map for device 0000:00:1d.0 [0xbbecf000 - 0xbbeddfff]
[ 0.311460] DMAR: Prepare 0-16MiB unity mapping for LPC
[ 0.311466] DMAR: Setting identity map for device 0000:00:1f.0 [0x0 - 0xffffff]
[ 0.311587] DMAR: Intel(R) Virtualization Technology for Directed I/O
[ 0.363221] [drm] DMAR active, disabling use of stolen memory
[ 7.697074] AMD IOMMUv2 driver by Joerg Roedel <jroedel@suse.de>
[ 7.697076] AMD IOMMUv2 functionality not available on this system
[ 14.618624] DMAR: DRHD: handling fault status reg 2
[ 14.618628] DMAR: DMAR:[DMA Read] Request device [05:00.0] fault addr fffe0000
DMAR:[fault reason 06] PTE Read access is not set
[ 15.361647] DMAR: DRHD: handling fault status reg 2
[ 15.361651] DMAR: DMAR:[DMA Read] Request device [05:00.0] fault addr fffe0000
DMAR:[fault reason 06] PTE Read access is not set
[ 16.104646] DMAR: DRHD: handling fault status reg 2
[ 16.104651] DMAR: DMAR:[DMA Read] Request device [05:00.0] fault addr fffe0000
DMAR:[fault reason 06] PTE Read access is not set
[ 16.847698] DMAR: DRHD: handling fault status reg 2
[ 16.847702] DMAR: DMAR:[DMA Read] Request device [05:00.0] fault addr fffe0000
DMAR:[fault reason 06] PTE Read access is not set
[ 17.590670] DMAR: DRHD: handling fault status reg 2
[ 17.590674] DMAR: DMAR:[DMA Read] Request device [05:00.0] fault addr fffe0000
DMAR:[fault reason 06] PTE Read access is not set
[ 18.333686] DMAR: DRHD: handling fault status reg 2
[ 18.333690] DMAR: DMAR:[DMA Read] Request device [05:00.0] fault addr fffe0000
DMAR:[fault reason 06] PTE Read access is not setI'm not quite sure when the "DMAR: DRHD: handling fault status reg 2" lines appeared, I think those weren't there the first time I tried this after setting up this installation last week. Also, it doesn't specify that Intel-IOMMU was enabled as in the wiki page, but only a "IOMMU enabled", but I guess that shouldn't matter as long as it finds IOMMU groups afterwards, correct?
My output of the command to list all IOMMU groups (before I use vfio of course) is
IOMMU group 0
00:00.0 Host bridge [0600]: Intel Corporation 4th Gen Core Processor DRAM Controller [8086:0c00] (rev 06)
IOMMU group 1
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller [8086:0c01] (rev 06)
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cayman PRO [Radeon HD 6950] [1002:6719]
01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Cayman/Antilles HDMI Audio [Radeon HD 6900 Series] [1002:aa80]
IOMMU group 2
00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06)
IOMMU group 3
00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06)
IOMMU group 4
00:14.0 USB controller [0c03]: Intel Corporation 9 Series Chipset Family USB xHCI Controller [8086:8cb1]
IOMMU group 5
00:16.0 Communication controller [0780]: Intel Corporation 9 Series Chipset Family ME Interface #1 [8086:8cba]
IOMMU group 6
00:1a.0 USB controller [0c03]: Intel Corporation 9 Series Chipset Family USB EHCI Controller #2 [8086:8cad]
IOMMU group 7
00:1b.0 Audio device [0403]: Intel Corporation 9 Series Chipset Family HD Audio Controller [8086:8ca0]
IOMMU group 8
00:1c.0 PCI bridge [0604]: Intel Corporation 9 Series Chipset Family PCI Express Root Port 1 [8086:8c90] (rev d0)
IOMMU group 9
00:1c.2 PCI bridge [0604]: Intel Corporation 9 Series Chipset Family PCI Express Root Port 3 [8086:8c94] (rev d0)
IOMMU group 10
00:1c.3 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev d0)
04:00.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev 41)
05:00.0 Multimedia audio controller [0401]: Creative Labs SB X-Fi [1102:0005]
IOMMU group 11
00:1d.0 USB controller [0c03]: Intel Corporation 9 Series Chipset Family USB EHCI Controller #1 [8086:8ca6]
IOMMU group 12
00:1f.0 ISA bridge [0601]: Intel Corporation 9 Series Chipset Family H97 Controller [8086:8cc6]
00:1f.2 SATA controller [0106]: Intel Corporation 9 Series Chipset Family SATA Controller [AHCI Mode] [8086:8c82]
00:1f.3 SMBus [0c05]: Intel Corporation 9 Series Chipset Family SMBus Controller [8086:8ca2]
IOMMU group 13
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)modinfo vfio-pci gives the expected output.
My /etc/modprobe.d/vfio.conf is
options vfio-pci ids=1002:6719,1002:aa80I've tried including 8086:0c01 before; but that didn't work either. Am I supposed to?
My /etc/default/grub file is
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="intel_iommu=on cryptdevice=UUID=d455c790-f3ea-4308-9ee9-264baf00d6af:home"
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true
# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
#GRUB_SAVEDEFAULT="true" My /etc/mkinitcpio.conf file is
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run. Advanced users may wish to specify all system modules
# in this array. For instance:
# MODULES="piix ide_disk reiserfs"
MODULES="vfio vfio_iommu_type1 vfio_pci vfio_virqfd i915"
# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image. This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=""
# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way. This is useful for config files.
FILES=""
# HOOKS
# This is the most important setting in this file. The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
## This setup specifies all modules in the MODULES setting above.
## No raid, lvm2, or encrypted root is needed.
# HOOKS="base"
#
## This setup will autodetect all modules for your system and should
## work as a sane default
# HOOKS="base udev autodetect block encrypt filesystems"
#
## This setup will generate a 'full' image which supports most systems.
## No autodetection is done.
# HOOKS="base udev block encrypt filesystems"
#
## This setup assembles a pata mdadm array with an encrypted root FS.
## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
# HOOKS="base udev block mdadm encrypt filesystems"
#
## This setup loads an lvm2 volume group on a usb device.
# HOOKS="base udev block lvm2 filesystems"
#
## NOTE: If you have /usr on a separate partition, you MUST include the
# usr, fsck and shutdown hooks.
HOOKS="base udev autodetect modconf block encrypt filesystems keyboard fsck"
# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"
# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""If you've come this far you read quite a lot; maybe you can even help me. Either way, thanks for the efforts!
Last edited by Calandas (2016-05-26 13:21:18)
Offline
Pages: 1