Closed ClarexZhou closed 4 years ago
that looks bad, division by zero?
[ 187.998999] divide error: 0000 [#1] SMP NOPTI
[ 187.999002] CPU: 3 PID: 2218 Comm: aplay Not tainted 5.6.0-rc6-daily-default-20200403 #1
[ 187.999006] RIP: 0010:sdw_compute_params+0x343/0x1000 [soundwire_generic_allocation]
Close it since not issue not reproduced with latest sof-dev(commit:052e45d7) + master(commit:b4e8b1e) + ucm2 ( https://github.com/thesofproject/alsa-ucm-conf (commit: 4722f5b ) +PR#29 )
Describe the bug Call Trace when using RT 711 headset playback/capture with UCM2 on ubuntu 20.04
Error not seen with ubuntu 18.04 with UCM1.
To Reproduce
Reproduction Rate 4/5
Expected behavior Headset playback should works normally
Impact aplay stuck and Call Trace in dmesg then system freeze.
Environment 1) Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
Dmesg
```` [ 133.922848] sof-audio-pci 0000:00:1f.3: pcm: free stream 2 dir 0 [ 133.923960] sof-audio-pci 0000:00:1f.3: ipc tx: 0x80010000: GLB_DAI_MSG: CONFIG [ 133.924155] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x80010000: GLB_DAI_MSG: CONFIG [ 133.924343] sof-audio-pci 0000:00:1f.3: pcm: close stream 2 dir 0 [ 134.489386] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG [ 134.489410] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG [ 187.993298] sof-audio-pci 0000:00:1f.3: pcm: open stream 0 dir 0 [ 187.993300] sof-audio-pci 0000:00:1f.3: period min 192 max 16384 bytes [ 187.993301] sof-audio-pci 0000:00:1f.3: period count 2 max 16 [ 187.993302] sof-audio-pci 0000:00:1f.3: buffer max 65536 bytes [ 187.998377] sof-audio-pci 0000:00:1f.3: ipc tx: 0x80010000: GLB_DAI_MSG: CONFIG [ 187.998542] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x80010000: GLB_DAI_MSG: CONFIG [ 187.998544] sof-audio-pci 0000:00:1f.3: pcm: hw params stream 0 dir 0 [ 187.998546] sof-audio-pci 0000:00:1f.3: generating page table for 00000000d61e5ee2 size 0xffc0 pages 16 [ 187.998550] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x140000 successful [ 187.998563] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x40000 successful [ 187.998565] sof-audio-pci 0000:00:1f.3: period_bytes:0x3fc0 [ 187.998565] sof-audio-pci 0000:00:1f.3: periods:4 [ 187.998574] sof-audio-pci 0000:00:1f.3: stream_tag 1 [ 187.998578] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS [ 187.998976] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60010000: GLB_STREAM_MSG: PCM_PARAMS [ 187.998977] sof-audio-pci 0000:00:1f.3: pcm: stream dir 0, posn mailbox offset is 790528 [ 187.998999] divide error: 0000 [#1] SMP NOPTI [ 187.999002] CPU: 3 PID: 2218 Comm: aplay Not tainted 5.6.0-rc6-daily-default-20200403 #1 [ 187.999003] Hardware name: Dell Inc. Latitude 9510/, BIOS 0.1.3 10/01/2019 [ 187.999006] RIP: 0010:sdw_compute_params+0x343/0x1000 [soundwire_generic_allocation] [ 187.999007] Code: 8c 00 00 00 41 8d 45 ff 4d 89 e1 48 89 c7 48 c1 e0 04 4c 8d 5c 06 10 48 89 f1 41 8b 31 31 d2 44 89 d0 48 83 c1 10 49 83 c1 04sof_logger_error.txt sof_logger_full.txt dmesg.txt