[vfio-users] Fwd: failing IGD passthrough on apollo lake - BAR 2 error
Geert Coulommier
g.coulommier at gmail.com
Thu Jul 27 09:32:24 UTC 2017
Hi,
so I've tried the 2 options you suggested:
1) "look in /proc/iomem and identify the driver that's still claiming
portions of IGD and disable it"
from /proc/iomem:
...
80000000-cfffffff : PCI Bus 0000:00
80000000-8fffffff : 0000:00:02.0
80000000-808cffff : efifb
...
which is strange as to prevent this, the part "video=efifb:off" was added
to grub:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=on iommu=pt
rd.driver.pre=vfio-pci video=vesafb:off,efifb:off"
Because I'm running the host on uefi, and to keeps things clean, I removed
the "vesafb:off"-part:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=on iommu=pt
rd.driver.pre=vfio-pci video=efifb:off"
Unexpectedly, this seemed have an effect. Now from /proc/iomem (when not
running the VM,full printout of /proc/iomem below in [1]):
...
80000000-cfffffff : PCI Bus 0000:00
80000000-8fffffff : 0000:00:02.0
90000000-90ffffff : 0000:00:02.0
91000000-910fffff : 0000:00:0e.0
91100000-911fffff : PCI Bus 0000:03
91100000-911001ff : 0000:03:00.0
91100000-911001ff : ahci
...
when running the VM, it goes to:
...
80000000-cfffffff : PCI Bus 0000:00
80000000-8fffffff : 0000:00:02.0
80000000-8fffffff : vfio-pci
90000000-90ffffff : 0000:00:02.0
90000000-90ffffff : vfio-pci
91000000-910fffff : 0000:00:0e.0
91000000-910fffff : vfio-pci
91100000-911fffff : PCI Bus 0000:03
91100000-911001ff : 0000:03:00.0
91100000-911001ff : ahci
91200000-912fffff : PCI Bus 0000:01
91200000-91203fff : 0000:01:00.0
91200000-91203fff : r8169
91204000-91204fff : 0000:01:00.0
91204000-91204fff : r8169
91300000-9130ffff : 0000:00:15.0
91300000-9130ffff : xhci-hcd
91310000-91313fff : 0000:00:0e.0
91310000-91313fff : vfio-pci
91314000-91315fff : 0000:00:12.0
91314000-91315fff : ahci
91316000-913160ff : 0000:00:1f.1
91317000-913177ff : 0000:00:12.0
91317000-913177ff : ahci
91318000-913180ff : 0000:00:12.0
91318000-913180ff : ahci
9131b000-9131bfff : 0000:00:0f.0
9131b000-9131bfff : mei_me
...
and the dmesg log:
dmesg | grep -aiE '((DMAR)|(kvm)|(drm)|(Command line)|(iommu)|(vfio))'
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.12.3-041203-generic
root=/dev/mapper/granada--vg-root ro quiet splash intel_iommu=on iommu=pt
rd.driver.pre=vfio-pci video=efifb:off vt.handoff=7
[ 0.000000] ACPI: DMAR 0x000000006D9D0470 0000A8 (v01 INTEL EDK2
00000003 BRXT 0100000D)
[ 0.000000] Kernel command line:
BOOT_IMAGE=/boot/vmlinuz-4.12.3-041203-generic
root=/dev/mapper/granada--vg-root ro quiet splash intel_iommu=on iommu=pt
rd.driver.pre=vfio-pci video=efifb:off vt.handoff=7
[ 0.000000] DMAR: IOMMU enabled
[ 0.044107] DMAR: Host address width 39
[ 0.044109] DMAR: DRHD base: 0x000000fed64000 flags: 0x0
[ 0.044126] DMAR: dmar0: reg_base_addr fed64000 ver 1:0 cap
1c0000c40660462 ecap 7e3ff0505e
[ 0.044128] DMAR: DRHD base: 0x000000fed65000 flags: 0x1
[ 0.044139] DMAR: dmar1: reg_base_addr fed65000 ver 1:0 cap
d2008c40660462 ecap f050da
[ 0.044142] DMAR: RMRR base: 0x0000006d5af000 end: 0x0000006d5cefff
[ 0.044145] DMAR: RMRR base: 0x0000006f800000 end: 0x0000007fffffff
[ 0.044148] DMAR-IR: IOAPIC id 1 under DRHD base 0xfed65000 IOMMU 1
[ 0.044150] DMAR-IR: HPET id 0 under DRHD base 0xfed65000
[ 0.044152] DMAR-IR: Queued invalidation will be enabled to support
x2apic and Intr-remapping.
[ 0.046253] DMAR-IR: Enabled IRQ remapping in x2apic mode
[ 1.794596] DMAR: No ATSR found
[ 1.795685] DMAR: dmar0: Using Queued invalidation
[ 1.795694] DMAR: dmar1: Using Queued invalidation
[ 1.795872] DMAR: Hardware identity mapping for device 0000:00:00.0
[ 1.795882] DMAR: Hardware identity mapping for device 0000:00:02.0
[ 1.795886] DMAR: Hardware identity mapping for device 0000:00:0e.0
[ 1.795888] DMAR: Hardware identity mapping for device 0000:00:0f.0
[ 1.795890] DMAR: Hardware identity mapping for device 0000:00:12.0
[ 1.795892] DMAR: Hardware identity mapping for device 0000:00:13.0
[ 1.795895] DMAR: Hardware identity mapping for device 0000:00:13.1
[ 1.795897] DMAR: Hardware identity mapping for device 0000:00:13.2
[ 1.795899] DMAR: Hardware identity mapping for device 0000:00:13.3
[ 1.795902] DMAR: Hardware identity mapping for device 0000:00:15.0
[ 1.795904] DMAR: Hardware identity mapping for device 0000:00:1f.0
[ 1.795906] DMAR: Hardware identity mapping for device 0000:00:1f.1
[ 1.795911] DMAR: Hardware identity mapping for device 0000:01:00.0
[ 1.795916] DMAR: Hardware identity mapping for device 0000:03:00.0
[ 1.795917] DMAR: Setting RMRR:
[ 1.795920] DMAR: Ignoring identity map for HW passthrough device
0000:00:02.0 [0x6f800000 - 0x7fffffff]
[ 1.795922] DMAR: Ignoring identity map for HW passthrough device
0000:00:15.0 [0x6d5af000 - 0x6d5cefff]
[ 1.795924] DMAR: Prepare 0-16MiB unity mapping for LPC
[ 1.795926] DMAR: Ignoring identity map for HW passthrough device
0000:00:1f.0 [0x0 - 0xffffff]
[ 1.795954] DMAR: Intel(R) Virtualization Technology for Directed I/O
[ 1.796125] iommu: Adding device 0000:00:00.0 to group 0
[ 1.796140] iommu: Adding device 0000:00:02.0 to group 1
[ 1.796157] iommu: Adding device 0000:00:0e.0 to group 2
[ 1.796174] iommu: Adding device 0000:00:0f.0 to group 3
[ 1.796187] iommu: Adding device 0000:00:12.0 to group 4
[ 1.796229] iommu: Adding device 0000:00:13.0 to group 5
[ 1.796254] iommu: Adding device 0000:00:13.1 to group 5
[ 1.796271] iommu: Adding device 0000:00:13.2 to group 5
[ 1.796288] iommu: Adding device 0000:00:13.3 to group 5
[ 1.796317] iommu: Adding device 0000:00:15.0 to group 6
[ 1.796338] iommu: Adding device 0000:00:1f.0 to group 7
[ 1.796350] iommu: Adding device 0000:00:1f.1 to group 7
[ 1.796361] iommu: Adding device 0000:01:00.0 to group 5
[ 1.796371] iommu: Adding device 0000:03:00.0 to group 5
[ 2.512432] ata1.00: supports DRM functions and may not be fully
accessible
[ 2.514160] ata1.00: supports DRM functions and may not be fully
accessible
[ 3.124755] VFIO - User Level meta-driver version: 0.3
[ 3.137417] vfio-pci 0000:00:02.0: vgaarb: changed VGA decodes:
olddecodes=io+mem,decodes=io+mem:owns=io+mem
[ 3.156196] vfio_pci: add [8086:5a85[ffff:ffff]] class 0x000000/00000000
[ 3.176202] vfio_pci: add [8086:5a98[ffff:ffff]] class 0x000000/00000000
with these entries added when running the VM:
[ 49.439866] vfio_cap_init: 0000:00:0e.0 pci config conflict @0x80, was
cap 0x9 now cap 0x10
[ 49.439869] vfio_cap_init: 0000:00:0e.0 pci config conflict @0x81, was
cap 0x9 now cap 0x10
[ 49.439871] vfio_cap_init: 0000:00:0e.0 pci config conflict @0x82, was
cap 0x9 now cap 0x10
[ 49.439873] vfio_cap_init: 0000:00:0e.0 pci config conflict @0x83, was
cap 0x9 now cap 0x10
[ 49.442695] DMAR: DRHD: handling fault status reg 3
[ 49.442710] DMAR: [DMA Write] Request device [00:02.0] fault addr 0
[fault reason 02] Present bit in context entry is clear
[ 49.567831] vfio_ecap_init: 0000:00:02.0 hiding ecap 0x1b at 0x100
Passthrough still doesn't work though, and the last two lines in the kernel
log seem to hint at that. So from option one to option 2:
2) "don't blacklist i915, let the kernel boot with it, then do a 'virsh
nodedev-detach pci_0000_00_02_0' at boot before starting the VM so that
you're not binding it back to i915 after every instance of running the
VM."
So I unblacklisted i915 an executed 'virsh nodedev-dettach
pci_0000_00_02_0':
virsh nodedev-dettach pci_0000_00_02_0
Device pci_0000_00_02_0 detached
Then ran the VM. Unfortunately, results are the same, as are the log
entries in the kernel log (see above).
When running the same virsh 'nodedev-dettach pci_0000_00_02_0' command when
running the VM, I get:
virsh nodedev-dettach pci_0000_00_02_0
error: Failed to detach device pci_0000_00_02_0
error: Requested operation is not valid: PCI device 0000:00:02.0 is in use
by driver QEMU, domain ubuntu16.04_desktop
So it does seem to be attached to the VM correctly.
Maybe interesting observation: when the host boots, the screen shows grub
and then goes black but stays powered on. When I launch the VM, the screen
stays black but powers off.
Finally, until now I had ignored the errors in the kernel log on the audio
device (0000:00:0e.0) as I was focusing on the gpu. As requested, in [2]
the output of 'sudo lspci -xxxxs 0000:00:0e.0'.
Thanks in advance for any further assistance.
Geert
[1] full content of /proc/iomem
cat /proc/iomem
00000000-00000fff : Reserved
00001000-0003efff : System RAM
0003f000-0003ffff : Reserved
00040000-0009efff : System RAM
0009f000-000fffff : Reserved
000a0000-000bffff : PCI Bus 0000:00
000c0000-000dffff : PCI Bus 0000:00
000c0000-000cfdff : Video ROM
000e0000-000fffff : PCI Bus 0000:00
000f0000-000fffff : System ROM
00100000-0fffffff : System RAM
10000000-12150fff : Reserved
12151000-6b4c8fff : System RAM
6b4c9000-6d5e9fff : Reserved
6d5ea000-6d6bbfff : System RAM
6d6bc000-6d9dffff : ACPI Non-volatile Storage
6d9e0000-6dd88fff : Reserved
6dd89000-6dde2fff : Unknown E820 type
6dde3000-6e155fff : System RAM
6e156000-6e156fff : ACPI Non-volatile Storage
6e157000-6e180fff : Reserved
6e181000-6e756fff : System RAM
6e757000-6e758fff : Reserved
6e759000-6effffff : System RAM
6f000000-7fffffff : Reserved
6f800001-6fffffff : PCI Bus 0000:00
70000001-7fffffff : PCI Bus 0000:00
80000000-cfffffff : PCI Bus 0000:00
80000000-8fffffff : 0000:00:02.0
90000000-90ffffff : 0000:00:02.0
91000000-910fffff : 0000:00:0e.0
91100000-911fffff : PCI Bus 0000:03
91100000-911001ff : 0000:03:00.0
91100000-911001ff : ahci
91200000-912fffff : PCI Bus 0000:01
91200000-91203fff : 0000:01:00.0
91200000-91203fff : r8169
91204000-91204fff : 0000:01:00.0
91204000-91204fff : r8169
91300000-9130ffff : 0000:00:15.0
91300000-9130ffff : xhci-hcd
91310000-91313fff : 0000:00:0e.0
91314000-91315fff : 0000:00:12.0
91314000-91315fff : ahci
91316000-913160ff : 0000:00:1f.1
91317000-913177ff : 0000:00:12.0
91317000-913177ff : ahci
91318000-913180ff : 0000:00:12.0
91318000-913180ff : ahci
9131b000-9131bfff : 0000:00:0f.0
9131b000-9131bfff : mei_me
d0000000-d0ffffff : Reserved
d0c00000-d0c00653 : INT3452:03
d0c00000-d0c00653 : INT3452:03
d0c40000-d0c40763 : INT3452:01
d0c40000-d0c40763 : INT3452:01
d0c50000-d0c5076b : INT3452:00
d0c50000-d0c5076b : INT3452:00
d0c70000-d0c70673 : INT3452:02
d0c70000-d0c70673 : INT3452:02
e0000000-efffffff : PCI MMCONFIG 0000 [bus 00-ff]
e0000000-efffffff : Reserved
e0000000-efffffff : PCI Bus 0000:00
e0000000-efffffff : pnp 00:03
fe042000-fe044fff : Reserved
fe900000-fe902fff : Reserved
fea00000-feafffff : pnp 00:03
fec00000-fec00fff : Reserved
fec00000-fec003ff : IOAPIC 0
fed00000-fed003ff : HPET 0
fed00000-fed003ff : PNP0103:00
fed01000-fed01fff : intel-spi
fed01000-fed01fff : Reserved
fed01000-fed01fff : pnp 00:03
fed01000-fed01fff : intel-spi
fed03000-fed03fff : pnp 00:03
fed06000-fed06fff : pnp 00:03
fed08000-fed09fff : pnp 00:03
fed1c000-fed1cfff : pnp 00:03
fed64000-fed64fff : dmar0
fed65000-fed65fff : dmar1
fed80000-fedbffff : pnp 00:03
fee00000-fee00fff : Local APIC
fee00000-fee00fff : Reserved
ff800000-ffffffff : Reserved
100000000-27fffffff : System RAM
11fa00000-1202e5e28 : Kernel code
1202e5e29-120a78abf : Kernel data
120cca000-120f1ffff : Kernel bss
[2] output of 'sudo lspci -xxxxs 0000:00:0e.0'
sudo lspci -xxxxs 0000:00:0e.0
00:0e.0 Audio device: Intel Corporation Celeron N3350/Pentium N4200/Atom
E3900 Series Audio Cluster (rev 0b)
00: 86 80 98 5a 02 01 10 00 0b 00 03 04 00 00 00 00
10: 04 00 31 91 00 00 00 00 00 00 00 00 00 00 00 00
20: 04 00 00 91 00 00 00 00 00 00 00 00 49 18 92 c8
30: 00 00 00 00 50 00 00 00 00 00 00 00 19 01 00 00
40: 00 00 00 00 00 00 00 00 ff 0d 7b 80 00 00 00 00
50: 01 80 43 c8 08 00 00 00 00 00 00 00 00 00 00 00
60: 05 70 80 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 10 00 91 00 00 00 00 10 00 28 10 00 00 00 00 00
80: 09 60 14 f0 10 00 40 01 00 00 00 00 a1 04 01 00
90: 00 08 28 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 08 06 02 00 00 70 00 04 00 0c a5 82 10 00 03 00
d0: 00 0c b5 02 10 00 03 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 1c 0f 00 01 00 00 00 00
100: 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
110: 00 00 00 00 ff 00 00 80 00 00 00 00 00 00 00 00
120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
130: 05 00 01 00 00 01 00 0f 00 00 00 00 00 00 00 00
140: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
260: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
270: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
290: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
320: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
410: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
490: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
510: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
530: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
540: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
560: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
570: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
590: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
610: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
620: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
640: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
650: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
660: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
670: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
690: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
710: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
720: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
730: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
740: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
750: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
760: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
770: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
790: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
810: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
820: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
830: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
840: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
850: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
860: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
870: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
890: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
910: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
920: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
930: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
940: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
950: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
960: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
970: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
990: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
aa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ab0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ac0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ad0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ae0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
af0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ba0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
be0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ca0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ce0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
da0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
db0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
dc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
dd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
de0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
df0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ea0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
eb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ec0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ed0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ee0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ef0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
On 26 July 2017 at 20:05, Alex Williamson <alex.williamson at redhat.com>
wrote:
> On Wed, 26 Jul 2017 19:51:12 +0200
> Geert Coulommier <g.coulommier at gmail.com> wrote:
>
> > Hi,
> >
> > I've been trying to get IGD passthrough to work on an ubuntu 17.04 into
> > linux VM's (Ubuntu 16.04) on an Apollo Lake J3455, using mainly Alex'
> blog
> > and this mailing list as a guide, but I keep ending up with a black
> screen.
> >
> > There is no other graphics card, so I've been trying with Seabios and the
> > legacy method. I915 is blacklisted. The host is an Ubuntu 17.04 server
> with
> > the Linux kernel upgraded to 4.12.3. Qemu is on 2.8.
> >
> > I also tried to passthrough the audio card with the same method, and this
> > worked without a glitch.
> >
> > >From an extract of the dmesg logfile (see below in [8]) it seems that
> I'm
> > also running into the BAR 2 error:
> > [ 192.797993] vfio-pci 0000:00:02.0: BAR 2: can't reserve [mem
> > 0x80000000-0x8fffffff 64bit pref]
>
> I'd say you have two options, 1) look in /proc/iomem and identify the
> driver that's still claiming portions of IGD and disable it, or 2)
> don't blacklist i915, let the kernel boot with it, then do a 'virsh
> nodedev-detach pci_0000_00_02_0' at boot before starting the VM so that
> you're not binding it back to i915 after every instance of running the
> VM.
>
> > 00:0e.0 Audio device [0403]: Intel Corporation Celeron N3350/Pentium
> > N4200/Atom E3900 Series Audio Cluster [8086:5a98] (rev 0b)
> > Subsystem: ASRock Incorporation Atom/Celeron/Pentium Processor
> > N4200/N3350/E3900 Series Audio Cluster [1849:c892]
> > Kernel driver in use: vfio-pci
> > Kernel modules: snd_hda_intel, snd_soc_skl
> ...
> > [ 192.668847] vfio_cap_init: 0000:00:0e.0 pci config conflict @0x80, was
> > cap 0x9 now cap 0x10
> > [ 192.668851] vfio_cap_init: 0000:00:0e.0 pci config conflict @0x81, was
> > cap 0x9 now cap 0x10
> > [ 192.668853] vfio_cap_init: 0000:00:0e.0 pci config conflict @0x82, was
> > cap 0x9 now cap 0x10
> > [ 192.668855] vfio_cap_init: 0000:00:0e.0 pci config conflict @0x83, was
> > cap 0x9 now cap 0x10
>
> Hmm, seems we're not super happy parsing this device's config space,
> can you provide 'sudo lspci -xxxxs 0000:00:0e.0'. I don't think this
> is related to the IGD issue though. Thanks,
>
> Alex
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20170727/aff1a638/attachment.htm>
More information about the vfio-users
mailing list