[NEUS7920-218] wlbt: reprint host failure reason after FW panic record
authorIvan Priest <i.priest@samsung.com>
Tue, 30 Apr 2019 14:36:50 +0000 (15:36 +0100)
committerKim Gunho <gunho.kim@samsung.com>
Fri, 28 Jun 2019 14:45:15 +0000 (23:45 +0900)
Re-print the host failure reason string after the FW panic
record is printed in kernel log. Helps with failures where
reason has scrolled off top of kernel log.

Change-Id: I27ec6d74f8fea63a479a463838fcaca0cb4aba3f
SCSC-Bug-Id: SSB-52204
Signed-off-by: Ivan Priest <i.priest@samsung.com>
drivers/misc/samsung/scsc/mxman.c

index fd316e8c7457a94868eb7e219edf2d6404251553..581cd626bf74898a408e72db2006faac754fe7ea 100755 (executable)
@@ -1572,6 +1572,12 @@ static void mxman_failure_work(struct work_struct *work)
                                                         panic_record_dump + used,
                                                         PANIC_RECORD_DUMP_BUFFER_SZ - used);
 
+                               /* Print the host code/reason again so it's near the FW panic
+                                * record in the kernel log
+                                */
+                               print_panic_code(mxman->scsc_panic_code);
+                               SCSC_TAG_INFO(MXMAN, "Reason: '%s'\n", mxman->failure_reason[0] ? mxman->failure_reason : "<null>");
+
                                blocking_notifier_call_chain(&firmware_chain,
                                                             SCSC_FW_EVENT_MOREDUMP_COMPLETE,
                                                             &panic_record_dump);