linux-mips
[Top] [All Lists]

[PATCH 1/2] MIPS: KDUMP: skip walking indirection page for crashkernels

To: linux-mips <linux-mips@linux-mips.org>
Subject: [PATCH 1/2] MIPS: KDUMP: skip walking indirection page for crashkernels
From: Prem Mallappa <prem.mallappa@gmail.com>
Date: Fri, 30 Aug 2013 15:35:10 +0530
Cc: Prem Mallappa <pmallappa@caviumnetworks.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=wqJzT6yH8g7VMCOW4HQ3cYztVMLP5MtY05LGUiJW0NE=; b=iDpiADHPEG32UhBiBUPGWWggo12FqLW5Bn2u78hgWlPDNd3jxMhQP58lxOecRMSkQ1 P05hXKDK/H2Ma+Dt+LCaQpCpBP4+5qI89SSpqejnqX7spodrKz5ZkfH7EcbHonmlk80n uEqJmElJklOUYnHAkOYXvR/IFMXlqkpllZnJ00+EuOx3SrFF2ruswK4KZZkgdEAEZluf 6UMFcQpPsyziO+A5RByER4dkzeFrkellJHKVS0h7kmkyg9cycuLMeXeUlqRJQqnqm/+k phPLsB6+vFMsyzeYRKUtb2YIZC75tzlcH9YnL/6yYSDQdngH7UkAS7TXY/omW4kOhHET WGPg==
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
KDUMP: skip indirection page, as crashkernel has already copied to destination

Signed-off-by: Prem Mallappa <pmallappa@caviumnetworks.com>
---
 arch/mips/kernel/relocate_kernel.S | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/mips/kernel/relocate_kernel.S 
b/arch/mips/kernel/relocate_kernel.S
index 43d2d78..2778a41 100644
--- a/arch/mips/kernel/relocate_kernel.S
+++ b/arch/mips/kernel/relocate_kernel.S
@@ -26,6 +26,11 @@ process_entry:
        PTR_L           s2, (s0)
        PTR_ADD         s0, s0, SZREG
 
+       /* In case of kdump/crash kernel, indirection page is not populated
+       * as the kernel is directly copied to reserved location
+       */
+       beq             s2, zero, done
+
        /* destination page */
        and             s3, s2, 0x1
        beq             s3, zero, 1f
-- 
1.8.4


<Prev in Thread] Current Thread [Next in Thread>