ipq807x: make pstore/pmsg work

Fixes: WIFI-12578
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2023-05-04 12:57:52 +02:00
parent 5cd786fb9a
commit 3dafdff716
2 changed files with 4 additions and 3 deletions

View File

@@ -548,7 +548,7 @@ CONFIG_PROC_PAGE_MONITOR=y
CONFIG_PSTORE=y CONFIG_PSTORE=y
CONFIG_PSTORE_RAM=y CONFIG_PSTORE_RAM=y
# CONFIG_PSTORE_CONSOLE is not set # CONFIG_PSTORE_CONSOLE is not set
# CONFIG_PSTORE_PMSG is not set CONFIG_PSTORE_PMSG=y
CONFIG_PWM=y CONFIG_PWM=y
CONFIG_PWM_IPQ4019=y CONFIG_PWM_IPQ4019=y
# CONFIG_PWM_PCA9685 is not set # CONFIG_PWM_PCA9685 is not set

View File

@@ -45,7 +45,7 @@ Index: linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016/fs/pstore/ram.
=================================================================== ===================================================================
--- linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016.orig/fs/pstore/ram.c --- linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016.orig/fs/pstore/ram.c
+++ linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016/fs/pstore/ram.c +++ linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016/fs/pstore/ram.c
@@ -466,15 +466,46 @@ static int ramoops_init_prz(struct devic @@ -466,15 +466,47 @@ static int ramoops_init_prz(struct devic
return 0; return 0;
} }
@@ -67,6 +67,7 @@ Index: linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016/fs/pstore/ram.
+ pdata->mem_address = res->start; + pdata->mem_address = res->start;
+ pdata->dump_oops = true; + pdata->dump_oops = true;
+ pdata->record_size = 0x1000; + pdata->record_size = 0x1000;
+ pdata->pmsg_size = 0x1000;
+ return 0; + return 0;
+} +}
+ +
@@ -92,7 +93,7 @@ Index: linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016/fs/pstore/ram.
/* Only a single ramoops area allowed at a time, so fail extra /* Only a single ramoops area allowed at a time, so fail extra
* probes. * probes.
*/ */
@@ -603,11 +634,17 @@ static int ramoops_remove(struct platfor @@ -603,11 +635,17 @@ static int ramoops_remove(struct platfor
return 0; return 0;
} }