tips:gpu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tips:gpu [2016/11/22 16:56] – [Prereq] scipiotips:gpu [2022/11/04 08:13] (current) – [nvidia and wayland] sscipioni
Line 1: Line 1:
 ====== GPU ====== ====== GPU ======
  
-===== Prereq =====+===== nvidia and wayland =====
  
-  Install ovfm+add **nvidia_drm.modeset=1** to grub settings ///etc/default/grub//
  
-<file txt /etc/modules> +/etc/modprobe.d/nvidia-power-management.conf 
-vfio +<code> 
-vfio_iommu_type1 +options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp
-vfio_pci +
-vfio_virqfd +
-</file> +
- +
-<code bash+
-update-initramfs -u+
 </code> </code>
  
-Create VM and customize configuration before start: +enable these services 
-  * In the "Overview" section, set your firmware to "UEFI" +<code
-  * In the "Processor" section write CPU model to "host-passthrough" +systemctl enable nvidia-hibernate 
- +systemctl enable nvidia-resume 
-<file+systemctl enable nvidia-suspend
-<features> +
- <hyperv> +
- ... +
- <vendor_id state='on' value='123456789ab'/> +
- ... +
- </hyperv> +
- ... +
- <kvm> +
- <hidden state='on'/> +
- </kvm> +
-</features> +
- +
-    <hostdev mode='subsystem' type='pci' managed='yes'> +
-      <source> +
-        <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> +
-      </source> +
-      <rom file='/opt/Palit.GTX750Ti.2048.140702.rom'/> +
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/> +
-    </hostdev> +
-    <hostdev mode='subsystem' type='pci' managed='yes'> +
-      <source> +
-        <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/> +
-      </source> +
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/> +
-    </hostdev> +
  
 +</code>
  
-</file> 
  • tips/gpu.1479830199.txt.gz
  • Last modified: 2016/11/22 16:56
  • by scipio