Skip to content

can't get any FW error logs once dsp is powered off #724

Closed

Description

@keyonjie

once we power off the Audio DSP (tplg load failed or DSP panic or any other causes that will lead to powering off audio dsp cores), we can't get any error logs from sof-logger, this make debugging to this kind of firmware issues(e.g. ipc time out) very difficult, we need to fix this issue ASAP.

[   56.330869] sof-audio-pci 0000:00:0e.0: error : DSP panic!
[   56.330875] sof-audio-pci 0000:00:0e.0: panic: dsp_oops_offset 788480 offset 788480
[   56.330887] sof-audio-pci 0000:00:0e.0: status: fw entered - code 00000005
root@test-apl:~# sof-logger -l sof-apl.ldc
 CORE  LEVEL      COMP_ID                TIMESTAMP            DELTA                FILE_NAME    CONTENT
root@test-apl:~#

Activity

  1. changed the title [-][regression] can't get any FW trace once dsp panic happened.[/-] [+][regression] can't get any FW trace logs once dsp panic happened.[/+] on Mar 15, 2019
  2. keyonjie commented on Mar 15, 2019

    @keyonjie
    Author

    I believe we have the same issue with topic/sof-dev branch, @ranj063 can you take a look?

  3. ranj063 commented on Mar 15, 2019

    @ranj063
    Collaborator

    @keyonjie is this really a regression? If I remember correctly @dabekjakub confirmed that he can read the exception debugfs entry in case of a panic

  4. xiulipan commented on Mar 15, 2019

    @xiulipan

    @ranj063
    checked and try to reproduce a lot failing cases in CI. Let me give some explanation here and later I will a fix for it and have some test later.

    kconfig for ENABLE_DEBUGFS_CACHE is set.
    Otherwise we can only get more error in demsg

    Situation here:

    1. No error. Every thing is right.
      etrace is empty as expected.
      trace have logs
    2. tplg load error, IPC failed
      etrace is empty, because hda_dsp_core_reset_power_down is called to power memory bank off. memory window is un-readable
      trace is also empty, because of DSP is powered off, no more update can be done to host.
    3. panic happen/check on @keyonjie device
      etrace should have some logs with part of dma traces.
      not sure if the cache handled the memory window cache read rightly.
      trace have some old logs

    @ranj063 could you share the PR that hda_dsp_core_reset_power_down is enabled for fail cases?
    I can see about 5-6 times it is calls when I got some tplg failed.

    I need to check why the power off is done so quick in some fail cases.

  5. ranj063 commented on Mar 15, 2019

    @ranj063
    Collaborator

    @xiulipan DSP is powered off is when topology widgets are unloaded which would be the case when a topology loading error occurs.

  6. ranj063 commented on Mar 15, 2019

    @ranj063
    Collaborator
    ASoC: topology: free created components in tplg load error
    

    This patch takes care of unloading the component when tplg loading fails.

  7. changed the title [-][regression] can't get any FW trace logs once dsp panic happened.[/-] [+]can't get any FW error logs once dsp is powered off[/+] on Apr 30, 2019
  8. added
    P1Blocker bugs or important features
    on Apr 30, 2019
  9. keyonjie commented on Apr 30, 2019

    @keyonjie
    Author

    mark it to P1 as it blocks debugging for critical FW issue.

  10. RanderWang commented on May 8, 2019

    @RanderWang

    I tested on two different Whiskylake today based on latest kernel and FW, and found there is no such issue now. @keyonjie what is your platform ?

  11. RanderWang commented on May 10, 2019

    @RanderWang

    I reproduced it in a corner case. It should be fixed by #888

  12. plbossart commented on Jan 9, 2020

    @plbossart
    Member

    @keyonjie this has been filed 10 months ago, can we close, and what's the status if not?

  13. keyonjie commented on Jan 9, 2020

    @keyonjie
    Author

    @keyonjie this has been filed 10 months ago, can we close, and what's the status if not?

    @plbossart I believe the issue still exist, and nobody has been working on it for this recent half year.

  14. removed
    P1Blocker bugs or important features
    on Jan 9, 2020
  15. keyonjie commented on Jan 9, 2020

    @keyonjie
    Author

    It should not be P1 as it is not so critical to anybody, I think it is only an enhancement now.

  16. lgirdwood commented on Jan 9, 2020

    @lgirdwood
    Member

    @keyonjie we have a kconfig option now to prevent D3 entry on FW crash. i.e. all memories are preserved.

  17. plbossart commented on May 27, 2020

    @plbossart
    Member

    @keyonjie is this still relevant.

  18. plbossart commented on Jun 10, 2021

    @plbossart
    Member

    ping @keyonjie, we need to either close issues or provide updates/status.

  19. keyonjie commented on Jun 11, 2021

    @keyonjie
    Author

    looks the issue is not existed anymore, let me close it.

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions