Repository navigation
IPC error occurs during suspend/resume on APL #611
Copy link
Copy link
Closed
Labels
APLApplies to Apollolake platformApplies to Apollolake platformP2Critical bugs or normal featuresCritical bugs or normal featuresbugSomething isn't working as expectedSomething isn't working as expected
Description
Summary:
Error message occurs on UP2 with pcm512x during the suspend/resume test.
dmesg:
[ 8060.313612] PM: suspend entry (deep)
[ 8060.313616] PM: Syncing filesystems ... done.
[ 8060.314373] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 8060.316209] OOM killer disabled.
[ 8060.316210] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 8060.317378] Suspending console(s) (use no_console_suspend to debug)
[ 8060.449370] sof-audio sof-audio: pcm: trigger stream 0 dir 0 cmd 5
[ 8060.449404] sof-audio sof-audio: ipc tx: 0x60000000: GLB_STREAM_MSG: unknown type
[ 8060.449533] sof-audio sof-audio: error: ipc error for 0x60000000 size 0xc
[ 8060.449550] Port5: ASoC: trigger FE failed -22
[ 8060.449581] sof-audio sof-audio: ipc tx: 0x40010000: GLB_PM_MSG: CTX_SAVE
[ 8060.449788] sof-audio sof-audio: ipc tx succeeded: 0x40010000: GLB_PM_MSG: CTX_SAVE
[ 8060.471503] sof-audio sof-audio: DSP core(s) enabled? 0 : core_mask 3
[ 8060.471537] sof-audio sof-audio: Debug PCIR: 00000000 at 00000044
[ 8060.471546] sof-audio-pci 0000:00:0e.0: Turning i915 HDAC power off
[ 8060.509647] ACPI: Preparing to enter system sleep state S3
Test steps:
- aplay -Dhw:0,0 -c2 -fS16_LE -vv -i ~/Music/California_Dreaming_48k_24bit.wav
- sudo ./stress_pm_S3.sh
#!/bin/bash
set -e
ITERATIONS=1000
COUNTER=0
while [ $COUNTER -lt $ITERATIONS ]; do
echo "Test $COUNTER"
dmesg -C
SUSPEND_TIME=$(($RANDOM%5+5))
echo “System will suspend after $SUSPEND_TIME seconds ...”
sleep $SUSPEND_TIME
WAKE_TIME=$(($RANDOM%5+5))
echo "system will resume after $WAKE_TIME seconds ..."
rtcwake -m mem -s $WAKE_TIME
unset ERROR
ERROR=$(dmesg | grep sof-audio | grep -v "failed" | grep "error")
if [ ! -z "$ERROR" ]
then
dmesg > test_${COUNTER}_fail.log
echo "Suspend/resume failed, see test_${COUNTER}_fail.log for details"
exit 1
else
echo "Test $COUNTER success"
fi
dmesg > test_${COUNTER}_pass.log
let COUNTER+=1
done
Test env:
sof master: 43081af
sof tool: c702844
kernel sof-dev: 6a976e1
tplg: sof-apl-pcm512x.tplg-c7028444
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
APLApplies to Apollolake platformApplies to Apollolake platformP2Critical bugs or normal featuresCritical bugs or normal featuresbugSomething isn't working as expectedSomething isn't working as expected
Activity
mengdonglin commentedon Nov 24, 2018
@markyang Please share more information here:
markyang commentedon Nov 26, 2018
@mengdonglin
-- The scripts was already attached after step 2.
-- The error message was triggered at the first time.
-- system can resume from S3 and playback can work. but 'pcm_write' error will occur, I will attach the log.
markyang commentedon Nov 27, 2018
A new bug(#637) was created to following the 'pcm_write' error.
[-]Error message occurs during suspend/resume[/-][+]IPC error occurs during suspend/resume on APL[/+]markyang commentedon Dec 20, 2018
Summary:
The ipc error(
error: ipc error for 0x60000000 size 0xc) also exists after the first time resume, but this is only a print issue, the functionality is OK, we can lower the priority.Test env:
sof master: da9ab07
kernel sof-dev: cfcd569
tplg: sof-apl-pcm512x.tplg
lgirdwood commentedon Dec 20, 2018
@mengdonglin looks like a duplicate, can we mark and close ?
mengdonglin commentedon Dec 25, 2018
@lgirdwood thesofproject/linux#370 is more complicate than this.
May we keep it open until The ipc error(error: ipc error for 0x60000000 size 0xc) is fixed on APL?
libinyang commentedon Jan 5, 2019
As this issue doesn't block any function test cases, I suggest we set it as P3 and put it in low priority. What's your opinion? @mengdonglin @markyang
markyang commentedon Jan 7, 2019
@stevyan
lgirdwood commentedon Jan 8, 2019
@markyang can you check this again with latest kernel/FW. There have been some fixes in this area. Thanks.
markyang commentedon Jan 14, 2019
@lgirdwood Audio can be resumed, but the ipc error(ipc error for 0x60000000 size 0xc) still exists with the latest build on APL with PCM512x.
dmesg:
Test steps:
Test env:
sof master: 872cefe
kernel sof-dev: 2ac82ee
tplg: sof-apl-pcm512x.tplg
lgirdwood commentedon Jan 14, 2019
@markyang This is a FW crash that's not being detected by the driver. I've added a kernel issue
thesofproject/linux#537
mengdonglin commentedon Mar 29, 2019
@stevyan @Jiangxinx Please check the latest status
Jiangxinx commentedon Mar 29, 2019
Not reproduce on daily test.
Step:
1.aplay -Dhw:0,0 -fS16_LE -c2 -r48000 /dev/zero& sudo ~/test/stress-s3.sh 50 1 1
Env:
sof master: 742f83b
kernel sof-dev: e29122d
tplg: sof-apl-pcm512x.tplg