On 22.09.2017 14:13, Владислав wrote:
I try to port sm750fb driver to uboot. I need to access bar0 because its framebuffer memory of video card.

After little research i find out pciauto_region_allocate failed for allocation region for bar0:

PCI Autoconfig: BAR 0, Mem, size=0x4000000, No room in resource (addr: 0xE8000000, size: 0x4000000, res->bus_start: 0xE8000000, res->size: 0x2000000)


PCI Autoconfig: BAR 1, Mem, size=0x200000, address=0xe8000000 bus_lower=0xe8200000


I find out definition in pci_mvebu.c:

#define PCIE_MEM_SIZE (32 << 20)

After changing it to (128 << 20) autoconfig working vell and bar0 is fully accessible and work

I see. Please send a proper patch to change this setting
in mainline to the list.

Thanks,
Stefan
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to