[U-Boot] [PATCH] pci: Treat all PCI bus addresses as 64-bit

Kumar Gala galak at kernel.crashing.org
Tue Oct 21 16:59:57 CEST 2008


On Oct 21, 2008, at 9:55 AM, Jerry Van Baren wrote:

> Wolfgang Denk wrote:
>> Dear Kumar Gala,
>> In message <1224598531-2698-1-git-send-email-galak at kernel.crashing.org 
>> > you wrote:
>>> PCI bus is inherently 64-bit.  We should treat all PCI related bus
>>> addresses as 64-bit quanities.  This allows us to have the ability
>>> to support devices or memory on the PCI bus above the 32-bit  
>>> boundary.
>> I don't think this is a good idea. There are pure 32 bit systems  out
>> there which will never use more than 32 bit for the PCI resources, so
>> why load them with the additional memory size and execution time?
>> Should we not enable this only for such systems that actually need  
>> it?
>> Best regards,
>> Wolfgang Denk
>
> Why would we not use phys_addr_t and phys_size_t for the PCI  
> addresses?

Because they aren't coupled.  I can reasonable want 64-bit PCI  
accessible on a pure 32-bit system.

If we want to do this we should introduce a pci_addr_t/pci_size_t.

- k


More information about the U-Boot mailing list