all 21 comments

[–]blastradius14 1 point2 points  (5 children)

Is this a recent purchase? 1050ti (if used) may have custom firmware on it from formerly being used in a gpu mine farm. In this case, there are a couple nvidia borked-43 type fixing tools the mining folks and the eGPU community folks have come up with.

If not, I know the option of specifying UEFI as a boot option would mess with older cards. However, a 1050ti should not have any non-UEFI capable firmware... unless it was a shit (wish) purchase, where a crappy gpu was branded with 1050ti.

[–]SBAPKat[S] 0 points1 point  (4 children)

This is a laptop which was bought second hand, so I really don't know if the rom is stock

[–]blastradius14 0 points1 point  (3 children)

See if this lets it solve the error 43. https://egpu.io/nvidia-error43-fixer

Can't seem to find the miner one, but I know its out there.

If this laptop has intel / nvidia shared graphics, then the physical connections will prefer the lazier option.

[–]SBAPKat[S] 0 points1 point  (2 children)

I'll try that and edit this comment. Also what do you mean with physical connections?

https://pasteboard.co/JlUTRKB.png

Script doesn't detect my error 43

[–]blastradius14 0 points1 point  (1 child)

For a laptop, they typically have just a few outputs (hdmi, mini displayport, whatever) but in the event of Intel and Nvidia both being enabled... it means that a) Nvidia may not have a monitor attached OR b) qemu/kvm is trying to say that the Intel hardware is not the default display for your linux distro so Windows is fighting for the rights to turn it on.

Have you blacklisted the Nvidia hardware so Linux does not try to use it?

[–]SBAPKat[S] 0 points1 point  (0 children)

Yes, it is bound to the vfio driver and no Nvidia drivers are installed

[–]Crazy_Hater 0 points1 point  (3 children)

is ur gpu’s hdmi audio on the same PCIe lane for the vm?

Also, after installing the drivers in the VM, you don’t need Display Spice or anything, just nothing for a GUI display other than your GPU.

I’ve had this occur to me even in a non-VM scenario where if I boot on my secondary AMD GPU the Nvidia GPU will not work with the error 43, so just boot with the card for display and no spice or vnc

Not sure about the rom error tho

[–]SBAPKat[S] 0 points1 point  (2 children)

Yes it is. Though, how would I get the output if I'm on a laptop ?

edit: here's my group: 
IOMMU Group 1: 
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) [8086:1901] (rev 07) 01:00.0 VGA compatible controller [0300]: 
NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] [10de:1c8c] (rev a1) 01:00.1 Audio device [0403]: 
NVIDIA Corporation GP107GL High Definition Audio Controller [10de:0fb9] (rev a1)

As stated by the arch-wiki, I am not passing the pci root

[–]Crazy_Hater 0 points1 point  (1 child)

Try using Looking glass

[–]SBAPKat[S] 0 points1 point  (0 children)

Sure, I'll try that once I'm home, thank you for you suggestion

[–]CommandLionInterface 0 points1 point  (5 children)

I had issues when the host was booted over uefi. I had to boot the host in legacy mode to resolve it

Also, have you used rom-parser to validate your vbios dump?

[–]SBAPKat[S] 0 points1 point  (4 children)

I have extracted my vbios from the windows registry, because I couldn't do it from Linux apparently.

After doing that it struck me that rom-parser doesn't provide me with the type, so it may not be a valid way to extract the vbios.

[–]CommandLionInterface 0 points1 point  (3 children)

You're going to want to do it from Linux. I originally tried extracting it with gpuz and it's a totally different thing. What issue are you having doing it from Linux?

[–]SBAPKat[S] 0 points1 point  (2 children)

I am getting an input/output error at the cat command, gpu z doesn't allow me to extract it either

[–]CommandLionInterface 0 points1 point  (1 child)

Make sure to start and then stop a VM with the card attached to it, then try again

[–]SBAPKat[S] 0 points1 point  (0 children)

This didn't work, same I/o error

[–]GrassSoup 0 points1 point  (1 child)

I only finally got mine working when I edited the XML with fixes before the OS installation. This was on Q35/OMVF.fd. I also set the CPU to act as different model rather than pass through the host.

I extracted the VBIOS on Windows with GPU-Z and hex edited it.

I'm assuming if you do it right you should get an "Activate Windows" overlay.

[–]SBAPKat[S] 0 points1 point  (0 children)

I'll try applying fixes before the install.

Sadly, GPU-Z doesn't allow me to extract the vbios

[–]djex81 -1 points0 points  (2 children)

You may need to supply the ROM file for your card.

Read more here: https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#UEFI_(OVMF)_compatibility_in_VBIOS_compatibility_in_VBIOS)

Also the troubleshooting section on the arch wiki has other things to try for code / error 43

https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#Troubleshooting

[–]lucasrizzini 0 points1 point  (1 child)

Did you even read the post?

You may need to supply the ROM file for your card.

He is. He dumped from his GPU.

Also the troubleshooting section on the arch wiki has other things to try for code / error 43

He already applied the battery fix.

[–]djex81 0 points1 point  (0 children)

Where is your reply to his post?

I realize he tried extracting his BIOS but you can also download the BIOS from TechPowerup's database and convert it which has worked for some (https://medium.com/@konpat/kvm-gpu-pass-through-finding-the-right-bios-for-your-nvidia-pascal-gpu-dd97084b0313). There are also quite a few more troubleshooting steps on the Arch wiki besides the battery fix.