[+cc Christian]Thanks for that.
[SNIP]Yes, indeed. I can adjust my patch, but I would prefer not to do so.
I *think* this will be broken by the current implementation of
Christian's patch to enable a 64-bit host bridge window:
https://lkml.kernel.org/r/1493890270-1188-5-git-send-email-deathsimple@xxxxxxxxxxx
because pci_register_host_bridge() runs before we scan the bus, and
Christian's patch adds a quirk that runs when we enumerate the AMD
host bridge device.
If we apply this and Christian's patch, I think we could end up with
a host bridge window above 4G, but with bridge->has_mem64 not set.