Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED][VFIO]Unable to isolate the HDMI device
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
Babaorheum
n00b
n00b


Joined: 30 Jul 2017
Posts: 15
Location: France

PostPosted: Wed Aug 02, 2017 9:31 pm    Post subject: [SOLVED][VFIO]Unable to isolate the HDMI device Reply with quote

Hi,

I'm new and Gentoo and i have an issue to isolate the HDMI device from my 2nd GPU to do PCI Passthrough. Actually, there is only the GPU which is isolated.

I think i have correctly enabled vfio in my .config before to compile the Kernel :
Code:
#
# DMABUF options
#
CONFIG_SYNC_FILE=y
# CONFIG_SW_SYNC is not set
# CONFIG_AUXDISPLAY is not set
# CONFIG_UIO is not set
CONFIG_VFIO_IOMMU_TYPE1=m
CONFIG_VFIO_VIRQFD=m
CONFIG_VFIO=m
# CONFIG_VFIO_NOIOMMU is not set
CONFIG_VFIO_PCI=m
CONFIG_VFIO_PCI_VGA=y
CONFIG_VFIO_PCI_MMAP=y
CONFIG_VFIO_PCI_INTX=y
CONFIG_VFIO_PCI_IGD=y
# CONFIG_VFIO_MDEV is not set
CONFIG_IRQ_BYPASS_MANAGER=m
CONFIG_VIRT_DRIVERS=y
CONFIG_VIRTIO=m

#
# Certificates for signature checking
#
# CONFIG_SYSTEM_BLACKLIST_KEYRING is not set
CONFIG_HAVE_KVM=y
CONFIG_HAVE_KVM_IRQCHIP=y
CONFIG_HAVE_KVM_IRQFD=y
CONFIG_HAVE_KVM_IRQ_ROUTING=y
CONFIG_HAVE_KVM_EVENTFD=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_ASYNC_PF=y
CONFIG_HAVE_KVM_MSI=y
CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=y
CONFIG_KVM_VFIO=y
CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=y
CONFIG_KVM_COMPAT=y
CONFIG_HAVE_KVM_IRQ_BYPASS=y
CONFIG_VIRTUALIZATION=y
CONFIG_KVM=m
# CONFIG_KVM_INTEL is not set
CONFIG_KVM_AMD=m
# CONFIG_KVM_MMU_AUDIT is not set
# CONFIG_VHOST_NET is not set
# CONFIG_VHOST_CROSS_ENDIAN_LEGACY is not set
CONFIG_BINARY_PRINTF=y


Once my Gentoo was completly installed (Desktop Env., Qemu etc ...), i create a "vfio.conf" file into "/etc/modprobe.d" to isolate GPU/HDMI :
Code:
cat /etc/modprobe.d/vfio.conf
options vfio-pci ids=10de:13c2,10de:0fbb


Also, i have add vfio modules into "/etc/conf.d/modules" :
Code:
modules="vfio vfio_iommu_type1 vfio_pci vfio_virqfd"


And after a last reboot unfortunalty, there is only the GPU from my gtx970 which is isolated, the HDMI is still used by "snd_hda_intel" module/driver.
I follow the same way on Debian and there wasn't this issue ...

lspci -nnk for my gtx970 :
Code:
29:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM204 [GeForce GTX 970] [10de:13c2] (rev a1)
   Subsystem: eVga.com. Corp. GM204 [GeForce GTX 970] [3842:3975]
   Kernel driver in use: vfio-pci
29:00.1 Audio device [0403]: NVIDIA Corporation GM204 High Definition Audio Controller [10de:0fbb] (rev a1)
   Subsystem: eVga.com. Corp. GM204 High Definition Audio Controller [3842:3975]
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel


I don't find where come from the issue.
Thanks for your help,

Cheers,
Babaorheum
_________________
Sorry for my English, i'm French :-)


Last edited by Babaorheum on Fri Aug 04, 2017 4:23 am; edited 1 time in total
Back to top
View user's profile Send private message
Maitreya
Guru
Guru


Joined: 11 Jan 2006
Posts: 420

PostPosted: Thu Aug 03, 2017 3:02 pm    Post subject: Reply with quote

Had the same issue before. IRC putting the device IDs as boot line option and reserving them worked.
Back to top
View user's profile Send private message
Babaorheum
n00b
n00b


Joined: 30 Jul 2017
Posts: 15
Location: France

PostPosted: Thu Aug 03, 2017 3:54 pm    Post subject: Reply with quote

Maitreya wrote:
Had the same issue before. IRC putting the device IDs as boot line option and reserving them worked.


I had an other fix in the vfio mailing list. in the vfio.conf file in /etc/modprobe/d, add :
Code:
softdep snd-hda-intel pre: vfio-pci

_________________
Sorry for my English, i'm French :-)
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