From e74492bc28815501460b50900b7db92e64e76d0e Mon Sep 17 00:00:00 2001 From: Fred Oh Date: Thu, 16 Jul 2020 11:17:18 -0700 Subject: [PATCH 1/3] tools: remove $project_key to scan all dmesg Scan all dmesg without filtering any word. Unrelevant errors should be ignored by adding error phases to 'ignore_str'. Signed-off-by: Fred Oh --- tools/sof-kernel-log-check.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/sof-kernel-log-check.sh b/tools/sof-kernel-log-check.sh index e22acb76..1dd3d8aa 100755 --- a/tools/sof-kernel-log-check.sh +++ b/tools/sof-kernel-log-check.sh @@ -3,7 +3,6 @@ begin_line=${1:-1} declare err_str ignore_str project_key err_str="error|failed|timed out|panic|oops" -project_key="sof-audio" # There will be debug logs at each failed initializaiton of DSP: # sof-audio-pci 0000:00:1f.3: error: status = 0x00000000 panic = 0x00000000 @@ -35,9 +34,9 @@ ignore_str="$ignore_str"'|error: debugfs write failed to idle -16' #echo "run $0 with parameter '$*' for check kernel message error" if [ "$ignore_str" ]; then - err=$(eval $cmd|grep 'Call Trace' -A5 -B3)$(eval $cmd | grep $project_key | grep -E "$err_str"|grep -vE "$ignore_str") + err=$(eval $cmd|grep 'Call Trace' -A5 -B3)$(eval $cmd | grep -E "$err_str"|grep -vE "$ignore_str") else - err=$(eval $cmd|grep 'Call Trace' -A5 -B3)$(eval $cmd | grep $project_key | grep -E "$err_str") + err=$(eval $cmd|grep 'Call Trace' -A5 -B3)$(eval $cmd | grep -E "$err_str") fi if [ "$err" ]; then From 1cbb2dd857236b1089c890909de7311cc7255b6c Mon Sep 17 00:00:00 2001 From: Fred Oh Date: Thu, 16 Jul 2020 11:20:38 -0700 Subject: [PATCH 2/3] tools: add Parity error to ignore_str Realtek codecs thrown an error on startup, need to ignore this error for now. kernel: [ 759.001903] rt700 sdw:1:25d:700:0: Parity error detected Signed-off-by: Fred Oh --- tools/sof-kernel-log-check.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/sof-kernel-log-check.sh b/tools/sof-kernel-log-check.sh index 1dd3d8aa..6b031586 100755 --- a/tools/sof-kernel-log-check.sh +++ b/tools/sof-kernel-log-check.sh @@ -18,6 +18,10 @@ ignore_str="$ignore_str"'|error: status' # TODO explain ignore_str="$ignore_str"'|error: debugfs write failed to idle -16' +# Realtek codecs thrown an error on startup, checking with Realtek +# Possible fix - https://github.com/thesofproject/linux/pull/1984 +ignore_str="$ignore_str"'|Parity error detected' + [[ ! "$err_str" ]] && echo "Missing error keyword list" && exit 0 # dmesg KB size buffer size #dmesg_config_define=$(awk -F '=' '/CONFIG_LOG_BUF_SHIFT/ {print $2;}' /boot/config-$(uname -r)) From d5282c757d01af0941a33c390d88ef18fd0cda45 Mon Sep 17 00:00:00 2001 From: Fred Oh Date: Thu, 16 Jul 2020 16:09:50 -0700 Subject: [PATCH 3/3] tools: add xhci_hcd error to ignore_str Known usb issue in CML Helios platform. This is nothing to do with SOF project. Signed-off-by: Fred Oh --- tools/sof-kernel-log-check.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/sof-kernel-log-check.sh b/tools/sof-kernel-log-check.sh index 6b031586..7bfa9f30 100755 --- a/tools/sof-kernel-log-check.sh +++ b/tools/sof-kernel-log-check.sh @@ -22,6 +22,10 @@ ignore_str="$ignore_str"'|error: debugfs write failed to idle -16' # Possible fix - https://github.com/thesofproject/linux/pull/1984 ignore_str="$ignore_str"'|Parity error detected' +# CML Helios known issue related with xhci_hcd +# https://bugzilla.kernel.org/show_bug.cgi?id=202541 +ignore_str="$ignore_str"'|xhci_hcd 0000:00:14.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state' + [[ ! "$err_str" ]] && echo "Missing error keyword list" && exit 0 # dmesg KB size buffer size #dmesg_config_define=$(awk -F '=' '/CONFIG_LOG_BUF_SHIFT/ {print $2;}' /boot/config-$(uname -r))