Passthrough with vfio does not work : Debian freezes on boot

Post questions regarding lower-level issues will here.

Passthrough with vfio does not work : Debian freezes on boot

Postby ziomario » October 4th, 2019, 12:01 pm

Hello.

I'm trying to enable the passthrough on my graphic card (nvidia RTX 2080 ti on CPU I9 - 9900k) on the debian 10,following this tutorial :


https://passthroughpo.st/gpu-debian/

These are the commands that I gave :


added this line : vfio_pci ids= 10de:1e04,10de:10f7 to this file : /etc/initramfs-tools/modules


below you can see how I have got that numbers :


ziomario@DESKTOP-N9UN2H3:/home/mariozio# lspci -nn | grep 01:00.

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU102 [GeForce RTX 2080 Ti] [10de:1e04] (rev a1)01:00.1 Audio device [0403]: NVIDIA Corporation TU102 High Definition Audio Controller [10de:10f7] (rev a1)


and then I did : update-initramfs -uupdate-initramfs -u -k all


and I have added these lines :


blacklist nouveau
options nouveau modeset-0


to this file : /etc/modprobe.d/blacklist.conf


the tutorial does not explain if I should modify also the file /etc/default/grub. Anyway I tried,adding this line :


GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=on iommu=pt"


instead of the old one,that was : GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"


and then I did again : update-initramfs -uupdate-initramfs -u -k all


but the result does not change. During the boot I see the blinking cursor hanging on the screen and nothing happens anymore. I have even removed all the changes that I made and I did again :


update-initramfs -uupdate-initramfs -u -k all


to understand what's the problem and I seen that if I add this line : vfio_pci ids= 10de:1e04,10de:10f7


and then I reboots the machine,it freezes.


maybe is useful if u read here :

mariozio@DESKTOP-N9UN2H3:/home/mariozio# dmesg | grep -e DMAR

[ 0.006554] ACPI: DMAR 0x00000000393A0E98 0000A8 (v01 ALASKA A M I 00000002 01000013)
[ 0.163834] DMAR: IOMMU enabled
[ 0.222182] DMAR: Host address width 39
[ 0.222182] DMAR: DRHD base: 0x000000fed90000 flags: 0x0
[ 0.222185] DMAR: dmar0: reg_base_addr fed90000 ver 1:0 cap 1c0000c40660462 ecap 19e2ff0505e
[ 0.222185] DMAR: DRHD base: 0x000000fed91000 flags: 0x1
[ 0.222187] DMAR: dmar1: reg_base_addr fed91000 ver 1:0 cap d2008c40660462 ecap f050da
[ 0.222188] DMAR: RMRR base: 0x0000003988e000 end: 0x00000039ad7fff
[ 0.222188] DMAR: RMRR base: 0x0000003b000000 end: 0x0000003f7fffff
[ 0.222189] DMAR-IR: IOAPIC id 2 under DRHD base 0xfed91000 IOMMU 1
[ 0.222189] DMAR-IR: HPET id 0 under DRHD base 0xfed91000
[ 0.222190] DMAR-IR: Queued invalidation will be enabled to support x2apic and Intr-remapping.
[ 0.223606] DMAR-IR: Enabled IRQ remapping in x2apic mode
[ 1.263105] DMAR: No ATSR found
[ 1.263138] DMAR: dmar0: Using Queued invalidation
[ 1.263179] DMAR: dmar1: Using Queued invalidation
[ 1.263426] DMAR: Hardware identity mapping for device 0000:00:00.0
[ 1.263427] DMAR: Hardware identity mapping for device 0000:00:01.0
[ 1.263469] DMAR: Hardware identity mapping for device 0000:00:02.0
[ 1.263470] DMAR: Hardware identity mapping for device 0000:00:12.0
[ 1.263471] DMAR: Hardware identity mapping for device 0000:00:14.0
[ 1.263471] DMAR: Hardware identity mapping for device 0000:00:14.2
[ 1.263472] DMAR: Hardware identity mapping for device 0000:00:16.0
[ 1.263472] DMAR: Hardware identity mapping for device 0000:00:17.0
[ 1.263473] DMAR: Hardware identity mapping for device 0000:00:1b.0
[ 1.263473] DMAR: Hardware identity mapping for device 0000:00:1c.0
[ 1.263474] DMAR: Hardware identity mapping for device 0000:00:1d.0
[ 1.263474] DMAR: Hardware identity mapping for device 0000:00:1f.0
[ 1.263475] DMAR: Hardware identity mapping for device 0000:00:1f.3
[ 1.263475] DMAR: Hardware identity mapping for device 0000:00:1f.4
[ 1.263476] DMAR: Hardware identity mapping for device 0000:00:1f.5
[ 1.263477] DMAR: Hardware identity mapping for device 0000:00:1f.6
[ 1.263478] DMAR: Hardware identity mapping for device 0000:01:00.0
[ 1.263479] DMAR: Hardware identity mapping for device 0000:01:00.1
[ 1.263480] DMAR: Hardware identity mapping for device 0000:01:00.2
[ 1.263480] DMAR: Hardware identity mapping for device 0000:01:00.3
[ 1.263481] DMAR: Setting RMRR:
[ 1.263481] DMAR: Ignoring identity map for HW passthrough device 0000:00:02.0 [0x3b000000 - 0x3f7fffff]
[ 1.263481] DMAR: Ignoring identity map for HW passthrough device 0000:00:14.0 [0x3988e000 - 0x39ad7fff]
[ 1.263482] DMAR: Prepare 0-16MiB unity mapping for LPC
[ 1.263482] DMAR: Ignoring identity map for HW passthrough device 0000:00:1f.0 [0x0 - 0xffffff]
[ 1.263529] DMAR: Intel(R) Virtualization Technology for Directed I/O
[ 16.610522] DMAR: 32bit 0000:01:00.0 uses non-identity mapping

Do u have some suggestion ? thanks.
ziomario
 
Posts: 1
Joined: October 4th, 2019, 11:57 am

Return to System Issues

Who is online

Users browsing this forum: No registered users and 1 guest

x