From ed9b53374795db4b8ddbbbf2d37f8512a37c6f97 Mon Sep 17 00:00:00 2001 From: Feng Tang Date: Mon, 17 Dec 2018 11:53:42 +0800 Subject: [PATCH] DM: sos_bootargs: Add panic_print parameter to help debugging Adding this parameter so that it could provide more info when kernel panic happens. And this has almost no overhead as it only uses several existing kernel APIs. The 0x1f is a bitmask for type of info to be dumped, and it means it will print task/memory/timer/lock/ftrace info when panic happens. Tracked-On: #2330 Signed-off-by: Feng Tang Reviewed-by: Binbin Wu --- devicemodel/samples/apl-mrb/sos_bootargs_debug.txt | 1 + devicemodel/samples/apl-mrb/sos_bootargs_release.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/devicemodel/samples/apl-mrb/sos_bootargs_debug.txt b/devicemodel/samples/apl-mrb/sos_bootargs_debug.txt index 845908f65..29598056b 100644 --- a/devicemodel/samples/apl-mrb/sos_bootargs_debug.txt +++ b/devicemodel/samples/apl-mrb/sos_bootargs_debug.txt @@ -20,3 +20,4 @@ ramoops.mem_address=0x6da00000 ramoops.mem_size=0x400000 ramoops.console_size=0x200000 reboot_panic=p,w +panic_print=0x1f diff --git a/devicemodel/samples/apl-mrb/sos_bootargs_release.txt b/devicemodel/samples/apl-mrb/sos_bootargs_release.txt index 238b7e4b6..8d2018d3d 100644 --- a/devicemodel/samples/apl-mrb/sos_bootargs_release.txt +++ b/devicemodel/samples/apl-mrb/sos_bootargs_release.txt @@ -14,3 +14,4 @@ i915.enable_guc=0x02 video=DP-1:d video=DP-2:d cma=64M@0- +panic_print=0x1f