Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Use other discrete GPU?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
sandwh1ched
n00b
n00b


Joined: 12 Nov 2024
Posts: 1
Location: United States of America

PostPosted: Tue Nov 12, 2024 3:12 am    Post subject: Use other discrete GPU? Reply with quote

Hello! I have spent almost all day trying to get GPU passthrough with virt-manager working, and one of the reasons I haven't been able to is because I need two GPUs, an AMD RX 580 and an NVIDIA GeForce GTX 1650 (which I want to pass through) and it keeps using my GeForce card when I need it for passthrough, so I installed my old RX 580 to provide a GPU for the host.
Things I have tried:
- Blacklisting all drivers for NVIDIA
- Switching the 580 to the upper-most PCI slot
- Looking in UEFI for a primary GPU setting
- The `pci=nommconf` kernel param
- Looking on Google

Thanks!
_________________
"install Gentoo" -gentooman on YouTube
Back to top
View user's profile Send private message
jpsollie
Guru
Guru


Joined: 17 Aug 2013
Posts: 323

PostPosted: Wed Nov 13, 2024 7:13 pm    Post subject: Reply with quote

you can assign a driver for the card via modprobe
In this case, the PCI-vfio driver is what you need to bind to the card you'll pass to the guest OS.
this will make the DRM manager ignore it.
the following config should help here:
Code:

options vfio-pci ids=vendid:devid
softdep amdgpu pre: vfio-pci
softdep drm pre: vfio-pci
softdep nvidia pre: vfio-pci

this will make sure the vfio-pci driver loads before your GPU drivers, when you add the vendor ID and device ID of your geforce card (which cou'll find by using lspci -vvv), it will claim the card you want to reserve for the guest OS.
_________________
The power of Gentoo optimization (not overclocked): [img]https://www.passmark.com/baselines/V10/images/503714802842.png[/img]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum