From 6220dba6fd0442055cc172df9079e23a3f9c3362 Mon Sep 17 00:00:00 2001 From: Kai Vehmanen Date: Mon, 4 Sep 2023 13:20:11 +0300 Subject: [PATCH] check-sof-logger: fix the DSP boot check The DSP boot check reload_drivers() must wait longer than 5 seconds as we have many configurations where DSP boot will take more than 60sec (due to e.g. Intel platforms with i915 hardware present but driver not present in the kernel version under test). Additionally the test case must check whether DSP did boot up after the timeout expires, and fail the test case if it didn't. Signed-off-by: Kai Vehmanen --- test-case/check-sof-logger.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test-case/check-sof-logger.sh b/test-case/check-sof-logger.sh index 72b921f8..42df779f 100755 --- a/test-case/check-sof-logger.sh +++ b/test-case/check-sof-logger.sh @@ -234,13 +234,15 @@ reload_drivers() # The DSP may unfortunately need multiple retries to boot, see # https://github.com/thesofproject/sof/issues/3395 dlogi "Polling ${CARD_NODE}, waiting for DSP boot..." - for i in $(seq 1 5); do + for i in $(seq 1 "${MAX_WAIT_FW_LOADING}" ); do if sudo test -e ${CARD_NODE} ; then dlogi "Found ${CARD_NODE}." break; fi sleep 1 done + + test -e ${CARD_NODE} || die "DSP did not boot (node ${CARD_NODE})" } main()