diff options
author | Sarthak Kukreti <sarthakkukreti@chromium.org> | 2020-04-02 02:15:48 +0200 |
---|---|---|
committer | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2020-04-13 16:36:54 +0200 |
commit | 1c7c51347f2e2ff5920cee1b54c683e2af06bd81 (patch) | |
tree | 4a6f7df1c0685b878a93bb3279b23039a61dc9cb /drivers/platform/chrome | |
parent | Linux 5.7-rc1 (diff) | |
download | linux-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.c | 1 |
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, }; |