All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] x86: baytrail: PCI is not always mapped to end of ram
@ 2015-05-22 19:09 andrew at bradfordembedded.com
  2015-05-23 15:50 ` Bin Meng
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: andrew at bradfordembedded.com @ 2015-05-22 19:09 UTC (permalink / raw)
  To: u-boot

From: Andrew Bradford <andrew.bradford@kodakalaris.com>

PCI on Intel Baytrail is mapped to 0x80000000, which is not always at
the end of SDRAM, such as when running with 4 GiB of SDRAM.  The PCI bus
memory mapping must stay within low memory and so when running with >
2 GiB of SDRAM, there is a hole in the SDRAM between 2 GiB and 4 GiB for
memory mapped IO, such as PCI.

Signed-off-by: Andrew Bradford <andrew.bradford@kodakalaris.com>
---
 arch/x86/cpu/baytrail/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/cpu/baytrail/pci.c b/arch/x86/cpu/baytrail/pci.c
index 6c291f9..0a87890 100644
--- a/arch/x86/cpu/baytrail/pci.c
+++ b/arch/x86/cpu/baytrail/pci.c
@@ -39,7 +39,7 @@ void board_pci_setup_hose(struct pci_controller *hose)
 	pci_set_region(hose->regions + 3,
 		       0,
 		       0,
-		       gd->ram_size,
+		       0x80000000,
 		       PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
 
 	hose->region_count = 4;
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2015-06-04 15:16 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-22 19:09 [U-Boot] [PATCH] x86: baytrail: PCI is not always mapped to end of ram andrew at bradfordembedded.com
2015-05-23 15:50 ` Bin Meng
2015-05-26 12:17   ` Andrew Bradford
2015-05-27  4:21     ` Bin Meng
2015-05-27 11:53       ` Andrew Bradford
2015-05-29  5:00         ` Bin Meng
2015-05-29 18:27           ` Andrew Bradford
2015-05-31  6:10             ` Bin Meng
2015-06-01 12:24               ` Andrew Bradford
2015-06-01 12:58                 ` Bin Meng
2015-06-01 13:44                   ` Andrew Bradford
2015-06-03 16:18 ` [U-Boot] [PATCH v2] x86: baytrail: pci region 3 " andrew at bradfordembedded.com
2015-06-03 16:23   ` Andrew Bradford
2015-06-03 16:37 ` [U-Boot] [PATCH v3] " andrew at bradfordembedded.com
2015-06-04  0:15   ` Bin Meng
2015-06-04  8:47     ` Simon Glass
2015-06-04 15:16       ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.