From 9e5b09d48b195549b42ed6d09e954678ba2264af Mon Sep 17 00:00:00 2001 From: Mateusz Junkier Date: Mon, 24 Nov 2025 12:57:10 +0100 Subject: [PATCH] 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 --- case-lib/lib.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/case-lib/lib.sh b/case-lib/lib.sh index 4d9840a0..56b5ceee 100644 --- a/case-lib/lib.sh +++ b/case-lib/lib.sh @@ -547,10 +547,16 @@ check_error_in_fw_logfile() dloge "file NOT FOUND: '$1'" return 1 } + # Filter out SSP timeout errors and check for remaining errors + SSP_timeout_msgs=( + -e 'poll timeout reg .* mask .* val .* us .*' + -e 'ssp_empty_tx_fifo() warning: timeout' + ) # -B 2 shows the header line when the first etrace message is an ERROR # -A 1 shows whether the ERROR is last or not. if (set -x - grep -B 2 -A 1 -i --word-regexp -e 'ERR' -e 'ERROR' -e '' -e OSError "$1" + grep -v "${SSP_timeout_msgs[@]}" "$1" | \ + grep -B 2 -A 1 -i --word-regexp -e 'ERR' -e 'ERROR' -e '' -e OSError ); then # See internal Intel bug #448 dlogw 'An HTML display bug hides the bracketed Zephyr <loglevels> in this tab,'