Skip to content

Commit 2899439

Browse files
committed
tests: lib: filter out SSP timeouts
In legacy SSP driver, DMA request request is enabled during FIFO drain, causing DMA keeps filling FIFO and preventing empty, which leads to timeout. ERROR is logged by poll_for_register_delay() while ssp_empty_tx_fifo() returns WARN, so there is inconsistent error handling between this two functions. Issue#4369 describe issue on older firmware version. Signed-off-by: Mateusz Junkier <mateusz.junkier@intel.com>
1 parent d651139 commit 2899439

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

case-lib/lib.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,11 @@ check_error_in_fw_logfile()
550550
# -B 2 shows the header line when the first etrace message is an ERROR
551551
# -A 1 shows whether the ERROR is last or not.
552552
if (set -x
553-
grep -B 2 -A 1 -i --word-regexp -e 'ERR' -e 'ERROR' -e '<err>' -e OSError "$1"
553+
grep -B 2 -A 1 -i --word-regexp -e 'ERR' -e 'ERROR' -e '<err>' -e OSError "$1" | \
554+
# Filter out SSP timeout errors which not relevant on older firmware
555+
grep -v 'poll timeout reg .* mask .* val .* us .*' | \
556+
grep -v 'ssp_empty_tx_fifo() warning: timeout' | \
557+
grep -i --word-regexp -e 'ERR' -e 'ERROR' -e '<err>' -e OSError
554558
); then
555559
# See internal Intel bug #448
556560
dlogw 'An HTML display bug hides the bracketed Zephyr &lt;loglevels&gt; in this tab,'

0 commit comments

Comments
 (0)