Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GPU Passthrough Issue
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
element432
n00b
n00b


Joined: 16 Dec 2016
Posts: 61

PostPosted: Sat Jun 02, 2018 3:29 pm    Post subject: GPU Passthrough Issue Reply with quote

So I have been trying to set up GPU Passthrough and I have been getting stuck at the part where I need to bind the GPU with vfio-pci. I have this in /etc/modprobe.d/vfio.conf:

Code:
options vfio-pci ids=10de:10f1,10de:1c02


This is the output from lspci, where I got the ID's to stick in /etc/modprobe.d/vfio.conf:

Code:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107 [GeForce GTX 1050] [10de:1c81] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation GP107GL High Definition Audio Controller [10de:0fb9] (rev a1)
02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] [10de:1c02] (rev a1)
02:00.1 Audio device [0403]: NVIDIA Corporation GP106 High Definition Audio Controller [10de:10f1] (rev a1)


The issue I am having is that the audio part of the GPU will not bind.

Code:
02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] [10de:1c02] (rev a1)
        Subsystem: eVga.com. Corp. GP106 [GeForce GTX 1060 3GB] [3842:5160]
        Kernel driver in use: vfio-pci
        Kernel modules: nvidia_drm, nvidia
02:00.1 Audio device [0403]: NVIDIA Corporation GP106 High Definition Audio Controller [10de:10f1] (rev a1)
        Subsystem: eVga.com. Corp. GP106 High Definition Audio Controller [3842:5160]
        Kernel driver in use: snd_hda_intel


I am not entirely sure where to go from here so any suggestion is helpful! Thanks!
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3956
Location: Dallas area

PostPosted: Sat Jun 02, 2018 4:19 pm    Post subject: Reply with quote

When I was playing with VM's a while back, I had a 2nd vid card for passthrough and set it with this
Code:
# radeon 6670 vga
  echo "1002 6758" >/sys/bus/pci/drivers/vfio-pci/new_id
  echo 0000:04:00.0 > /sys/bus/pci/drivers/vfio-pci/bind
# radeon 6670 audio hdmi
  echo "1002 aa90" >/sys/bus/pci/drivers/vfio-pci/new_id
  echo 0000:04:00.1 > /sys/bus/pci/drivers/vfio-pci/bind


modify id and bus id accordingly

I had it in a shell script that I executed this and then a qemu session, with a corresponding unload when done with the vm.
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
element432
n00b
n00b


Joined: 16 Dec 2016
Posts: 61

PostPosted: Sat Jun 02, 2018 4:34 pm    Post subject: Reply with quote

Alright, ill give that a shot when I get back home! Thank you!
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