AnsweredAssumed Answered

How do i map beyond 1GB to PCI BAR's on LS1020A platform

Question asked by nagi reddy chitta on Dec 5, 2016
Latest reply on Dec 7, 2016 by Pavel Chubakov

Hi,

 

I have a system where i need to map 4 PCI BARs (each 512MiB in size controlling FPGA) to ARM over PCIe.

 

LS1020A is able to detect these BAR's and allocate as long as total 4 BAR sizes are  <=1GiB, the moment we increase the size beyond 1GiB, i see the error from PCI drivers 

////////////////////////////////////////////////////////////////////////////////////////////////////

pci 0000:01:00.0: BAR 0: can't assign mem (size 0x20000000)
pci 0000:01:00.0: BAR 5: can't assign mem (size 0x20000000)
pci 0000:01:00.0: BAR 3: can't assign mem (size 0x8000000)
pci 0000:01:00.0: BAR 2: can't assign mem (size 0x100000)
pci 0000:01:00.0: BAR 4: can't assign mem (size 0x100000)
pci 0000:01:00.0: BAR 1: can't assign mem (size 0x80000)

...

////////////////////////////////////////////////////////////////////////////////////////////////////

Is there any limitation for PCI memory size window?

 

any help in this regard would be really helpful.

 

Best Regards,

Nagi

Outcomes