Skip to content

Commit d52a316

Browse files
kv2019imarc-hb
authored andcommitted
check-sof-logger: etrace is not available in all configurations
The "etrace" debugfs file is not available in all SOF configurations, so it cannot be used to detect whether the DSP has booted. Use "/proc/asound/card0/id" instead. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 736e79d commit d52a316

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

test-case/check-sof-logger.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,20 @@ reload_drivers()
174174

175175
"${TOPDIR}"/tools/kmod/sof_insert.sh
176176

177+
# sof-test assumes SOF card to be loaded as first (card0)
178+
# card in the system
179+
CARD_NODE="/proc/asound/card0/id"
180+
177181
# The DSP may unfortunately need multiple retries to boot, see
178182
# https://github.com/thesofproject/sof/issues/3395
179-
dlogi "Polling /sys/kernel/debug/sof/etrace, waiting for DSP boot..."
183+
dlogi "Polling ${CARD_NODE}, waiting for DSP boot..."
180184
for i in $(seq 1 5); do
181-
if sudo test -e /sys/kernel/debug/sof/etrace; then break; fi
185+
if sudo test -e ${CARD_NODE} ; then
186+
dlogi "Found ${CARD_NODE}."
187+
break;
188+
fi
182189
sleep 1
183190
done
184-
dlogi "Found /sys/kernel/debug/sof/etrace."
185191
}
186192

187193
main()

0 commit comments

Comments
 (0)