summaryrefslogtreecommitdiff
path: root/drivers/platform/chrome
diff options
context:
space:
mode:
authorSarthak Kukreti <sarthakkukreti@chromium.org>2020-04-02 03:15:48 +0300
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>2020-04-13 17:36:54 +0300
commit1c7c51347f2e2ff5920cee1b54c683e2af06bd81 (patch)
tree4a6f7df1c0685b878a93bb3279b23039a61dc9cb /drivers/platform/chrome
parent8f3d9f354286745c751374f5f1fcafee6b3f3136 (diff)
downloadlinux-1c7c51347f2e2ff5920cee1b54c683e2af06bd81.tar.xz
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,
};