Re: [U-Boot] [PATCH] pci: fix overflow in __pci_hose_bus_to_phys w/ large RAM

2014-08-14 Thread Anatolij Gustschin
On Mon, 11 Aug 2014 16:09:28 -0600 Stephen Warren swar...@wwwdotorg.org wrote: From: Stephen Warren swar...@nvidia.com If a 32-bit system has 2GB of RAM, and the base address of that RAM is 2GB, then start+size will overflow a 32-bit value (to a value of 0). To avoid such an overflow,

[U-Boot] [PATCH] pci: fix overflow in __pci_hose_bus_to_phys w/ large RAM

2014-08-11 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com If a 32-bit system has 2GB of RAM, and the base address of that RAM is 2GB, then start+size will overflow a 32-bit value (to a value of 0). To avoid such an overflow, convert __pci_hose_bus_to_phys() to calculate the offset of a bus address into a PCI