From cd183497dafc1253c6d2e1b06c181d5c0b00700d Mon Sep 17 00:00:00 2001 From: a17671 Date: Fri, 1 Mar 2019 18:11:15 +0800 Subject: [PATCH] debug-snapshot:Increase the pstore mem size Increase the pstore mem size to 1M To allow annotation Change-Id: Ied8ffee16b940bfbbc4143bf915ef97243617eda Signed-off-by: a17671 Reviewed-on: https://gerrit.mot.com/1316159 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- include/dt-bindings/soc/samsung/debug-snapshot-table.h | 2 +- lib/debug-snapshot-pstore.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/soc/samsung/debug-snapshot-table.h b/include/dt-bindings/soc/samsung/debug-snapshot-table.h index 7f99cce2a9cf..5f1f6e3ee36b 100644 --- a/include/dt-bindings/soc/samsung/debug-snapshot-table.h +++ b/include/dt-bindings/soc/samsung/debug-snapshot-table.h @@ -95,7 +95,7 @@ #define DSS_LOG_CACHEDUMP_SIZE_USER (0) #define DSS_LOG_ETM_SIZE_USER (0) #define DSS_LOG_BCM_SIZE_USER (0) -#define DSS_LOG_PSTORE_SIZE_USER (SZ_512K) +#define DSS_LOG_PSTORE_SIZE_USER (SZ_1M) #define DSS_LOG_KEVENTS_SIZE_USER (3 * SZ_1M) #define DSS_LOG_KERNEL_OFFSET_USER (DSS_HEADER_OFFSET + DSS_HEADER_SIZE) diff --git a/lib/debug-snapshot-pstore.c b/lib/debug-snapshot-pstore.c index ecc3534ccb95..a7b96710f0d8 100644 --- a/lib/debug-snapshot-pstore.c +++ b/lib/debug-snapshot-pstore.c @@ -215,6 +215,7 @@ static struct ramoops_platform_data dss_ramoops_data = { .console_size = SZ_128K, .ftrace_size = SZ_128K, .pmsg_size = SZ_128K, + .annotate_size = SZ_2K, #else .record_size = SZ_512K, .console_size = SZ_512K, -- 2.20.1