Skip to content

Commit 270d240

Browse files
majunkierredzynix
authored andcommitted
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 0b71b57 commit 270d240

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

case-lib/lib.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,10 +547,16 @@ check_error_in_fw_logfile()
547547
dloge "file NOT FOUND: '$1'"
548548
return 1
549549
}
550+
# Filter out SSP timeout errors and check for remaining errors
551+
SSP_timeout_msgs=(
552+
-e 'poll timeout reg .* mask .* val .* us .*'
553+
-e 'ssp_empty_tx_fifo() warning: timeout'
554+
)
550555
# -B 2 shows the header line when the first etrace message is an ERROR
551556
# -A 1 shows whether the ERROR is last or not.
552557
if (set -x
553-
grep -B 2 -A 1 -i --word-regexp -e 'ERR' -e 'ERROR' -e '<err>' -e OSError "$1"
558+
grep -v "${SSP_timeout_msgs[@]}" "$1" | \
559+
grep -B 2 -A 1 -i --word-regexp -e 'ERR' -e 'ERROR' -e '<err>' -e OSError
554560
); then
555561
# See internal Intel bug #448
556562
dlogw 'An HTML display bug hides the bracketed Zephyr &lt;loglevels&gt; in this tab,'

0 commit comments

Comments
 (0)