-
Notifications
You must be signed in to change notification settings - Fork 349
Closed
Labels
BSWBraswellBraswellP3Low-impact bugs or featuresLow-impact bugs or featuresbugSomething isn't working as expectedSomething isn't working as expected
Milestone
Description
Describe the bug
DMA is broken and get aplay "write error: Input/output error" in multi-pipeline playback/capture test on Braswell.
To Reproduce
Run 2 playback pipelines and 1 capture pipeline.
- aplay -D hw:0,0 -c 2 -r 48000 -f S16_LE /dev/zero -q
- aplay -D hw:0,1 -c 2 -r 48000 -f S16_LE /dev/zero -q
- arecord -D hw:0,0 -c 2 -r 48000 -f S16_LE /dev/null -q
Reproduction Rate
random. It may happen at the 1st iteration of the multi-pipeline test.
Expected behavior
Playback and capture of all 3 pipelines should work without error.
Impact
Get "aplay: pcm_write:2061: write error: Input/output error" on 2 pipelines.
Environment
- Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
- Kernel Branch: topic/sof-dev, commit: 40e44b3a
- SOF Branch: stable-v1.6 , commit 6e98d9d
- Name of the topology file
- Topology: sof-cht-max98090
- Name of the platform(s) on which the bug is observed.
- Platform: BSW_CYN_MAX98090 - Braswell Chromebook with max98090 codec
Screenshots or console output
Output of test log:
2020-09-23 11:26:07 UTC [REMOTE_INFO] ===== Testing: (Loop: 1/200) =====
2020-09-23 11:26:07 UTC [REMOTE_INFO] /home/ubuntu/sof-test/test-case/multiple-pipeline-playback.sh will use topology /lib/firmware/intel/sof-tplg/sof-cht-max98090.tplg to run the test case
2020-09-23 11:26:07 UTC [REMOTE_INFO] Pipeline list to ignore is specified, will ignore 'pcm=HDA Digital,Media Playback' in test case
2020-09-23 11:26:07 UTC [REMOTE_INFO] Run command to get pipeline parameters
2020-09-23 11:26:07 UTC [REMOTE_COMMAND] sof-tplgreader.py /lib/firmware/intel/sof-tplg/sof-cht-max98090.tplg -f 'type:playback' -b ' pcm:HDA Digital,Media Playback' -e
2020-09-23 11:26:07 UTC [REMOTE_INFO] Testing: PCM [hw:0,0]
2020-09-23 11:26:07 UTC [REMOTE_COMMAND] aplay -D hw:0,0 -c 2 -r 48000 -f S16_LE /dev/zero -q
2020-09-23 11:26:07 UTC [REMOTE_INFO] Testing: PCM Deep Buffer [hw:0,1]
2020-09-23 11:26:07 UTC [REMOTE_COMMAND] aplay -D hw:0,1 -c 2 -r 48000 -f S16_LE /dev/zero -q
2020-09-23 11:26:07 UTC [REMOTE_INFO] /home/ubuntu/sof-test/test-case/multiple-pipeline-playback.sh will use topology /lib/firmware/intel/sof-tplg/sof-cht-max98090.tplg to run the test case
2020-09-23 11:26:07 UTC [REMOTE_INFO] Pipeline list to ignore is specified, will ignore 'pcm=HDA Digital,Media Playback' in test case
2020-09-23 11:26:07 UTC [REMOTE_INFO] Run command to get pipeline parameters
2020-09-23 11:26:07 UTC [REMOTE_COMMAND] sof-tplgreader.py /lib/firmware/intel/sof-tplg/sof-cht-max98090.tplg -f 'type:capture' -b ' pcm:HDA Digital,Media Playback' -e
2020-09-23 11:26:07 UTC [REMOTE_INFO] Testing: PCM [hw:0,0]
2020-09-23 11:26:07 UTC [REMOTE_COMMAND] arecord -D hw:0,0 -c 2 -r 48000 -f S16_LE /dev/null -q
2020-09-23 11:26:07 UTC [REMOTE_INFO] pipeline start sleep 0.5s for device wakeup
aplay: pcm_write:2061: write error: Input/output error
aplay: pcm_write:2061: write error: Input/output error
2020-09-23 11:26:12 UTC [REMOTE_ERROR] Target pipeline count: 3, current process count: 1
Output of etrace
[ 17235491.822917] ( 17235492.000000) c0 dma-trace src/trace/dma-trace.c:327 ERROR FW ABI 0x3011000 DBG ABI 0x5002000 tag v1.5-rc1-714-g6e98d9dde423 src hash 0xb4ce6f04 (ldc hash 0xb4ce6f04)
[8159108968.593750] ( nan) c0 dw-dma src/drivers/dw/dma.c:283 ERROR dw_dma_start(): dma 0 channel 2 not ready ena 0x5 status 0x3
[8159108982.656250] ( 14.062500) c0 host 4.23 src/audio/host.c:317 ERROR host_copy_one_shot(): dma_copy() failed, ret = 4294967280
[8159108993.177084] ( 10.520833) c0 pipe 4.27 src/audio/pipeline.c:1023 ERROR pipeline_copy(): ret = -16, start->comp.id = 24, dir = 1
[8159109005.833334] ( 12.656250) c0 pipe 4.27 src/audio/pipeline.c:1213 ERROR pipeline_task(): xrun recover failed! pipeline will be stopped!
error: in logger_read(), fread(..., /sys/kernel/debug/sof/etrace) failed: Inappropriate ioctl for device(25)
Metadata
Metadata
Assignees
Labels
BSWBraswellBraswellP3Low-impact bugs or featuresLow-impact bugs or featuresbugSomething isn't working as expectedSomething isn't working as expected