-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
powerpc/kexec_file: Setup backup region for kdump kernel
Though kdump kernel boots from loaded address, the first 64KB of it is copied down to real 0. So, setup a backup region and let purgatory copy the first 64KB of crashed kernel into this backup region before booting into kdump kernel. Update reserve map with backup region and crashed kernel's memory to avoid kdump kernel from accidentially using that memory. Signed-off-by: Hari Bathini <hbathini@linux.ibm.com> Reviewed-by: Thiago Jung Bauermann <bauerman@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/159602294718.575379.16216507537038008623.stgit@hbathini
- Loading branch information
Hari Bathini
authored and
Michael Ellerman
committed
Jul 29, 2020
1 parent
7c64e21
commit 1a1cf93
Showing
5 changed files
with
159 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
#ifndef _ASM_POWERPC_CRASHDUMP_PPC64_H | ||
#define _ASM_POWERPC_CRASHDUMP_PPC64_H | ||
|
||
/* | ||
* Backup region - first 64KB of System RAM | ||
* | ||
* If ever the below macros are to be changed, please be judicious. | ||
* The implicit assumptions are: | ||
* - start, end & size are less than UINT32_MAX. | ||
* - start & size are at least 8 byte aligned. | ||
* | ||
* For implementation details: arch/powerpc/purgatory/trampoline_64.S | ||
*/ | ||
#define BACKUP_SRC_START 0 | ||
#define BACKUP_SRC_END 0xffff | ||
#define BACKUP_SRC_SIZE (BACKUP_SRC_END - BACKUP_SRC_START + 1) | ||
|
||
#endif /* __ASM_POWERPC_CRASHDUMP_PPC64_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters