Skip to content

SoundWire: ADLP_RVP_SDW_IPC4ZPH: pm_runtime error #4328

Closed

Description

@plbossart
[ 1336.726222] kernel: rt711 sdw:0:025d:0711:00: runtime PM trying to activate child device sdw:0:025d:0711:00 but parent (sdw-master-0) is not active

https://sof-ci.01.org/linuxpr/PR4325/build4490/devicetest/index.html?model=ADLP_RVP_SDW_IPC4ZPH&testcase=check-kmod-load-unload-after-playback

dmesg.log

Activity

  1. added
    SDWApplies to SoundWire bus for codec connection
    on Apr 25, 2023
  2. plbossart commented on Apr 25, 2023

    @plbossart
    MemberAuthor

    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?

  3. plbossart commented on Apr 25, 2023

    @plbossart
    MemberAuthor

    Kernel commit 43dce32 shows that issue, not sure if this was seen earlier than April 24.

  4. plbossart commented on Apr 25, 2023

    @plbossart
    MemberAuthor

    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.

  5. bardliao commented on Apr 26, 2023

    @bardliao
    Collaborator

    Kernel commit 43dce32 shows that issue, not sure if this was seen earlier than April 24.

    I will take a look.

  6. bardliao commented on Apr 26, 2023

    @bardliao
    Collaborator

    @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.

  7. plbossart commented on Apr 26, 2023

    @plbossart
    MemberAuthor

    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.

  8. fredoh9 commented on Apr 26, 2023

    @fredoh9
    Collaborator

    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.

  9. fredoh9 commented on Apr 26, 2023

    @fredoh9
    Collaborator

    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.

  10. fredoh9 commented on Apr 26, 2023

    @fredoh9
    Collaborator

    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.

    export NO_HDMI_MODE=true
    TPLG=/lib/firmware/intel/avs-tplg/sof-adl-rt711-4ch.tplg MODEL=ADLP_RVP_SDW_IPC4ZPH ~/sof-test/test-case/check-kmod-load-unload-after-playback.sh -l 10
  11. bardliao commented on Apr 28, 2023

    @bardliao
    Collaborator

    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.

    export NO_HDMI_MODE=true
    TPLG=/lib/firmware/intel/avs-tplg/sof-adl-rt711-4ch.tplg MODEL=ADLP_RVP_SDW_IPC4ZPH ~/sof-test/test-case/check-kmod-load-unload-after-playback.sh -l 10

    @fredoh9 I still can't reproduce the issue even with -l 20.

  12. kv2019i commented on Apr 28, 2023

    @kv2019i
    Collaborator
  13. bardliao commented on Apr 28, 2023

    @bardliao
    Collaborator

    Seen in https://sof-ci.01.org/sofpr/PR7330/build6485/devicetest/index.html

    hmm, it is a different test case. And it seems the issue only happens on the PR test, not daily test?

  14. ranj063 commented on Apr 28, 2023

    @ranj063
    Collaborator

    @bardliao the issue is hard to repruduce and has been seen with multiple PR tests

  15. bardliao commented on May 3, 2023

    @bardliao
    Collaborator

    @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 active error when it happens. @shumingfan FYI

  16. 59 remaining items

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

    SDWApplies to SoundWire bus for codec connection

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions