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] suspend/resume test failed with warning on TGLU-SDCA #2877
@keqiaozhang please attach the entire dmesg/slogger log, it's not possible to check if that happens on suspend or resume. Or at least a daily test ID for reference. Thank you.
the sequence looks like a Command_Ignored reply, as if the register is not implemented.
[ 6287.958869] kernel: soundwire_intel soundwire_intel.link.0: intel_suspend: pm_runtime status: suspended
[ 6293.878173] kernel: soundwire_intel soundwire_intel.link.0: intel_resume: pm_runtime status was suspended, forcing active
[ 6293.878181] kernel: soundwire_intel soundwire_intel.link.0: intel_link_power_up: powering up all links
[ 6293.878182] kernel: soundwire_intel soundwire_intel.link.0: intel_link_power_up: first link up, programming SYNCPRD
[ 6293.879493] kernel: soundwire_intel soundwire_intel.link.0: Slave status change: 0x2 // RT711 is attached as Device 0
[ 6293.880001] kernel: soundwire_intel soundwire_intel.link.0: Msg ignored for Slave 0 // not an error, normal end of enumeration after programming Device number
[ 6293.880044] kernel: soundwire_intel soundwire_intel.link.0: Slave status change: 0x21 // RT711 is attached as Device 1 and unattached as Device 0
[ 6293.883048] kernel: soundwire_intel soundwire_intel.link.0: Slave status change: 0x40 // RT711 signals an Alert as Device1
[ 6293.883331] kernel: soundwire_intel soundwire_intel.link.0: Msg ignored for Slave 1 // NOT GOOD!
[ 6293.883414] kernel: rt711-sdca sdw:0:25d:711:1: Unable to sync register 0x40400f09. -61 // register access status -ENODATA
[ 6293.884017] kernel: soundwire_intel soundwire_intel.link.0: Slave status change: 0x20 // RT711 is back to Attached as Device1
@shumingfan can you please take a look? This doesn't look like a bus issue, the device never lost sync here.
In case this register is actually implemented in the device, this could be a problem with the paging management and we access the right offset but in the wrong page. That'd be tricky to debug :-(
Unless I am mistaken, this register address decodes as Function 1, entity 0x1E, control selector 1, control num 1?
that should be USER_FU1E and the mute control.
That looks inconsistent, the function 0x01 is JACK_CODEC, but the defaults are
Activity
plbossart commentedon Apr 28, 2021
@keqiaozhang please attach the entire dmesg/slogger log, it's not possible to check if that happens on suspend or resume. Or at least a daily test ID for reference. Thank you.
plbossart commentedon Apr 28, 2021
This comes from daily test 3577
dmesg.txt
the sequence looks like a Command_Ignored reply, as if the register is not implemented.
@shumingfan can you please take a look? This doesn't look like a bus issue, the device never lost sync here.
plbossart commentedon Apr 28, 2021
In case this register is actually implemented in the device, this could be a problem with the paging management and we access the right offset but in the wrong page. That'd be tricky to debug :-(
plbossart commentedon May 3, 2021
This is reproduced in Intel daily tests 3673, so not an isolated incident.
plbossart commentedon May 4, 2021
Unless I am mistaken, this register address decodes as Function 1, entity 0x1E, control selector 1, control num 1?
that should be USER_FU1E and the mute control.
That looks inconsistent, the function 0x01 is JACK_CODEC, but the defaults are
{ SDW_SDCA_CTL(FUNC_NUM_MIC_ARRAY, RT711_SDCA_ENT_USER_FU1E, RT711_SDCA_CTL_FU_VOLUME, CH_L), 0x00 }, { SDW_SDCA_CTL(FUNC_NUM_MIC_ARRAY, RT711_SDCA_ENT_USER_FU1E, RT711_SDCA_CTL_FU_VOLUME, CH_R), 0x00 },for MIC_ARRAY which should be function 0x02...
@shumingfan @jack-cy-yu @oder-chiou help!
shumingfan commentedon May 4, 2021
@plbossart Sorry, I missed your message. I checked this issue that the problem comes from ca5118c. It is a copy/paste error by my fault.
The SDCA control should use Function 1 in the rt711_sdca_set_fu1e_capture_ctl function.
I will send the patch to upstream soon.
ASoC: rt711-sdca: fix the function number of SDCA control for feature…
ASoC: rt711-sdca: fix the function number of SDCA control for feature…
plbossart commentedon May 4, 2021
fixed
ASoC: rt711-sdca: fix the function number of SDCA control for feature…
ASoC: rt711-sdca: fix the function number of SDCA control for feature…