Skip to content

Volteer: suspend/resume: Max98373 falls off the bus on resume and doesn't reattach. #3063

Description

@plbossart

Low-level hardware error seen in unrelated nocodec test.

https://sof-ci.sh.intel.com/#/result/planresultdetail/5452?model=TGLU_VOLT_SDW&testcase=check-suspend-resume-with-capture-5

Recipe:
Start Time: 2021-07-23 01:00:47 UTC
End Time: 2021-07-23 04:34:04 UTC
Kernel Branch: topic/sof-dev
Kernel Commit: d54b780
SOF Branch: main
SOF Commit: 52bc39f

Hardware: jf-tglu-volt-sdw-01

LINK0 RESUME
[ 7159.394865] kernel: soundwire_intel soundwire_intel.link.0: intel_link_power_up: powering up all links
[ 7159.394870] kernel: soundwire_intel soundwire_intel.link.0: intel_link_power_up: first link up, programming SYNCPRD
[ 7159.395915] kernel: rt5682 sdw:0:025d:5682:00: sdw_modify_slave_status: initializing enumeration and init completion for Slave 1
[ 7159.397149] kernel: soundwire_intel soundwire_intel.link.0: Slave status change: 0x2
[ 7159.397159] kernel: soundwire sdw-master-0: Slave attached, programming device number
[ 7159.397494] kernel: soundwire sdw-master-0: SDW Slave Addr: 20025d568200
[ 7159.397495] kernel: soundwire sdw-master-0: SDW Slave class_id 0x00, mfg_id 0x025d, part_id 0x5682, unique_id 0x0, version 0x2
[ 7159.397498] kernel: soundwire sdw-master-0: Slave already registered, reusing dev_num:1
[ 7159.397811] kernel: soundwire_intel soundwire_intel.link.0: Msg ignored for Slave 0
[ 7159.397813] kernel: soundwire sdw-master-0: No more devices to enumerate
[ 7159.397850] kernel: soundwire_intel soundwire_intel.link.0: Slave status change: 0x21
[ 7159.397854] kernel: rt5682 sdw:0:025d:5682:00: sdw_modify_slave_status: signaling enumeration completion for Slave 1
[ 7159.397964] kernel: rt5682 sdw:0:025d:5682:00: Bus clash detected before INT mask is enabled
[ 7159.720037] kernel: rt5682 sdw:0:025d:5682:00: rt5682_io_init hw_init complete: 0
[ 7159.720042] kernel: rt5682 sdw:0:025d:5682:00: sdw_handle_slave_status: signaling initialization completion for Slave 1

LINK1 RESUME
[ 7159.720964] kernel: max98373 sdw:1:019f:8373:00:7: sdw_modify_slave_status: initializing enumeration and init completion for Slave 1
[ 7159.720976] kernel: max98373 sdw:1:019f:8373:00:3: sdw_modify_slave_status: initializing enumeration and init completion for Slave 2
[ 7159.722229] kernel: soundwire_intel soundwire_intel.link.1: Slave status change: 0x2
[ 7159.722239] kernel: soundwire sdw-master-1: Slave attached, programming device number
[ 7159.722551] kernel: soundwire sdw-master-1: SDW Slave Addr: 27019f837300
[ 7159.722552] kernel: soundwire sdw-master-1: SDW Slave class_id 0x00, mfg_id 0x019f, part_id 0x8373, unique_id 0x7, version 0x2
[ 7159.722555] kernel: soundwire sdw-master-1: Slave already registered, reusing dev_num:1
[ 7159.722866] kernel: soundwire_intel soundwire_intel.link.1: Msg ignored for Slave 0
[ 7159.722867] kernel: soundwire sdw-master-1: No more devices to enumerate
[ 7159.722901] kernel: soundwire_intel soundwire_intel.link.1: Slave status change: 0x21
[ 7159.722905] kernel: max98373 sdw:1:019f:8373:00:7: sdw_modify_slave_status: signaling enumeration completion for Slave 1
[ 7159.735160] kernel: max98373 sdw:1:019f:8373:00:7: Reset completed (retry:0)
[ 7159.737899] kernel: max98373 sdw:1:019f:8373:00:7: sdw_handle_slave_status: signaling initialization completion for Slave 1

LINK1 Device1 resumed

[ 7159.743729] kernel: soundwire_intel soundwire_intel.link.1: Slave status change: 0x2
[ 7159.743739] kernel: max98373 sdw:1:019f:8373:00:7: sdw_modify_slave_status: initializing enumeration and init completion for Slave 1

LINK1 Device1 not longer ATTACHED!!

[ 7159.743749] kernel: soundwire sdw-master-1: Slave attached, programming device number
[ 7159.743986] kernel: soundwire sdw-master-1: SDW Slave Addr: 23019f837300
[ 7159.743989] kernel: soundwire sdw-master-1: SDW Slave class_id 0x00, mfg_id 0x019f, part_id 0x8373, unique_id 0x3, version 0x2
[ 7159.743993] kernel: soundwire sdw-master-1: Slave already registered, reusing dev_num:2
[ 7159.744343] kernel: soundwire_intel soundwire_intel.link.1: Msg ignored for Slave 0
[ 7159.744346] kernel: soundwire sdw-master-1: No more devices to enumerate

LINK1 All devices enumerated

[ 7159.744525] kernel: soundwire_intel soundwire_intel.link.1: Slave status change: 0x201

LINK DEVICE2 shown as having completed its enumeration

[ 7159.744532] kernel: max98373 sdw:1:019f:8373:00:3: sdw_modify_slave_status: signaling enumeration completion for Slave 2
[ 7159.756896] kernel: max98373 sdw:1:019f:8373:00:3: Reset completed (retry:0)
[ 7159.759562] kernel: max98373 sdw:1:019f:8373:00:3: sdw_handle_slave_status: signaling initialization completion for Slave 2

LINK1 Device2 resumed

[ 7159.892336] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
[ 7159.892496] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
[ 7160.392278] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
[ 7160.392323] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
[ 7162.041548] kernel: ax88179_178a 4-1:1.0 enx000ec66a790d: ax88179 - Link status is: 1
[ 7164.955865] kernel: max98373 sdw:1:019f:8373:00:7: Initialization not complete, timed out
[ 7164.955872] kernel: PM: dpm_run_callback(): acpi_subsys_resume+0x0/0x70 returns -110
[ 7164.955886] kernel: max98373 sdw:1:019f:8373:00:7: PM: failed to resume: error -110

LINK1 Device never showed up again

dmesg.txt

@bardliao @RanderWang @ryans-lee FYI

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    MAX98373Issues with Max98373 codecP2Critical bugs or normal featuresSDWApplies to SoundWire bus for codec connectionTGLApplies to Tiger Lake platformbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions