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 <[email protected]>
  • Loading branch information
kv2019i committed Sep 4, 2023
1 parent 0c36a49 commit 94e9731
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test-case/check-sof-logger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,20 @@ reload_drivers()

# The DSP may unfortunately need multiple retries to boot, see
# https://github.com/thesofproject/sof/issues/3395
# Timeout needs to be 60+sec as platform with GFX present
# on hardware but without functional i915 driver, the SOF
# probe will require the 60sec i915 probe timeout to expire
# before card probe can be completed.
dlogi "Polling ${CARD_NODE}, waiting for DSP boot..."
for i in $(seq 1 5); do
for i in $(seq 1 70); 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 94e9731

Please sign in to comment.