s390/setup: do not reserve the decompressor code
authorVasily Gorbik <gor@linux.ibm.com>
Tue, 12 Jun 2018 14:46:59 +0000 (16:46 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 25 Jun 2018 08:14:41 +0000 (10:14 +0200)
Introduce PARMAREA_END, and use it for memblock reserve of low
memory, which is used for lowcore, kdump data mover code and page
buffer, early stack and parmarea. There is no need to reserve an
area between PARMAREA_END and the decompressor _ehead.

Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/setup.h
arch/s390/kernel/setup.c

index 9c30ebe046f3ec5787f33be17e83fdfa646bbe03..be02f0558048552a1cfa1677dbe76e8b13d117c0 100644 (file)
@@ -11,6 +11,7 @@
 
 
 #define PARMAREA               0x10400
+#define PARMAREA_END           0x11000
 
 /*
  * Machine features detected in early.c
index d82a9ec64ea9712b2f33572b7baffcbe679ff6bd..c637c12f9e37ccef3c0ab9a35bbe312259f75414 100644 (file)
@@ -674,12 +674,12 @@ static void __init reserve_kernel(void)
 #ifdef CONFIG_DMA_API_DEBUG
        /*
         * DMA_API_DEBUG code stumbles over addresses from the
-        * range [_ehead, _stext]. Mark the memory as reserved
+        * range [PARMAREA_END, _stext]. Mark the memory as reserved
         * so it is not used for CONFIG_DMA_API_DEBUG=y.
         */
        memblock_reserve(0, PFN_PHYS(start_pfn));
 #else
-       memblock_reserve(0, (unsigned long)_ehead);
+       memblock_reserve(0, PARMAREA_END);
        memblock_reserve((unsigned long)_stext, PFN_PHYS(start_pfn)
                         - (unsigned long)_stext);
 #endif