From yurakeshi, 2 Weeks ago, written in Bash.
  1. $ sudo cat /etc/modprobe.d/vfio.conf
  2. # Adding this line gives me black screen on host
  3. # options vfio-pci ids=10de:1401,10de:0fba
  4.  
  5. $ uname -r
  6. 4.19.0-kali5-amd64
  7.  
  8. $ libvirtd --version
  9. libvirtd (libvirt) 5.0.0
  10.  
  11.  
  12. $ sudo qemu-system-x86_64 --version
  13. QEMU emulator version 3.1.0 (Debian 1:3.1+dfsg-8)
  14. Copyright (c) 2003-2018 Fabrice Bellard and the QEMU Project developers
  15.  
  16. $ kvm-ok
  17. INFO: /dev/kvm exists
  18. KVM acceleration can be used
  19.  
  20. $ lsmod | grep kvm
  21. kvm_intel             245760  0
  22. kvm                   724992  1 kvm_intel
  23. irqbypass              16384  2 vfio_pci,kvm
  24.  
  25. $ sudo inxi -xsG
  26. Graphics:  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics vendor: Micro-Star MSI driver: i915
  27.            v: kernel bus ID: 00:02.0
  28.            Device-2: NVIDIA GM206 [GeForce GTX 960] vendor: Micro-Star MSI driver: nvidia v: 418.74 bus ID: 01:00.0
  29.            Display: server: X.Org 1.20.4 driver: modesetting,nvidia unloaded: fbdev,nouveau,vesa resolution: 1920x1080~60Hz
  30.            OpenGL: renderer: GeForce GTX 960/PCIe/SSE2 v: 4.6.0 NVIDIA 418.74 direct render: Yes
  31. Sensors:   System Temperatures: cpu: 39.0 C mobo: N/A gpu: nvidia temp: 38 C
  32.            Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
  33.  
  34. $ sudo lspci -v
  35.  
  36. 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06) (prog-if 00 [Normal decode])
  37.         Flags: bus master, fast devsel, latency 0, IRQ 16
  38.         Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
  39.         I/O behind bridge: 0000e000-0000efff [size=4K]
  40.         Memory behind bridge: f6000000-f70fffff [size=17M]
  41.         Prefetchable memory behind bridge: 00000000e0000000-00000000f1ffffff [size=288M]
  42.         Capabilities: [88] Subsystem: Micro-Star International Co., Ltd. [MSI] Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller
  43.         Capabilities: [80] Power Management version 3
  44.         Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
  45.         Capabilities: [a0] Express Root Port (Slot+), MSI 00
  46.         Capabilities: [100] Virtual Channel
  47.         Capabilities: [140] Root Complex Link
  48.         Kernel driver in use: pcieport
  49.  
  50. 00:02.0 Display controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
  51.         DeviceName:  Onboard IGD
  52.         Subsystem: Micro-Star International Co., Ltd. [MSI] Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
  53.         Flags: bus master, fast devsel, latency 0, IRQ 28
  54.         Memory at f7400000 (64-bit, non-prefetchable) [size=4M]
  55.         Memory at d0000000 (64-bit, prefetchable) [size=256M]
  56.         I/O ports at f000 [size=64]
  57.         Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
  58.         Capabilities: [d0] Power Management version 2
  59.         Capabilities: [a4] PCI Advanced Features
  60.         Kernel driver in use: i915
  61.         Kernel modules: i915
  62.  
  63.  
  64. 01:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 960] (rev a1) (prog-if 00 [VGA controller])
  65.         Subsystem: Micro-Star International Co., Ltd. [MSI] GM206 [GeForce GTX 960]
  66.         Flags: bus master, fast devsel, latency 0, IRQ 33
  67.         Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
  68.         Memory at e0000000 (64-bit, prefetchable) [size=256M]
  69.         Memory at f0000000 (64-bit, prefetchable) [size=32M]
  70.         I/O ports at e000 [size=128]
  71.         [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
  72.         Capabilities: [60] Power Management version 3
  73.         Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
  74.         Capabilities: [78] Express Legacy Endpoint, MSI 00
  75.         Capabilities: [100] Virtual Channel
  76.         Capabilities: [250] Latency Tolerance Reporting
  77.         Capabilities: [258] L1 PM Substates
  78.         Capabilities: [128] Power Budgeting <?>
  79.         Capabilities: [420] Advanced Error Reporting
  80.         Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
  81.         Kernel driver in use: nvidia
  82.         Kernel modules: nvidia
  83.  
  84.  
  85. 01:00.1 Audio device: NVIDIA Corporation GM206 High Definition Audio Controller (rev a1)
  86.         Subsystem: Micro-Star International Co., Ltd. [MSI] GM206 High Definition Audio Controller
  87.         Flags: bus master, fast devsel, latency 0, IRQ 17
  88.         Memory at f7080000 (32-bit, non-prefetchable) [size=16K]
  89.         Capabilities: [60] Power Management version 3
  90.         Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
  91.         Capabilities: [78] Express Endpoint, MSI 00
  92.         Kernel driver in use: snd_hda_intel
  93.         Kernel modules: snd_hda_intel
  94.  
  95.  
  96. $ sudo cat /etc/default/grub | grep GRUB_CMDLINE_LINUX_DEFAULT=
  97. GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"
  98.  
  99.  
  100. $ sudo cat /etc/modprobe.d/vfio.conf
  101. options vfio_iommu_type1 allow_unsafe_interrupts=1
  102. options vfio_pci ids=10de:1401,10de:0fba
  103.  
  104. $ sudo cat /etc/initramfs-tools/modules
  105. vfio
  106. vfio_iommu_type1
  107. vfio_pci
  108. vfio_virqfd
  109.  
  110. $ lsmod | grep vfio
  111. vfio_pci               53248  0
  112. irqbypass              16384  2 vfio_pci,kvm
  113. vfio_virqfd            16384  1 vfio_pci
  114. vfio_iommu_type1       28672  0
  115. vfio                   32768  2 vfio_iommu_type1,vfio_pci
  116.  
  117. $ sudo cat /etc/modprobe.d/blacklist-libnfc.conf
  118. blacklist nfc
  119. blacklist pn533
  120. blacklist noveau
  121.  
  122.  
  123. $ for d in /sys/kernel/iommu_groups/*/devices/*; do n=${d#*/iommu_groups/*}; n=${n%%/*}; printf 'IOMMU Group %s ' "$n"; lspci -nns "${d##*/}"; done;
  124.  
  125. IOMMU Group 0 00:00.0 Host bridge [0600]: Intel Corporation 4th Gen Core Processor DRAM Controller [8086:0c00] (rev 06)
  126. 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)
  127. IOMMU Group 1 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM206 [GeForce GTX 960] [10de:1401] (rev a1)
  128. IOMMU Group 1 01:00.1 Audio device [0403]: NVIDIA Corporation GM206 High Definition Audio Controller [10de:0fba] (rev a1)
  129. IOMMU Group 2 00:02.0 Display controller [0380]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06)
  130. 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)
  131.  
  132.  
  133.  
  134. $ sudo cat /etc/modprobe.d/nvidia.conf
  135. # This file was probably generated by nvidia installation
  136. # Tried commenting those lines but also gives me black screen on boot
  137.  
  138. install nvidia modprobe -i nvidia-current $CMDLINE_OPTS
  139.  
  140. install nvidia-modeset modprobe nvidia ; modprobe -i nvidia-current-modeset $CMDLINE_OPTS
  141.  
  142. install nvidia-drm modprobe nvidia-modeset ; modprobe -i nvidia-current-drm $CMDLINE_OPTS
  143.  
  144. install nvidia-uvm modprobe nvidia ; modprobe -i nvidia-current-uvm $CMDLINE_OPTS
  145.  
  146. remove nvidia modprobe -r -i nvidia-drm nvidia-modeset nvidia-uvm nvidia
  147.  
  148. remove nvidia-modeset modprobe -r -i nvidia-drm nvidia-modeset
  149.  
  150. # These aliases are defined in *all* nvidia modules.
  151. # Duplicating them here sets higher precedence and ensures the selected
  152. # module gets loaded instead of a random first match if more than one
  153. # version is installed. See #798207.
  154. alias   pci:v000010DEd00000E00sv*sd*bc04sc80i00*        nvidia
  155. alias   pci:v000010DEd00000AA3sv*sd*bc0Bsc40i00*        nvidia
  156. alias   pci:v000010DEd*sv*sd*bc03sc02i00*               nvidia
  157. alias   pci:v000010DEd*sv*sd*bc03sc00i00*               nvidia
  158.  

Replies to vfio-pci ids black screen rss

Title Name Language When
Re: vfio-pci ids black screen yurakeshi bash 2 Weeks ago.
captcha