[U-Boot] [PATCH v1] powerpc: Set PCIe MEM_BUS same as MEM_VIRT

York Sun yorksun at freescale.com
Mon Nov 23 18:13:02 CET 2015



On 11/21/2015 04:34 PM, York Sun wrote:
> For 36-bit addressing mode, PCIe virtual memory addresses have been
> different from PCI bus addresses. This causes confusion when trying
> to access the PCI address manually. Previously it was believed
> overlapping PCI(e) controllers' space would leave more room for large
> memory. Actually u-boot has been using no more than 512MB for each
> controller. Making the bus address same as virtual address simplifies
> the address space, and users can access PCI(e) space under u-boot
> prompt without calcuating the offset.
> 
> No change for 32-bit mode as the addresses are consistent.
> 
> Signed-off-by: York Sun <yorksun at freescale.com>
> 
> ---
> Tested on P4080DS, P1022DS, T2080QDS.
> 

Defer this patch until we have a stronger need to access PCIe BARs under u-boot,
or something else changes address allocation.

York



More information about the U-Boot mailing list