Skip to content

[BUG] FW boot failure with SOF main when trace mailbox CONFIG_TRACEM is enabled #4699

Closed

Description

@ranj063

Describe the bug
FW fails to boot when built with trace mailbox enabled.

What have you tried to diagnose or workaround this issue?
Bisection points to 7df3674
Reverting the commit fixes the problem.

To Reproduce
Build FW with Trace->Trace Mailbox enabled in config

Reproduction Rate
100%

Expected behavior
No issues during FW boot.

Impact
show-stopper

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).

Error log:
[ 8.414944] sof-audio-pci-intel-tgl 0000:00:1f.3: error: firmware boot failure
[ 8.414988] sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ DSP dump start ]------------
[ 8.415028] sof-audio-pci-intel-tgl 0000:00:1f.3: status: fw entered - code 00000005
[ 8.415098] sof-audio-pci-intel-tgl 0000:00:1f.3: error: extended rom status: 0x5 0x0 0x4000 0x0 0x0 0x0 0x256051f 0x0
[ 8.415138] sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ DSP dump end ]------------
[ 8.415169] sof-audio-pci-intel-tgl 0000:00:1f.3: error: failed to boot DSP firmware -5

Activity

  1. added
    bugSomething isn't working as expected
    P1Blocker bugs or important features
    ADLApplies to Alder Lake platform
    on Aug 31, 2021
  2. ranj063 commented on Aug 31, 2021

    @ranj063
    CollaboratorAuthor
  3. self-assigned this
    on Aug 31, 2021
  4. keyonjie commented on Aug 31, 2021

    @keyonjie
    Contributor

    Thanks for reporting @ranj063

    After debugging, just root caused this to be deadlock in the trace->lock, will submit a fix for it soon.

    Good finding here, maybe we should add Not-default kconfig validation coverage to our CI also. @marc-hb @keqiaozhang

  5. keyonjie commented on Aug 31, 2021

    @keyonjie
    Contributor

    @ranj063 the PR here: #4700

  6. changed the title [-][BUG] FW boot failure with SOF main when trace mailbox is enabled[/-] [+][BUG] FW boot failure with SOF main when trace mailbox CONFIG_TRACEM is enabled[/+] on Sep 14, 2021
  7. marc-hb commented on Sep 14, 2021

    @marc-hb
    Collaborator

    Simpler fix at #4760 (two reverts + 1 line change)

  8. marc-hb commented on Sep 14, 2021

    @marc-hb
    Collaborator

    Good finding here, maybe we should add Not-default kconfig validation coverage to our CI also. @marc-hb @keqiaozhang

    CONFIG_TRACEM is likely to have a severe performance impact.

  9. marc-hb commented on Sep 14, 2021

    @marc-hb
    Collaborator

    BTW I rely on CONFIG_TRACEM for my transition to Zephyr "strategy", see (now reverted) commit 0def905

  10. added a commit that references this issue on Sep 15, 2021
    f2c13f5
  11. added a commit that references this issue on Sep 21, 2021
    207c20f
  12. added a commit that references this issue on Nov 2, 2021
    5dd268e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ADLApplies to Alder Lake platformP1Blocker bugs or important featuresbugSomething 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