On Thu, 2015-10-08 at 14:38 -0700, Yinghai Lu wrote: > On one system found bunch of claim resource fail from pci device. > pci_sun4v f02b894c: PCI host bridge to bus 0000:00 > pci_bus 0000:00: root bus resource [io 0x2007e00000000-0x2007e0fffffff] (bus address [0x0000-0xfffffff]) > pci_bus 0000:00: root bus resource [mem 0x2000000000000-0x200007effffff] (bus address [0x00000000-0x7effffff]) > pci_bus 0000:00: root bus resource [mem 0x2000100000000-0x20007ffffffff] (bus address [0x100000000-0x7ffffffff]) > ... > PCI: Claiming 0000:00:02.0: Resource 14: 0002000000000000..00020000004fffff [200] > pci 0000:00:02.0: can't claim BAR 14 [mem 0x2000000000000-0x20000004fffff]: address conflict with Video RAM area [??? 0x20000000a0000-0x20000000bffff flags 0x80000000] > pci 0000:02:00.0: can't claim BAR 0 [mem 0x2000000000000-0x20000000fffff]: no compatible bridge window > PCI: Claiming 0000:02:00.0: Resource 3: 0002000000100000..0002000000103fff [200] > pci 0000:02:00.0: can't claim BAR 3 [mem 0x2000000100000-0x2000000103fff]: no compatible bridge window > PCI: Claiming 0000:02:00.1: Resource 0: 0002000000200000..00020000002fffff [200] > pci 0000:02:00.1: can't claim BAR 0 [mem 0x2000000200000-0x20000002fffff]: no compatible bridge window > PCI: Claiming 0000:02:00.1: Resource 3: 0002000000104000..0002000000107fff [200] > pci 0000:02:00.1: can't claim BAR 3 [mem 0x2000000104000-0x2000000107fff]: no compatible bridge window > PCI: Claiming 0000:02:00.2: Resource 0: 0002000000300000..00020000003fffff [200] > pci 0000:02:00.2: can't claim BAR 0 [mem 0x2000000300000-0x20000003fffff]: no compatible bridge window > PCI: Claiming 0000:02:00.2: Resource 3: 0002000000108000..000200000010bfff [200] > pci 0000:02:00.2: can't claim BAR 3 [mem 0x2000000108000-0x200000010bfff]: no compatible bridge window > PCI: Claiming 0000:02:00.3: Resource 0: 0002000000400000..00020000004fffff [200] > pci 0000:02:00.3: can't claim BAR 0 [mem 0x2000000400000-0x20000004fffff]: no compatible bridge window > PCI: Claiming 0000:02:00.3: Resource 3: 000200000010c000..000200000010ffff [200] > pci 0000:02:00.3: can't claim BAR 3 [mem 0x200000010c000-0x200000010ffff]: no compatible bridge window > > The bridge 00:02.0 resource does not get reserved as Video RAM take the position early, > and following children all failed. > > Move down Video RAM area reservation after pci mmio get reserved, > so we leave pci driver to use those regions. > > Signed-off-by: Yinghai Lu <yinghai@xxxxxxxxxx> Tested on sparc platforms Tested-by: Khalid Aziz <khalid.aziz@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html