Skip to content

Commit

Permalink
check-sof-logger: fix the DSP boot check
Browse files Browse the repository at this point in the history
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 <kai.vehmanen@linux.intel.com>
  • Loading branch information
kv2019i committed Sep 6, 2023
1 parent 0c36a49 commit 6220dba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test-case/check-sof-logger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6220dba

Please sign in to comment.