Skip to content

Commit 101346f

Browse files
author
Amery Song
committed
tools: split ignore_str and give reason for each ignore item
Each ignore item should have a reason. This helps us to trace every ignore item. This patch splits ignore_str into ignore items, and provides descriptions on why each item is ignored. Fixes: #261 Signed-off-by: Amery Song <chao.song@intel.com>
1 parent b020ecd commit 101346f

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

tools/sof-kernel-log-check.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,23 @@
33
begin_line=${1:-1}
44
declare err_str ignore_str project_key
55
err_str="error|failed|timed out|panic|oops"
6-
ignore_str="error: debugfs write failed to idle -16|error: status|iteration [01]"
6+
ignore_str=""
77
project_key="sof-audio"
88

9+
# There will be debug logs at each failed initializaiton of DSP:
10+
# sof-audio-pci 0000:00:1f.3: error: status = 0x00000000 panic = 0x00000000
11+
# sof-audio-pci 0000:00:1f.3: error: Error code=0xffffffff: FW status=0xffffffff
12+
# sof-audio-pci 0000:00:1f.3: error: iteration 0 of Core En/ROM load failed: -110
13+
# We will reinit DSP if it is failed to init, and retry times is 3, so the errors in
14+
# debug logs at the frist and second retry can be ignored.
15+
# Check https://github.com/thesofproject/linux/pull/1676 for more information.
16+
# TODO explain for "error: Error ..."
17+
ignore_str="$ignore_str"|'error: iteration [01]'
18+
ignore_str="$ignore_str"|'error: status'
19+
20+
# TODO explain
21+
ignore_str="$ignore_str"|'error: debugfs write failed to idle -16'
22+
923
[[ ! "$err_str" ]] && echo "Missing error keyword list" && exit 0
1024
# dmesg KB size buffer size
1125
#dmesg_config_define=$(awk -F '=' '/CONFIG_LOG_BUF_SHIFT/ {print $2;}' /boot/config-$(uname -r))

0 commit comments

Comments
 (0)