]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
MIPS: Loongson64: Enlarge IO_SPACE_LIMIT
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Tue, 28 Jul 2020 15:36:57 +0000 (23:36 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 28 Jul 2020 20:49:53 +0000 (22:49 +0200)
It can be very big on LS7A PCH systems.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/io.h
arch/mips/include/asm/mach-generic/spaces.h
arch/mips/include/asm/mach-loongson64/spaces.h

index 3ecbe9643f60291c3a5a4d22e7ea6312194d5844..78537aa2350062f3678f8ae62b91d002884c15a3 100644 (file)
@@ -51,8 +51,6 @@
 
 /* ioswab[bwlq], __mem_ioswab[bwlq] are defined in mangle-port.h */
 
-#define IO_SPACE_LIMIT 0xffff
-
 /*
  * On MIPS I/O ports are memory mapped, so we access them using normal
  * load/store instructions. mips_io_port_base is the virtual address to
index ee5ebe98f6cfb6b7104beff6510983266c1b685d..c3ac06a6acd2bf90541c72fe013050cd6b0f2464 100644 (file)
 
 #include <asm/mipsregs.h>
 
+#ifndef IO_SPACE_LIMIT
+#define IO_SPACE_LIMIT 0xffff
+#endif
+
 /*
  * This gives the physical RAM offset.
  */
index 3de0ac9d8829cd183b0afd39ba5f131b9efac2ca..ce04e998a37b32f7fe5c7f0e10807334eed0212e 100644 (file)
@@ -11,8 +11,7 @@
 #define PCI_IOSIZE     SZ_16M
 #define MAP_BASE       (PCI_IOBASE + PCI_IOSIZE)
 
-/* Reserved at the start of PCI_IOBASE for legacy drivers */
-#define MMIO_LOWER_RESERVED    0x10000
+#define IO_SPACE_LIMIT  (PCI_IOSIZE - 1)
 
 #include <asm/mach-generic/spaces.h>
 #endif