Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/auspham/vfio-passthrough-single-gpu-nvidia
my vfio passthrough single gpu nvidia script which works for popos 21.10 nvidia 470
https://github.com/auspham/vfio-passthrough-single-gpu-nvidia
Last synced: about 1 month ago
JSON representation
my vfio passthrough single gpu nvidia script which works for popos 21.10 nvidia 470
- Host: GitHub
- URL: https://github.com/auspham/vfio-passthrough-single-gpu-nvidia
- Owner: auspham
- Created: 2021-12-29T02:50:10.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-31T22:53:26.000Z (almost 3 years ago)
- Last Synced: 2024-10-13T05:49:58.677Z (2 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vfio-passthrough-single-gpu-nvidia
This script will fix the problem where GNOME desktop environment keeps restarting that happens to Popos 21.10: https://imgur.com/Mv7JjfL on Nvidia 470
Tested on:
- Kernel: 5.15.5-76051505-generic
- DE: GNOME 40.5
- WM: Mutter
- OS: Pop!_OS 21.10 x86_64
- RTX 3060 ti Driver Version: 470.86 CUDA Version: 11.4
- Host: XPS8940**Note**:
- Sometimes win10 doesn't launch
- Modify `qemu` for your own usage. I disabled a few cores for my CPU pinning, feel free to remove it
- `vfio-bind` and `vfio-rebind` to passthrough my USB Host controller **which doesn't have reset**. You don't need to do this if your devices support reset.
- check reset if device supports reset using this script:
```
#!/bin/bash
for iommu_group in $(find /sys/kernel/iommu_groups/ -maxdepth 1 -mindepth 1 -type d);do echo "IOMMU group $(basename "$iommu_group")"; for device in $(\ls -1 "$iommu_group"/devices/); do if [[ -e "$iommu_group"/ devices/"$device"/reset ]]; then echo -n "[RESET]"; fi; echo -n $'\t';lspci -nns "$device"; done; done
```