thesofproject / sof-test

BSD 3-Clause "New" or "Revised" License
13 stars 45 forks source link

[bug] Need add DAPM check when checking runtime PM status #215

Open ClarexZhou opened 4 years ago

ClarexZhou commented 4 years ago

eg. command: cat /sys/bus/pci/devices/00.1f.3/mahine-driver-name/DAPM/ | grep "On"
Should no "On" if need enter runtime PM suspend

Bin-QA commented 4 years ago

Current have some issue with DAPM folder refer the environment This change will merge into sof-dump-status.py

here have some simple command:

pci_id=$(lspci |grep audio -i|awk '{print $1;}')
grep "On" "/sys/bus/pci/devices/0000:$pci_id/"* -rni 2>/dev/null|grep -i 'DAPM'
Bin-QA commented 4 years ago

Update for new work path: cat /sys/kernel/debug/asoc/machine-driver-name/0000\:00\:1f.3/dapm/*