Skip to content

[BUG] [TGL] HDA controller reset fails in reboot tests #3633

Closed

Description

@sathya-nujella

[Bug cloned from]
thesofproject/linux#2571

DUT: TGL Chrome DUT with Max98373_RT5682 I2S
BIOS: Coreboot

Issue:
Sound card creation failed.

TEST SCENARIO:
Random scenarios.
one such scenario is:
Boot DUT -> mount file system -> reboot few times to see error.

More details:
ISSUE REPRODUCED WITH:
SOF branch: tgl-011-drop-stable top commit: 27aab4f

After reverting the below patch, issue is not seen in 100 reboot cycles (need to continue further tests):
tgl: enable WOVCRO clock
Reverted the patch: 75561a9

Activity

  1. added
    bugSomething isn't working as expected
    P1Blocker bugs or important features
    TGLApplies to Tiger Lake
    on Nov 22, 2020
  2. kv2019i commented on Nov 22, 2020

    @kv2019i
    Collaborator

    Hit on Ubuntu Linux device as well. FW 010-hotfix.

    @abonislawski Would it be possible to change to a higher clock whenever DSP is stopped? It would seem that if clock is left at WOVCRO and system is reset, HDA controller will not come out of reset anymore (with high repro rate).

  3. keqiaozhang commented on Nov 23, 2020

    @keqiaozhang
    Collaborator

    we also observed this issue when testing sof-011-drop-stable branch, I tried to test more on TGL-RVP-HDA this morning and found that the reproduction rate is about 30%。

  4. mwasko commented on Nov 23, 2020

    @mwasko
    Contributor

    Is the FW even loaded when this reboot issue occurs?

  5. mengdonglin commented on Nov 23, 2020

    @mengdonglin
    Collaborator

    Thank you @kv2019i and @keqiaozhang

    @abonislawski @mwasko Please note this issue can also be reproduced on branch tgl-010-drop-stable and tgl-010-hot-fix-1, it's not a branch specific issue for tgl-011-drop-stable

  6. lgirdwood commented on Nov 23, 2020

    @lgirdwood
    Member

    @sathya-nujella @kv2019i I assume FW with reverted 75561a9 has booted at least once (without a power OFF - due to the reproduction rates) during your testing.
    @mwasko it does seem that FW is booting, but I wonder if weed to force the clock in our FW D3 code to be sure (since it looks like the clock setting may survive a DSP D3).

  7. abonislawski commented on Nov 23, 2020

    @abonislawski
    Member

    @kv2019i @lgirdwood do you think disabling wovcro in ipc_pm_context_save() (pm_prepare_D3) would be a good idea to test?
    EDIT: but we already did on wakeup

  8. lgirdwood commented on Nov 23, 2020

    @lgirdwood
    Member

    @kv2019i @lgirdwood do you think disabling wovcro in ipc_pm_context_save() (pm_prepare_D3) would be a good idea to test?
    EDIT: but we already did on wakeup

    @abonislawski it's probably worth trying (and remember any delay).

  9. kv2019i commented on Nov 23, 2020

    @kv2019i
    Collaborator

    @lgirdwood wrote:

    @sathya-nujella @kv2019i I assume FW with reverted 75561a9 has booted at least once (without a power OFF - due to the reproduction rates) during your testing.

    Correct. DSP is loaded at least once, and then a sw-reset (system reboot) is performed.

  10. mengdonglin commented on Nov 24, 2020

    @mengdonglin
    Collaborator

    Link the original PR to enable WOVCRO clock of @abonislawski that is under review: #3418

  11. keqiaozhang commented on Nov 24, 2020

    @keqiaozhang
    Collaborator

    This issue cannot be reproduced with cold reboot(power-cycle), only happens with warm reboot.

  12. keyonjie commented on Nov 24, 2020

    @keyonjie
    Contributor

    This issue cannot be reproduced with cold reboot(power-cycle), only happens with warm reboot.

    Thanks, this is useful information. @kv2019i you are right, it is reproduced with the sw-reset only and it explains now.

  13. mengdonglin commented on Nov 24, 2020

    @mengdonglin
    Collaborator

    PR #3641 is trying to fix this blocker issue before an official BIOS fix for WOVCRO clock is available. Will perform stress test on this PR #3641

  14. mengdonglin commented on Nov 25, 2020

    @mengdonglin
    Collaborator

    @keyonjie also submitted an extra kernel fix thesofproject/linux#2581, which sets DSP back to D0 before reboot if it is at D0i3, to fix the boot fail issue at the consequent rebooting.

  15. abonislawski commented on Nov 25, 2020

    @abonislawski
    Member

    @keyonjie @mengdonglin is PR #3641 still needed? Looks like this kernel fix will prevent from boot fail (forced hpro before reboot) and we can fully use wovcro as previously, is that right?

  16. keyonjie commented on Nov 26, 2020

    @keyonjie
    Contributor

    @keyonjie @mengdonglin is PR #3641 still needed? Looks like this kernel fix will prevent from boot fail (forced hpro before reboot) and we can fully use wovcro as previously, is that right?

    @abonislawski as the IP owner mentioned, it is recommend to use WOVCRO for WoV only, or even for WoV in S0Ix only, so I would suggest to keep PR #3641 also.

  17. slawblauciak commented on Feb 26, 2021

    @slawblauciak
    Collaborator

    @sathya-nujella is the issue still reproducible on the latest tgl-011-drop-stable branch?

  18. sathya-nujella commented on Feb 26, 2021

    @sathya-nujella
    ContributorAuthor

    @sathya-nujella is the issue still reproducible on the latest tgl-011-drop-stable branch?

    Hi @slawblauciak ,

    we have taken this PR : inux/pull/2581 to chrome kernel. With this we don't have issue [Issue is not reported in past 3~4 BKC cycles].

    If kernel does not have the change, even with latest tgl-011 branch: issue is reproducible if reboot happens with wov stream open.

  19. keyonjie commented on Mar 1, 2021

    @keyonjie
    Contributor

    yes, @slawblauciak @sathya-nujella the fixes are already merged to mainline kernel, let's close the issue. @sathya-nujella please reopen it if needed.

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

    P1Blocker bugs or important featuresTGLApplies to Tiger LakebugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions