[vfio-users] Guest freezes upon GPU passthrough

arch user archuser at gmx.com
Thu Nov 12 17:45:40 UTC 2015


> There is a possibility that the broken ROM freezes the machine when loaded since it is corrupted.

The ROM looks fine. See below. I'm confused why the kernel reports it's invalid.

Perhaps it fails to read it properly?

  /* Standard PCI ROMs start out with these bytes 55 AA */
  if (readb(image) != 0x55) { 
    dev_err(&pdev->dev, "Invalid ROM contents\n");


> Dump the ROM any way you can.

I figured I had a working bare metal Windows install to do so. Dumped both the default [1] and secondary [2] ROM (Sapphire's R9 380 Nitro features a hardware switch to select the active image).

$ ./rom-parser uefi.rom 
Valid ROM signature found @0h, PCIR offset 240h
	PCIR: type 0 (x86 PC-AT), vendor: 1002, device: 6939, class: 030000
	PCIR: revision 0, vendor revision: f2f
Valid ROM signature found @10000h, PCIR offset 1ch
	PCIR: type 3 (EFI), vendor: 1002, device: 6939, class: 030000
	PCIR: revision 0, vendor revision: 0
		EFI: Signature Valid, Subsystem: Boot, Machine: X64
	Last image

$ ./rom-parser legacy.rom 
Valid ROM signature found @0h, PCIR offset 240h
	PCIR: type 0 (x86 PC-AT), vendor: 1002, device: 6939, class: 030000
	PCIR: revision 0, vendor revision: f2f
	Last image

Now I don't know if this is related to OVMF failing, but I don't like it...

[1]: https://www.techpowerup.com/vgabios/176399/176399.html
[2]: https://www.techpowerup.com/vgabios/176709/176709.html




More information about the vfio-users mailing list