From c108144a34c4ab0b4019e391ab818e80c4239008 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Thu, 27 Aug 2020 15:59:27 -0500 Subject: [PATCH 1/4] sof-kernel-log-check: remove filter on initial boot issues The kernel was modified to only throw errors after the last boot attempt, there should be no need to filter in sof-test. Signed-off-by: Pierre-Louis Bossart --- tools/sof-kernel-log-check.sh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/tools/sof-kernel-log-check.sh b/tools/sof-kernel-log-check.sh index 39a54b7b..2a6a7ae8 100755 --- a/tools/sof-kernel-log-check.sh +++ b/tools/sof-kernel-log-check.sh @@ -4,19 +4,9 @@ begin_line=${1:-1} declare err_str ignore_str project_key err_str="error|failed|timed out|panic|oops" -# There will be debug logs at each failed initializaiton of DSP: -# sof-audio-pci 0000:00:1f.3: error: status = 0x00000000 panic = 0x00000000 -# sof-audio-pci 0000:00:1f.3: error: Error code=0xffffffff: FW status=0xffffffff -# sof-audio-pci 0000:00:1f.3: error: iteration 0 of Core En/ROM load failed: -110 -# We will reinit DSP if it is failed to init, and retry 3 times, so the errors in -# debug logs at the frist and second retry can be ignored. -# Check https://github.com/thesofproject/linux/pull/1676 for more information. -# TODO explain for "error: Error ..." -ignore_str='error: iteration [01]' -ignore_str="$ignore_str"'|error: status' - # TODO explain -ignore_str="$ignore_str"'|error: debugfs write failed to idle -16' +# The first string cannot start by | +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 From 3720127ad649419a1c98a8abcbbb223311236796 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Thu, 27 Aug 2020 16:06:02 -0500 Subject: [PATCH 2/4] sof-kernel-log-check.sh: remove Realtek parity filter This error is now handled in the topic/sof-dev kernel. Signed-off-by: Pierre-Louis Bossart --- tools/sof-kernel-log-check.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/sof-kernel-log-check.sh b/tools/sof-kernel-log-check.sh index 2a6a7ae8..1cba45f2 100755 --- a/tools/sof-kernel-log-check.sh +++ b/tools/sof-kernel-log-check.sh @@ -8,10 +8,6 @@ err_str="error|failed|timed out|panic|oops" # The first string cannot start by | 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' - # 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' From 5d9e618400b93ceae49f4f2ddec26d893cc64d94 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Thu, 27 Aug 2020 16:04:57 -0500 Subject: [PATCH 3/4] sof-kernel-log-check.sh: add Dell CML-U w/ SoundWire filters TPM, iwlwifi and thermal zone warnings All warnings are checked with '.', '(' and ')' treated as escapes to avoid regexp issues. BugLink: https://github.com/thesofproject/sof-test/issues/307 BugLink: https://github.com/thesofproject/sof-test/issues/343 Signed-off-by: Pierre-Louis Bossart --- tools/sof-kernel-log-check.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tools/sof-kernel-log-check.sh b/tools/sof-kernel-log-check.sh index 1cba45f2..cbb92db3 100755 --- a/tools/sof-kernel-log-check.sh +++ b/tools/sof-kernel-log-check.sh @@ -26,6 +26,30 @@ ignore_str="$ignore_str"'|PM: Device i2c-DELL0955:00 failed to resume async: err # https://github.com/thesofproject/sof-test/issues/348 ignore_str="$ignore_str"'|da7219 i2c-DLGS7219:00: SRM failed to lock' +# Dell CML-U laptop with SoundWire, issues reported by sof-test +# https://github.com/thesofproject/sof-test/issues/343 +ignore_str="$ignore_str"'|tpm tpm0: tpm_try_transmit: send\(\): error -5' +ignore_str="$ignore_str"'|platform regulatory\.0: Direct firmware load for regulatory\.db failed with error -2' +ignore_str="$ignore_str"'|cfg80211: failed to load regulatory\.db' +ignore_str="$ignore_str"'|EXT4-fs \(nvme0n1p6\): re-mounted\. Opts: errors=remount-ro' +ignore_str="$ignore_str"'|usb 2-3: Enable of device-initiated U1 failed\.' +ignore_str="$ignore_str"'|usb 2-3: Enable of device-initiated U2 failed\.' +ignore_str="$ignore_str"'|iwlwifi 0000:00:14\.3: Direct firmware load for iwlwifi-QuZ-a0-hr-b0-56\.ucode failed with error -2' +ignore_str="$ignore_str"'|iwlwifi 0000:00:14\.3: Direct firmware load for iwlwifi-QuZ-a0-hr-b0-55\.ucode failed with error -2' +ignore_str="$ignore_str"'|iwlwifi 0000:00:14\.3: Direct firmware load for iwlwifi-QuZ-a0-hr-b0-54\.ucode failed with error -2' +ignore_str="$ignore_str"'|iwlwifi 0000:00:14\.3: Direct firmware load for iwlwifi-QuZ-a0-hr-b0-53\.ucode failed with error -2' +ignore_str="$ignore_str"'|iwlwifi 0000:00:14\.3: Direct firmware load for iwlwifi-QuZ-a0-hr-b0-52\.ucode failed with error -2' +ignore_str="$ignore_str"'|iwlwifi 0000:00:14\.3: Direct firmware load for iwlwifi-QuZ-a0-hr-b0-51\.ucode failed with error -2' +ignore_str="$ignore_str"'|iwlwifi 0000:00:14\.3: Direct firmware load for iwlwifi-QuZ-a0-hr-b0-50\.ucode failed with error -2' +ignore_str="$ignore_str"'|iwlwifi 0000:00:14\.3: Direct firmware load for iwlwifi-QuZ-a0-hr-b0-49\.ucode failed with error -2' +ignore_str="$ignore_str"'|iwlwifi 0000:00:14\.3: Direct firmware load for iwl-debug-yoyo\.bin failed with error -2' +ignore_str="$ignore_str"'|thermal thermal_zone.*: failed to read out thermal zone \(-61\)' + +# Dell CML-U laptop with SoundWire, issues reported by sof-test +# BugLink: https://github.com/thesofproject/sof-test/issues/307 +ignore_str="$ignore_str"'|iwlwifi 0000:00:14\.3: Microcode SW error detected\. Restarting 0x0\.' +ignore_str="$ignore_str"'|wlo1: authentication with f4:f5:e8:6b:45:bb timed out' + [[ ! "$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 65795652892f94ee7b688552c28b80887663e17b Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Fri, 28 Aug 2020 15:45:13 -0500 Subject: [PATCH 4/4] sof-kernel-log-check.sh: handle escape characters '.' is a special character in a regexp. Signed-off-by: Pierre-Louis Bossart --- tools/sof-kernel-log-check.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/sof-kernel-log-check.sh b/tools/sof-kernel-log-check.sh index cbb92db3..c00fe419 100755 --- a/tools/sof-kernel-log-check.sh +++ b/tools/sof-kernel-log-check.sh @@ -10,15 +10,15 @@ ignore_str='error: debugfs write failed to idle -16' # 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' +ignore_str="$ignore_str"'|xhci_hcd 0000:00:14\.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state' # CML Mantis occasionally throws Intel(R) Management Engine Interface(mei) errors # https://unix.stackexchange.com/questions/109294/mei-00000016-0-init-hw-failure -ignore_str="$ignore_str"'|mei_me 0000:00:16.0: wait hw ready failed' -ignore_str="$ignore_str"'|mei_me 0000:00:16.0: hw_start failed ret = -62' +ignore_str="$ignore_str"'|mei_me 0000:00:16\.0: wait hw ready failed' +ignore_str="$ignore_str"'|mei_me 0000:00:16\.0: hw_start failed ret = -62' # CML Mantis has DELL touchpad i2c error on suspend/resume -ignore_str="$ignore_str"'|i2c_designware i2c_designware.0: controller timed out' +ignore_str="$ignore_str"'|i2c_designware i2c_designware\.0: controller timed out' ignore_str="$ignore_str"'|i2c_hid i2c-DELL0955:00: failed to change power setting' ignore_str="$ignore_str"'|PM: Device i2c-DELL0955:00 failed to resume async: error -110'