Repository navigation
Closed
Labels
Clock Stop prepare failedSoundWire Clock Stop prepare failedSoundWire Clock Stop prepare failedP2Critical bugs or normal featuresCritical bugs or normal featuresSDWApplies to SoundWire bus for codec connectionApplies to SoundWire bus for codec connectionTGLApplies to Tiger Lake platformApplies to Tiger Lake platformbugSomething isn't workingSomething isn't working
Description
Intel internal test shows this:
kernel: [ 9610.645108] rt715 sdw:3:25d:715:0: [rt715_sdw_write] 3124 <= 0004
kernel: [ 9610.645238] rt715 sdw:3:25d:715:0: [rt715_sdw_write] 3125 <= 0005
kernel: [ 9610.840387] rt711 sdw:0:25d:711:0: Slave impl defined interrupt
kernel: [ 9610.840391] rt711 sdw:0:25d:711:0: rt711_interrupt_callback control_port_stat=4
kernel: [ 9611.092971] rt711 sdw:0:25d:711:0: [rt711_sdw_read] b921 0000 => 80000000
kernel: [ 9611.093470] rt711 sdw:0:25d:711:0: [rt711_sdw_read] 7520 85a0 9c20 aca0 => 00000af4
kernel: [ 9611.093991] rt711 sdw:0:25d:711:0: [rt711_sdw_read] 7520 85a0 9c20 aca0 => 00000800
kernel: [ 9611.094493] rt711 sdw:0:25d:711:0: [rt711_sdw_read] 7520 85a0 9c20 aca0 => 00000030
kernel: [ 9611.094495] rt711 sdw:0:25d:711:0: in rt711_jack_detect_handler, jack_type=0x3
kernel: [ 9611.094496] rt711 sdw:0:25d:711:0: in rt711_jack_detect_handler, btn_type=0x0
kernel: [ 9611.140187] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
kernel: [ 9611.140207] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
kernel: [ 9611.640140] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
kernel: [ 9611.640161] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
kernel: [ 9613.236847] intel-sdw intel-sdw.2: Msg ignored for Slave 15
kernel: [ 9613.236850] soundwire sdw-master-2: ClockStopNow Broadcast msg ignored -61
kernel: [ 9613.875333] intel-sdw intel-sdw.3: Msg ignored for Slave 1
kernel: [ 9613.875336] rt715 sdw:3:25d:715:0: Clock Stop prepare failed for slave: -61
kernel: [ 9613.875340] rt715 sdw:3:25d:715:0: pre-prepare failed:-61
kernel: [ 9613.875342] intel-sdw intel-sdw.3: prepare clock stop failed -61
kernel: [ 9613.875344] intel-sdw intel-sdw.3: cannot enable clock stop on suspend
dmesg_rt715_clock_stop_error.txt
@jack-cy-yu do you see any control value or writes that would cause the device to reply COMMAND_IGNORED?
Metadata
Metadata
Assignees
Labels
Clock Stop prepare failedSoundWire Clock Stop prepare failedSoundWire Clock Stop prepare failedP2Critical bugs or normal featuresCritical bugs or normal featuresSDWApplies to SoundWire bus for codec connectionApplies to SoundWire bus for codec connectionTGLApplies to Tiger Lake platformApplies to Tiger Lake platformbugSomething isn't workingSomething isn't working
Activity
jack-cy-yu commentedon Dec 11, 2020
Most registers in log are related to widget's properties, the only one I suspect is "3501 <= xxxx" operation, it's a audio power state control, not sure if the COMMAND_IGNORED is caused by this? But I reviewed previous log, the same operation didn't cause the COMMAND_IGNORED response.
plbossart commentedon Dec 11, 2020
@jack-cy-yu in theory the power controls should have no impact on the SoundWire interface, and a COMMAND_IGNORED can only be generated if the device is not synchronized or if the register does not exist.
The SoundWire spec says there should be no link between device state and replies to command, i.e. COMMAND_IGNORED can only be used to describe what happened on the bus and register access, not to convey a status on the device state or ability to handle the command. You may want to check with hardware folks if this is the case.
plbossart commentedon Dec 11, 2020
Same error reported w/ RT1316 in Intel internal test 1118
cmd: TPLG=sof-tgl-rt711-rt1316-rt714.tplg ~/sof-test/test-case/check-suspend-resume-with-audio.sh -l 15 -m playback
The only think I see is that there was an interrupt generated, not sure what for.
jack-cy-yu commentedon Dec 21, 2020
Are there detail steps to duplicate this issue? I got a test device from Compal, and I can try the same steps to duplicate issue on my side.
fredoh9 commentedon Feb 16, 2021
daily test 2190 reported same issue on CML_SKU0983_SDW.
soundwire: cadence: only prepare attached devices on clock stop
soundwire: cadence: only prepare attached devices on clock stop
4 remaining items
soundwire: cadence: only prepare attached devices on clock stop
soundwire: cadence: only prepare attached devices on clock stop
soundwire: cadence: only prepare attached devices on clock stop
soundwire: cadence: only prepare attached devices on clock stop
soundwire: cadence: only prepare attached devices on clock stop
soundwire: cadence: only prepare attached devices on clock stop
soundwire: cadence: only prepare attached devices on clock stop
soundwire: cadence: only prepare attached devices on clock stop
plbossart commentedon May 14, 2021
closing since we've reworked the clock stop sequence and this wasn't noticed in 3 months.
soundwire: cadence: only prepare attached devices on clock stop
soundwire: cadence: only prepare attached devices on clock stop
soundwire: cadence: only prepare attached devices on clock stop
soundwire: cadence: only prepare attached devices on clock stop
soundwire: cadence: only prepare attached devices on clock stop