summaryrefslogtreecommitdiffstats
path: root/drivers/platform/chrome
diff options
context:
space:
mode:
authorSarthak Kukreti <sarthakkukreti@chromium.org>2020-04-02 02:15:48 +0200
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>2020-04-13 16:36:54 +0200
commit1c7c51347f2e2ff5920cee1b54c683e2af06bd81 (patch)
tree4a6f7df1c0685b878a93bb3279b23039a61dc9cb /drivers/platform/chrome
parentLinux 5.7-rc1 (diff)
downloadlinux-1c7c51347f2e2ff5920cee1b54c683e2af06bd81.tar.xz
linux-1c7c51347f2e2ff5920cee1b54c683e2af06bd81.zip
platform/chrome: chromeos_pstore: set user space log size
On x86 ChromiumOS devices, the pmsg_size is set to 0 (check /sys/module/ramoops/parameters/pmsg_size): this prevents use of pstore-pmsg, even if CONFIG_PSTORE_PMSG is enabled. Set pmsg_size to a value that is consistent with the size used on non-x86 ChromiumOS devices. Signed-off-by: Sarthak Kukreti <sarthakkukreti@chromium.org> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Diffstat (limited to 'drivers/platform/chrome')
-rw-r--r--drivers/platform/chrome/chromeos_pstore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/chrome/chromeos_pstore.c b/drivers/platform/chrome/chromeos_pstore.c
index d13770785fb5..82dea8cb5da1 100644
--- a/drivers/platform/chrome/chromeos_pstore.c
+++ b/drivers/platform/chrome/chromeos_pstore.c
@@ -57,6 +57,7 @@ static struct ramoops_platform_data chromeos_ramoops_data = {
.record_size = 0x40000,
.console_size = 0x20000,
.ftrace_size = 0x20000,
+ .pmsg_size = 0x20000,
.dump_oops = 1,
};