From b6eb34da871914ef9b0fb65d542666f282811eff Mon Sep 17 00:00:00 2001 From: jixj Date: Wed, 14 Oct 2020 10:21:27 +0800 Subject: [PATCH] arm64/dt add kpanic modules Add pstore, watchdog_cpu_ctx, tzlog_dump, and mmi_annotate modules to capture data during panics and watchdogs. Change-Id: I59760ee4db0e57131ea632a311515be1f320de9f Reviewed-on: https://gerrit.mot.com/1773401 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index cdd1f92201d3..f72accd3f78f 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -16,6 +16,7 @@ #include "display/holi-sde-display-mtp.dtsi" #include "holi-thermal-overlay.dtsi" #include +#include &utags { compatible = "mmi,utags"; @@ -29,6 +30,35 @@ mmi,main-utags = "/dev/block/bootdevice/by-name/hw"; }; +&reserved_memory { + ramoops_mem { + compatible = "ramoops"; + no-map; + reg = <0x0 RAMOOPS_BASE_ADDR 0x0 RAMOOPS_SIZE>; + console-size = ; + pmsg-size = ; + record-size = ; + }; + + wdog_cpuctx_mem: wdog_cpuctx_region { + no-map; + reg = <0x0 WDOG_CPUCTX_BASE + 0x0 WDOG_CPUCTX_SIZE>; + }; + + tzlog_dump_mem: tzlog_dump_mem_region { + no-map; + reg = <0x0 TZLOG_BCK_BASE + 0x0 TZLOG_BCK_SIZE>; + }; + + mmi_annotate_mem: mmi_annotate_mem_region { + no-map; + reg = <0x0 MMI_ANNOTATE_BASE + 0x0 MMI_ANNOTATE_SIZE>; + }; +}; + &sdhc_1 { status = "ok";