Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 273463b7 authored by Prem Mallappa's avatar Prem Mallappa Committed by Ralf Baechle
Browse files

MIPS: kdump: Skip walking indirection page for crashkernels



KDUMP: skip indirection page, as crashkernel has already copied to destination

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

Signed-off-by: default avatarPrem Mallappa <pmallappa@caviumnetworks.com>
Cc: linux-mips <linux-mips@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/5786/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 8533966a
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -26,6 +26,12 @@ process_entry:
	PTR_L		s2, (s0)
	PTR_L		s2, (s0)
	PTR_ADD		s0, s0, SZREG
	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 */
	/* destination page */
	and		s3, s2, 0x1
	and		s3, s2, 0x1
	beq		s3, zero, 1f
	beq		s3, zero, 1f