]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MIPS: kdump: Skip walking indirection page for crashkernels
authorPrem Mallappa <prem.mallappa@gmail.com>
Fri, 30 Aug 2013 10:05:10 +0000 (15:35 +0530)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 5 Sep 2013 18:53:37 +0000 (20:53 +0200)
KDUMP: skip indirection page, as crashkernel has already copied to destination

[ralf@linux-mips.org: cosmetic changes.]

Signed-off-by: Prem Mallappa <pmallappa@caviumnetworks.com>
Cc: linux-mips <linux-mips@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/5786/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/relocate_kernel.S

index 43d2d78d3287dfbfa52ad7fb1a52f6571d9deaa3..74bab9ddd0e1984c9d4e4e95c038bb1d269b60dd 100644 (file)
@@ -26,6 +26,12 @@ process_entry:
        PTR_L           s2, (s0)
        PTR_ADD         s0, s0, SZREG
 
+       /*
+        * In case of a kdump/crash kernel, the indirection page is not
+        * populated as the kernel is directly copied to a reserved location
+        */
+       beqz            s2, done
+
        /* destination page */
        and             s3, s2, 0x1
        beq             s3, zero, 1f