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
@plbossart How did you reproduce this issue? I ran the check-kmod-load-unload-after-playback.sh test on sh-adlp-rvp-sdw-01, but can't reproduce it with latest topic/sof-dev branch or the 43dce32 commit.
I scanned the test result database, it happened 3 times with only PR test(7512 7513 4325), not with daily test yet.
Each failure with different device. I can notice all 3 was failed on aplay with PCM 31, deep buffer. I will keep watching and try to reproduce it also.
I'm able to reproduce the problem with sof pr7512 build(PR7512-6508), kernel hash is ff28862.
Let me try same test with sof main again, I tested it before but not stress tested.
pm_runtime_set_active(&slave->dev); in rt711_io_init may be called before pm_request_resume(&slave->dev); in sdw_handle_slave_status. And we will see the runtime PM trying to activate child device sdw:0:025d:0711:00 but parent (sdw-master-0) is not active error when it happens. @shumingfan FYI
Activity
plbossart commentedon Apr 25, 2023
Also seen in https://sof-ci.01.org/sofpr/PR7513/build6451/devicetest/index.html?model=ADLP_RVP_SDW_IPC4ZPH&testcase=check-kmod-load-unload-after-playback
This is not a random case if there are two instances. @bardliao FYI, not sure what caused this?
plbossart commentedon Apr 25, 2023
Kernel commit 43dce32 shows that issue, not sure if this was seen earlier than April 24.
plbossart commentedon Apr 25, 2023
not able to reproduce the issue on the same device with kernel commit ff28862
@keqiaozhang @fredoh9 please monitor if you see more sightings of this pm_runtime issue.
bardliao commentedon Apr 26, 2023
I will take a look.
bardliao commentedon Apr 26, 2023
@plbossart How did you reproduce this issue? I ran the check-kmod-load-unload-after-playback.sh test on sh-adlp-rvp-sdw-01, but can't reproduce it with latest topic/sof-dev branch or the 43dce32 commit.
plbossart commentedon Apr 26, 2023
I cannot reproduce the error either @bardliao, and the error disappears if we run the test twice with the same PR #4325
Not sure what happened, we'll probably have to wait to see if this occurs again and try to reproduce.
fredoh9 commentedon Apr 26, 2023
I scanned the test result database, it happened 3 times with only PR test(7512 7513 4325), not with daily test yet.
Each failure with different device. I can notice all 3 was failed on aplay with PCM 31, deep buffer. I will keep watching and try to reproduce it also.
fredoh9 commentedon Apr 26, 2023
I'm able to reproduce the problem with sof pr7512 build(PR7512-6508), kernel hash is ff28862.
Let me try same test with sof main again, I tested it before but not stress tested.
fredoh9 commentedon Apr 26, 2023
yes, I can reproduce the problem with topic/sof-dev(ff28862) and sof main (0c7db9a58ea6).
first skip HDMI pipelines and do more iterations(-l 10). With this command it fails in 10-15 min.
bardliao commentedon Apr 28, 2023
@fredoh9 I still can't reproduce the issue even with -l 20.
kv2019i commentedon Apr 28, 2023
Seen in https://sof-ci.01.org/sofpr/PR7330/build6485/devicetest/index.html
bardliao commentedon Apr 28, 2023
hmm, it is a different test case. And it seems the issue only happens on the PR test, not daily test?
ranj063 commentedon Apr 28, 2023
@bardliao the issue is hard to repruduce and has been seen with multiple PR tests
bardliao commentedon May 3, 2023
@plbossart With #4334, I got below dmesg.
dmesg_adl_runtime_pm_err.txt
Looking at the log, I think I got the issue now.
Please see below calling sequence.
sdw_handle_slave_status
-> sdw_update_slave_status
-> rt711_update_status
-> rt711_io_init
-> pm_runtime_set_active
-> pm_request_resume(&slave->dev);
pm_runtime_set_active(&slave->dev); in rt711_io_init may be called before pm_request_resume(&slave->dev); in sdw_handle_slave_status. And we will see the
runtime PM trying to activate child device sdw:0:025d:0711:00 but parent (sdw-master-0) is not activeerror when it happens. @shumingfan FYI59 remaining items
ASoC: rt711: enable pm_runtime in probe, keep status as 'suspended'
ASoC: rt711-sdca: enable pm_runtime in probe, keep status as 'suspended'
soundwire: intel_auxdevice: enable pm_runtime earlier on startup
soundWire: intel_auxdevice: resume 'sdw-master' on startup and system…
ASoC: rt711: enable pm_runtime in probe, keep status as 'suspended'
ASoC: rt711-sdca: enable pm_runtime in probe, keep status as 'suspended'
soundwire: intel_auxdevice: enable pm_runtime earlier on startup
soundWire: intel_auxdevice: resume 'sdw-master' on startup and system…
ASoC: rt711: enable pm_runtime in probe, keep status as 'suspended'
ASoC: rt711-sdca: enable pm_runtime in probe, keep status as 'suspended'
soundwire: intel_auxdevice: enable pm_runtime earlier on startup
soundWire: intel_auxdevice: resume 'sdw-master' on startup and system…
soundwire: intel_auxdevice: enable pm_runtime earlier on startup
soundWire: intel_auxdevice: resume 'sdw-master' on startup and system…
soundwire: intel_auxdevice: enable pm_runtime earlier on startup