Skip to content

[Bug][APL] aplay: pcm_write:2011: write error: Input/output error after S3 443 times on UP2-NOCODEC platform. #999

Description

@Jiangxinx

Summary:
aplay: pcm_write:2011: write error: Input/output error after S3 443 times on UP2-NOCODEC platform. Dmesg have no obvious error trace.

To reproduce
aplay -Dhw:0,0 -fS16_LE -c2 -r48000 /dev/zero& sudo ~/test/stress-s3.sh 500 0 1

Actual result

---- test 443 of 500 ----
System will suspend after 2 seconds ...
system will resume after 1 seconds ...
rtcwake: assuming RTC uses UTC ...
rtcwake: wakeup from "mem" using /dev/rtc0 at Fri May 31 12:22:41 2019
Suspended. Trying resume. Failed. Restarting stream. Done.
aplay: pcm_write:2011: write error: Input/output error
aplay doesn't exist!
== end time: 2019-05-31 20:22:45 ==
[1]+ Exit 1 aplay -Dhw:0,0 -r48000 -c2 -fs16_le /dev/zero

Test recipe
sof master: 8901e0c
kernel sof-dev: 0a747dc
tplg: sof-apl-nocodec.tplg

sof-logger

 0 2 MIXER 270891522335.052094 3.802083 src/audio/mixer.c:235 mixer_trigger()
0 2 VOLUME 270891522338.802094 3.750000 udio/volume/volume.c:488 volume_trigger()
0 2 DAI 1.8 270891522342.604187 3.802083 src/audio/dai.c:510 dai_comp_trigger(), command = 1
0 2 DAI 1.8 270891522346.302094 3.697917 src/audio/dai.c:521 dai_comp_trigger(), START
0 1 DMA 270891522561.875000 215.572922 intel/cavs/hda-dma.c:290 hda-dmac: 5 wait for buffer full timeout rp 0x0 wp 0x20
0 1 HOST 270891522568.802094 6.927083 src/audio/host.c:794 host_copy() error: dma_copy() failed, ret = 4294967234
0 1 PIPE 270891522575.364594 6.562500 src/audio/pipeline.c:808 pipeline_copy() error: ret = -62, start->comp.id = 8, dir = 1
0 1 PIPE 1.9 270891522581.979187 6.614583 src/audio/pipeline.c:920 pipeline_xrun_recover()
0 2 PIPE 1.9 270891522586.770844 4.791667 src/audio/pipeline.c:402 pipeline_prepare()
0 2 HOST 270891522590.364594 3.593750 src/audio/host.c:638 host_prepare()
0 1 COMP 270891522593.593750 3.229167 rc/audio/component.c:197 comp_set_state() error: wrong state = 5, COMP_TRIGGER_PREPARE
0 1 PIPE 270891522599.322937 5.729167 src/audio/pipeline.c:411 pipeline_prepare() error: ret = -22,dev->comp.id = 0
0 1 PIPE 1.9 270891522605.677094 6.354167 src/audio/pipeline.c:927 pipeline_xrun_recover() error: pipeline_prepare() failed, ret = -22
0 1 PIPE 1.9 270891522611.041687 5.364583 src/audio/pipeline.c:998 pipeline_task(): xrun recover failed! pipeline will be stopped!
0 2 IPC 270893247212.552094 1724601.500000 src/ipc/handler.c:479 ipc: comp 0 -> trigger cmd 0x50000
0 2 PIPE 1.9 270893247216.770844 4.218750 src/audio/pipeline.c:631 pipeline_trigger()
0 2 HOST 270893247220.312500 3.541667 src/audio/host.c:286 host_trigger()
0 2 DMA 270893247224.322937 4.010417 intel/cavs/hda-dma.c:650 hda-dmac: 5 channel 0 -> stop
0 2 VOLUME 270893247228.333344 4.010417 udio/volume/volume.c:488 volume_trigger()
0 2 MIXER 270893247232.031250 3.697917 src/audio/mixer.c:235 mixer_trigger()
0 2 VOLUME 270893247235.729187 3.697917 udio/volume/volume.c:488 volume_trigger()
0 2 DAI 1.8 270893247239.375000 3.645833 src/audio/dai.c:510 dai_comp_trigger(), command = 0
0 2 DAI 1.8 270893247242.812500 3.437500 src/audio/dai.c:574 dai_comp_trigger(), PAUSE/STOP
0 2 DMA 270893247246.302094 3.489583 src/drivers/dw/dma.c:460 dw_dma_stop(): dma 0 channel 0 stop
0 2 SSP 270893247252.500000 6.197917 ers/intel/cavs/ssp.c:819 ssp_trigger() cmd 0
0 2 SSP 270893247382.500000 130.000000 ers/intel/cavs/ssp.c:809 ssp_stop(), SSP port disabled
0 2 IPC 270893247657.343750 274.843750 src/ipc/handler.c:368 ipc: comp 0 -> free
0 2 PIPE 1.9 270893247661.354187 4.010417 src/audio/pipeline.c:710 pipeline_reset()
0 2 HOST 270893247665.208344 3.854167 src/audio/host.c:702 host_reset()
0 2 VOLUME 270893247672.031250 6.822917 udio/volume/volume.c:632 volume_reset()
0 2 MIXER 270893247675.937500 3.906250 src/audio/mixer.c:352 mixer_reset()
0 2 VOLUME 393599875.052083 nan udio/volume/volume.c:445 volume_ctrl_get_cmd(), channel = 0, value = 0

Log file
dmesg.log
sof-logger.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    APLApplies to ApolloLake platformbugSomething isn't workingsuspend resumeIssues related to suspend resume (e.g. rtcwake)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions