Skip to content

[BUG][Zephyr][JSL] boot fails on cavs20 platforms #4539

Closed

Description

@kv2019i

Describe the bug
SOF-Zephyr boot fails on cavs20 platforms like JSL.

To Reproduce
Build SOF-on-Zephyr with icl target, boot on DUT.

Reproduction Rate
100% (tested on two separate systems)

Expected behavior
Boot successful.

Impact

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
    • Kernel: 5.13.0-rc5-daily-nocodec-20210616-0 (works with XTOS SOF build)
    • SOF: 4c37668
    • Zephyr: 7a2b248b9804cc59a62b3b7dcdf00f9475ef64e1
  2. Name of the topology file
    • Topology: sof-jsl-nocodec.tplg
  3. Name of the platform(s) on which the bug is observed.
    • Platform: JSL RVP

Screenshots or console output
[ 550.037336] sof-audio-pci-intel-icl 0000:00:1f.3: Firmware download successful, booting...
[ 552.043751] sof-audio-pci-intel-icl 0000:00:1f.3: error: firmware boot failure
[ 552.043797] sof-audio-pci-intel-icl 0000:00:1f.3: status: fw entered - code 00000005
[ 552.043865] sof-audio-pci-intel-icl 0000:00:1f.3: error: extended rom status: 0x5 0x0 0x0 0x0 0x0 0x0 0x2100186 0x0
[ 552.043875] sof-audio-pci-intel-icl 0000:00:1f.3: error: failed to boot DSP firmware -5
[ 552.044410] sof-audio-pci-intel-icl 0000:00:1f.3: FW Poll Status: reg[0x4]=0x1010303 successful

Activity

  1. added
    bugSomething isn't working as expected
    ZephyrIssues only observed with Zephyr integrated
    on Jul 23, 2021
  2. added
    JSLApplies to Jasper Lake platform
    P3Low-impact bugs or features
    on Jul 25, 2021
  3. added this to the v2.1 milestone on Feb 9, 2022
  4. added
    P1Blocker bugs or important features
    and removed
    P3Low-impact bugs or features
    on Feb 15, 2022
  5. lgirdwood commented on Feb 15, 2022

    @lgirdwood
    Member

    @kv2019i @lyakh who has JSL or cavs20 platform.

  6. kv2019i commented on Feb 15, 2022

    @kv2019i
    CollaboratorAuthor

    @lgirdwood I think only me. There's UP board with JSL, making this is a bit hard target to support for community release.

  7. kv2019i commented on Feb 18, 2022

    @kv2019i
    CollaboratorAuthor

    Did a quick test with latest SOF&Zephyr and boot is still failing. FW download is successful (auth is ok), but boot fails to a timeout. Something goes wrong in the early Zephyr boot process.

  8. kv2019i commented on Mar 9, 2022

    @kv2019i
    CollaboratorAuthor

    Reproduce the issue with plain Zephyr:

    INFO:cavs-fw:Mapped PCI bar 0 of length 16384 bytes.
    INFO:cavs-fw:Selected output stream 7 (GCAP = 0x1006701)
    INFO:cavs-fw:Mapped PCI bar 4 of length 1048576 bytes.
    INFO:cavs-fw:Detected cAVS 1.8+ hardware
    INFO:cavs-fw:Trimming 16 bytes of extended manifest
    INFO:cavs-fw:Resetting HDA device
    INFO:cavs-fw:Powering down DSP cores
    INFO:cavs-fw:Configuring HDA stream 7 to transfer firmware image
    INFO:cavs-fw:Mapped 2M huge page at 0x162e00000 to contain 65536 bytes of firmware
    INFO:cavs-fw:Filled the buffer descriptor list (BDL) for DMA.
    INFO:cavs-fw:Starting DSP, ADSPCS = 0x303
    INFO:cavs-fw:Wait for ROM startup
    INFO:cavs-fw:Sending IPC command, HIPIDR = 0x81004000
    INFO:cavs-fw:Starting DMA, FW_STATUS = 0x5000001
    INFO:cavs-fw:Waiting for firmware handoff, FW_STATUS = 0x5000001
    WARNING:cavs-fw:Load failed?  FW_STATUS = 0x0
    INFO:cavs-fw:cAVS firmware load complete
    
  9. lgirdwood commented on Mar 9, 2022

    @lgirdwood
    Member

    @kv2019i is trace point enabled in Zephyr or can mailbox be used to write IDs before each init code action (like tracepoint).

  10. kv2019i commented on Mar 9, 2022

    @kv2019i
    CollaboratorAuthor

    I found some errors in the SRAM bank configuration, but still not booting. I'm trying to use mailbox to get some debug out, but so far no clues. Will continue debug today.
    UPDATE: booting now, issue is with SRAM bank configuration. This will require patches on both Zephyr and SOF

  11. lgirdwood commented on Mar 9, 2022

    @lgirdwood
    Member

    @andyross fyi - fixes incoming for HPSRAM.

  12. lgirdwood commented on Mar 10, 2022

    @lgirdwood
    Member

    @kv2019i how should we deploy this for rc1 ?

  13. kv2019i commented on Mar 10, 2022

    @kv2019i
    CollaboratorAuthor

    @lgirdwood The Zephyr change was merged a few moments ago, so we can tag that for the to-be-created Zephyr sof-v2.1-stable branch.

  14. kv2019i commented on Mar 14, 2022

    @kv2019i
    CollaboratorAuthor

    Fixed now in main, closing this.

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

Metadata

Metadata

Assignees

Labels

JSLApplies to Jasper Lake platformP1Blocker bugs or important featuresZephyrIssues only observed with Zephyr integratedbugSomething isn't working as expected

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions