[OpenBIOS] [PATCH 03/13] SPARC64: fix PCI memory base in host ranges
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Sat Jul 8 22:35:50 CEST 2017
Previously the address of the PCI memory base in the host ranges property was
offset by pci_mem_base. While technically correct, Linux incorrectly calculates
the start of the Simba window based upon this address.
Change the memory base to APB_MEM_BASE to match a real Ultra 5 which prevents
Linux from outputting warnings about incorrect window sizes.
Signed-off-by: Mark Cave-ayland <mark.cave-ayland at ilande.co.uk>
---
arch/sparc64/openbios.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/sparc64/openbios.c b/arch/sparc64/openbios.c
index 1703ed6..c773c1f 100644
--- a/arch/sparc64/openbios.c
+++ b/arch/sparc64/openbios.c
@@ -67,7 +67,7 @@ static const struct hwdef hwdefs[] = {
.host_ranges = {
{ .type = CONFIGURATION_SPACE, .parentaddr = 0, .childaddr = APB_SPECIAL_BASE + 0x1000000ULL, .len = 0x2000000 },
{ .type = IO_SPACE, .parentaddr = 0, .childaddr = APB_SPECIAL_BASE + 0x2000000ULL, .len = 0x1000000 },
- { .type = MEMORY_SPACE_32, .parentaddr = 0x100000, .childaddr = APB_MEM_BASE + 0x100000ULL, .len = 0xf0000000 },
+ { .type = MEMORY_SPACE_32, .parentaddr = 0, .childaddr = APB_MEM_BASE, .len = 0xf0000000 },
{ .type = 0, .parentaddr = 0, .childaddr = 0, .len = 0 }
},
.irqs = { 0, 1, 2, 3 },
--
1.7.10.4
More information about the OpenBIOS
mailing list