-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mediatek: reserve memory for ramoops and enable PSTORE
Reserve 64KiB of memory for crashlogs and enable PSTORE feature in kernel config for MT7622. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
- Loading branch information
Showing
6 changed files
with
65 additions
and
13 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
25 changes: 25 additions & 0 deletions
25
target/linux/mediatek/patches-5.10/105-dts-mt7622-enable-pstore.patch
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,25 @@ | ||
--- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi | ||
+++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi | ||
@@ -111,7 +111,7 @@ | ||
}; | ||
|
||
psci { | ||
- compatible = "arm,psci-0.2"; | ||
+ compatible = "arm,psci-1.0"; | ||
method = "smc"; | ||
}; | ||
|
||
@@ -127,6 +127,13 @@ | ||
#size-cells = <2>; | ||
ranges; | ||
|
||
+ /* 64 KiB reserved for ramoops/pstore */ | ||
+ ramoops@0x42ff0000 { | ||
+ compatible = "ramoops"; | ||
+ reg = <0 0x42ff0000 0 0x10000>; | ||
+ record-size = <0x1000>; | ||
+ }; | ||
+ | ||
/* 192 KiB reserved for ARM Trusted Firmware (BL31) */ | ||
secmon_reserved: secmon@43000000 { | ||
reg = <0 0x43000000 0 0x30000>; |
2 changes: 1 addition & 1 deletion
2
target/linux/mediatek/patches-5.10/131-dts-mt7622-add-snand-support.patch
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