You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG][cml-008-patch-backport] switch recording format on wov pipeline while speaker playback causes dsp panic #2298
Describe the bug
while speaker playback, if we run arecord with s16_le via wov pipeline for several times, then use s24_le run wov pipeline, there will be dsp panic.
To Reproduce
Reboot
Play sound via speaker: aplay -Dhw:0,5 -f dat -c2 -i -vvv ./somewave.wav
Run arecord -Dhw:0,8 -M -N -f s16_le -r 16000 -c 2 -i -vvv -d 4 –buffer-size=68000 ./wov.wav, and trigger recording
Run step 3 for 6 times
Run arecord -Dhw:0,8 -M -N -f s24_le -r 16000 -c 2 -i -vvv -d 4 –buffer-size=68000 ./wov.wav, and trigger recording, you should see the issue.
Reproduction Rate
almost every time try 6 times with s16_le, then switch to s24_le, we see this issue.
Environment
Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
changed the title [-][BUG][cml-008-patch-backport] switch recording format from s16_le to s24_le on wov pipeline while speaker playback causes dsp panic[/-][+][BUG][cml-008-patch-backport] switch recording format on wov pipeline while speaker playback causes dsp panic[/+]on Jan 17, 2020
@lgirdwood, allocation error log is just a misleading warning which really says "there is not enough memory for one of the requested memory pool" and since we don't see consecutive kpb_prepare(0 error message saying sth like "allocation of histor buffer failed" it means that the next memory pool was sufficient to fullfill the request.... I have to go back to #2058 and pick some approach to hide this error message which is in fact a warning.
@aiChaoSONG, I have tested cml-008-patch-bakcport as well as master branches and I admit this bug is on both of them. This is very rare case but after debugging it I came up with a fix. Therefore could you please test below patch and check if it fixes the isssue:
@mrajwa Are you sure #2329 fix this issue? since #2329 cannot directly applied to 008-backport, I port it myself, but only get ipc error when run wov pipeline. if I am porting it wrong, can you provide the fw you compiled?
@aiChaoSONG@mrajwa Since #2329 is merged by master, customer can get the fix from master later. Closed this issue on cml-008-patch-backport as won't fix.
Activity
[-][BUG][cml-008-patch-backport] switch recording format from s16_le to s24_le on wov pipeline while speaker playback causes dsp panic[/-][+][BUG][cml-008-patch-backport] switch recording format on wov pipeline while speaker playback causes dsp panic[/+]lgirdwood commentedon Jan 17, 2020
@mrajwa @keyonjie not sure if it's related, but we do get a KPB allocation error
mrajwa commentedon Jan 17, 2020
@lgirdwood, allocation error log is just a misleading warning which really says "there is not enough memory for one of the requested memory pool" and since we don't see consecutive kpb_prepare(0 error message saying sth like "allocation of histor buffer failed" it means that the next memory pool was sufficient to fullfill the request.... I have to go back to #2058 and pick some approach to hide this error message which is in fact a warning.
lgirdwood commentedon Jan 17, 2020
@mrajwa fwiw, @mmaka1 is thinking over changes to future trace APIs
mrajwa commentedon Jan 27, 2020
@aiChaoSONG, I have tested cml-008-patch-bakcport as well as master branches and I admit this bug is on both of them. This is very rare case but after debugging it I came up with a fix. Therefore could you please test below patch and check if it fixes the isssue:
#2329
aiChaoSONG commentedon Feb 12, 2020
@mrajwa Are you sure #2329 fix this issue? since #2329 cannot directly applied to 008-backport, I port it myself, but only get ipc error when run wov pipeline. if I am porting it wrong, can you provide the fw you compiled?
mengdonglin commentedon Mar 17, 2020
@aiChaoSONG @mrajwa Since #2329 is merged by master, customer can get the fix from master later. Closed this issue on cml-008-patch-backport as won't fix.