[GPU pass-through] no compatible bridge window for claimed BAR

Peter Grehan grehan at freebsd.org
Thu Mar 12 00:31:47 UTC 2020


Hi Alex,

>> dmesg | grep "no compatible bridge window"
> pci 0000:00:01.0: can't claim BAR 1 [mem 0xd000000000-0xd00fffffff 64bit
> pref]: no compatible bridge window
  ...>  From what I can read from all the info above,
> somehow the requested memory space for BAR1 for that device is
> 0xd000000000-0xd00fffffff which is out of addressable space on the system.

  Yep, that's the issue, and it's a bhyve bug - there is no check to see 
if the 64-bit window is within the addressable range of the processor.

  A quick fix is to change the constant for that range in pci_emul.c

#define PCI_EMUL_MEMBASE64      0xD000000000UL
#define PCI_EMUL_MEMLIMIT64     0xFD00000000UL

   .. to a value that is within the address bits of the CPU, but also 
above guest DRAM.

later,

Peter.


More information about the freebsd-virtualization mailing list