<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 11 March 2017 at 23:51, Samuel Holland <span dir="ltr"><<a href="mailto:samuel@sholland.org" target="_blank">samuel@sholland.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On 03/11/17 07:24, Patrick O'Callaghan wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
GRUB_CMDLINE_LINUX="rd.blackli<wbr>st=nvidia rd.blacklist=nouveau<br>
intel_iommu=on iommu=pt rd.driver.pre=vfio-pci<br>
vconsole.font=latarcyrheb-sun1<wbr>6 $([ -x /usr/sbin/rhcrashkernel-param<br>
] && /usr/sbin/rhcrashkernel-param || :) rhgb quiet resume=U<br>
UID=1431e6d2-531e-46cd-8633-1c<wbr>f878c6b2a1" audit=0<br>
<br>
(Note that I have the Nvidia proprietary driver so need to mask that<br>
as well as Nouveau).<br>
</blockquote>
<br></span>
rd.* options only matter inside the initramfs. Once your root filesystem<br>
is mounted and udev is restarted, it will pick up the nvidia drivers<br>
at that point. You need to mask nvidia and nouveau both in the initramfs<br>
and once the system is booted.<br>
<br>
Change rd.blacklist to modprobe.blacklist, and regenerate your GRUB config.<br>
<br>
On 03/11/17 15:54, Patrick O'Callaghan wrote:<span class="gmail-"><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On 11 March 2017 at 21:26, wiwitop wiwitop wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi. You should try with the real ids of your gpu. The trick didn't<br>
work with my AMD GPU, perhaps it's the same for you.<br>
</blockquote>
I'm not sure what you mean by "real ids". How is this different from<br>
what I'm doing?<br>
</blockquote>
<br></span>
Specify the PCI IDs (vendor and product) as they appear in lspci -nn,<br>
not with the really long string (replacing with the correct product<br>
numbers for your card, of course):<br>
<br>
options vfio-pci ids=10de:abcd,10de:1234<br>
<br>
Then be sure to regenerate your initramfs.<br>
<br></blockquote></div><br>Well, I did all that but no joy. To be exact:</div><div class="gmail_extra"><span style="font-family:monospace"><span style="color:rgb(0,0,0)">GRUB_CMDLINE_LINUX="modprobe.blacklist=nvidia modprobe.blacklist=nouveau rd.blacklist=nvidia rd.blacklist=nouveau intel_iommu=on iommu=pt rd.driver.pre=vfio-pci vconsole.font=latarcyrheb-sun16 $([ -x /usr/sbin/rhcrashkernel-param ] && /u</span><br>sr/sbin/rhcrashkernel-param || :) rhgb quiet resume=UUID=1431e6d2-531e-46cd-8633-1cf878c6b2a1" audit=0<br>
<br></span></div><div class="gmail_extra"><span style="font-family:monospace"><span style="color:rgb(0,0,0)">$ cat /etc/modprobe.d/vfio.conf  (renamed from local.conf)</span><br>options vfio-pci ids=10de:0f00,10de:0bea<br></span></div><div class="gmail_extra"><span style="font-family:monospace"><span style="color:rgb(0,0,0)">$ cat /etc/dracut.conf.d/local.conf  </span><br>force_drivers+="vfio vfio_iommu_type1 vfio_pci vfio_virqfd"<br></span></div><div class="gmail_extra"><span style="font-family:monospace">(the man page says force_drivers will preload these, rather than the add_drivers command which just appends them; at least that's how I read it).</span></div><div class="gmail_extra"><br></div><div class="gmail_extra">and of course '<span style="color:rgb(0,0,0);font-family:monospace">dracut -f --kver `uname -r`' and '</span><span style="color:rgb(0,0,0);font-family:monospace">grub2-mkconfig -o /etc/grub2.cfg'</span></div><div class="gmail_extra"><span style="color:rgb(0,0,0);font-family:monospace"><br></span></div><div class="gmail_extra"><font color="#000000" face="monospace">After the reboot menu the DVI output (from the Nvidia card) has a signal but no content after the initial booting messages, while the HDMI output (internal GPU) has no signal.</font></div><div class="gmail_extra"><font color="#000000" face="monospace"><br></font></div><div class="gmail_extra"><font color="#000000" face="monospace">poc</font></div></div>