Hi!
I am working with an evaluation board named T1042D4RDB
I compiled linux-qoriq and device-tree (arch/powerpc/boot/fsl/t1042d4rdb.dts). This dts includes t104xrdb.dtsi where pci is configured.
Here are my logs
PCI: Cannot allocate resource region 0 of device 0000:00:00.0, will remap
PCI: Cannot allocate resource region 0 of device 0001:02:00.0, will remap
PCI: Cannot allocate resource region 0 of device 0002:04:00.0, will remap
PCI: Cannot allocate resource region 0 of device 0003:06:00.0, will remap
pci 0000:00:00.0: BAR 0: no space for [mem size 0x01000000]
pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x01000000]
pci 0000:00:00.0: PCI bridge to [bus 01]
pci 0000:00:00.0: bridge window [io 0xf18a0000-0xf18affff]
pci 0000:00:00.0: bridge window [mem 0xc00000000-0xc0fffffff]
pci 0000:00:00.0: PCI bridge to [bus 01]
pci 0000:00:00.0: bridge window [io 0xf18a0000-0xf18affff]
pci 0000:00:00.0: bridge window [mem 0xc00000000-0xc0fffffff]
pci 0001:02:00.0: BAR 0: no space for [mem size 0x01000000]
pci 0001:02:00.0: BAR 0: failed to assign [mem size 0x01000000]
pci 0001:02:00.0: PCI bridge to [bus 03]
pci 0001:02:00.0: bridge window [io 0xf1900000-0xf190ffff]
pci 0001:02:00.0: bridge window [mem 0xc10000000-0xc1fffffff]
pci 0001:02:00.0: PCI bridge to [bus 03]
pci 0001:02:00.0: bridge window [io 0xf1900000-0xf190ffff]
pci 0001:02:00.0: bridge window [mem 0xc10000000-0xc1fffffff]
pci 0002:04:00.0: BAR 0: no space for [mem size 0x01000000]
pci 0002:04:00.0: BAR 0: failed to assign [mem size 0x01000000]
pci 0002:04:00.0: PCI bridge to [bus 05]
pci 0002:04:00.0: bridge window [io 0xf1960000-0xf196ffff]
pci 0002:04:00.0: bridge window [mem 0xc20000000-0xc2fffffff]
pci 0002:04:00.0: PCI bridge to [bus 05]
pci 0002:04:00.0: bridge window [io 0xf1960000-0xf196ffff]
pci 0002:04:00.0: bridge window [mem 0xc20000000-0xc2fffffff]
pci 0003:06:00.0: BAR 0: no space for [mem size 0x01000000]
pci 0003:06:00.0: BAR 0: failed to assign [mem size 0x01000000]
pci 0003:06:00.0: PCI bridge to [bus 07]
pci 0003:06:00.0: bridge window [io 0xf19c0000-0xf19cffff]
pci 0003:06:00.0: bridge window [mem 0xc30000000-0xc3fffffff]
pci 0003:06:00.0: PCI bridge to [bus 07]
pci 0003:06:00.0: bridge window [io 0xf19c0000-0xf19cffff]
pci 0003:06:00.0: bridge window [mem 0xc30000000-0xc3fffffff]
I added "pic=realloc" in bootagrs
Why does it fail to alloc BAR0? how to fix it?
DTS problem?
Many thanks.
The "will remap" lines are not errors -- they are expected in the case where firmware didn't set up usable mappings. As for BAR 0 of ":00.0", that's always a bit weird on Freescale PCI controllers. Other devices should have their BARs assigned OK.