OSDN Git Service

platform/chrome: chromeos_pstore: set user space log size
authorSarthak Kukreti <sarthakkukreti@chromium.org>
Thu, 2 Apr 2020 00:15:48 +0000 (17:15 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Mon, 13 Apr 2020 14:36:54 +0000 (16:36 +0200)
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>
drivers/platform/chrome/chromeos_pstore.c

index d137707..82dea8c 100644 (file)
@@ -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,
 };