android_kernel_xiaomi_sm8350/arch/mips/au1000/common
Alexander Bigga 8a93c4968f [MIPS] Alchemy: Fix PCI-memory access
The problem was introduced in 2.6.18.3 with the casting of some
    36bit-defines (PCI memory) in au1000.h to resource_size_t which may be
    u32 or u64 depending on the experimental CONFIG_RESOURCES_64BIT.
    
    With unset CONFIG_RESOURCES_64BIT, the pci-memory cannot be accessed
    because the ioremap in arch/mips/au1000/common/pci.c already used the
    truncated addresses.
    With set CONFIG_RESOURCES_64BIT, things get even worse, because PCI-scan
    aborts, due to resource conflict: request_resource() in arch/mips/pci/pci.c
    fails because the maximum iomem-address is 0xffffffff (32bit) but the
    pci-memory-start-address is 0x440000000 (36bit).
    
    To get pci working again, I propose the following patch:
    
    1. remove the resource_size_t-casting from au1000.h again
    2. make the casting in arch/mips/au1000/common/pci.c (it's allowed and
    necessary here. The 36bit-handling will be done in __fixup_bigphys_addr).
    
    With this patch pci works again like in 2.6.18.2, the gcc-compile warnings
    in pci.c are gone and it doesn't depend on CONFIG_EXPERIMENTAL.
    
    Signed-off-by: Alexander Bigga <ab@mycable.de>
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

---
2007-01-10 20:02:24 +00:00
..
au1xxx_irqmap.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
clocks.c
cputable.c [PATCH] USB: EHCI for AU1200 2006-03-20 14:49:55 -08:00
dbdma.c [MIPS] A few more pt_regs fixups. 2006-10-19 17:55:13 +01:00
dbg_io.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
dma.c IRQ: Use the new typedef for interrupt handler function pointers 2006-10-09 12:19:47 +01:00
gpio.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
irq.c [MIPS] IRQ cleanups 2006-11-30 01:14:46 +00:00
Makefile [MIPS] Alchemy: nuke usbdev; it's useless as is ... 2006-10-09 23:20:47 +01:00
pci.c [MIPS] Alchemy: Fix PCI-memory access 2007-01-10 20:02:24 +00:00
platform.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
power.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
prom.c [MIPS] Sort out missuse of __init for prom_getcmdline() 2006-10-31 20:13:20 +00:00
puts.c Get rid of a bunch of debug serial routines. Use prom_printf instead. 2005-10-29 19:32:11 +01:00
reset.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
setup.c [MIPS] Sort out missuse of __init for prom_getcmdline() 2006-10-31 20:13:20 +00:00
sleeper.S [MIPS] Save write-only Config.OD from being clobbered 2006-06-06 00:15:13 +01:00
time.c [MIPS] Fixup migration to GENERIC_TIME 2006-10-31 20:13:23 +00:00