Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Lenovo] Update with Meteorlake support not working on (proto system) ROM status: 0xd000000c, ROM error: 0x97 #8281

Closed
mrhpearson opened this issue Oct 2, 2023 · 14 comments
Assignees
Labels
Boot Firmware boot or code signing related. bug Something isn't working as expected MTL Applies to Meteor Lake platform P1 Blocker bugs or important features rimage Issues related to rimage ROM error 0x97 FW boot failure with ROM debug error 0x97

Comments

@mrhpearson
Copy link

mrhpearson commented Oct 2, 2023

Describe the bug
We've got our hands on early MTL HW and are working on bringing up Linux.
Audio wasn't working. Now with the newer sof-bin release adding support available, we tried that - but get the following error message.

I'm limited in what information I can share on this platform on a public forum (as it's not released yet), so if needed please ping me by email (mpearson-lenovo at squebb . ca is best, but markpearson,lenovo,com works if a Lenovo email is preferred).

[    4.857331] sof-audio-pci-intel-mtl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[    4.857798] sof-audio-pci-intel-mtl 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[    4.858250] sof-audio-pci-intel-mtl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040380
[   66.901114] sof-audio-pci-intel-mtl 0000:00:1f.3: couldn't bind with audio component
[   66.901196] sof-audio-pci-intel-mtl 0000:00:1f.3: init of i915 and HDMI codec failed
[   66.903098] sof-audio-pci-intel-mtl 0000:00:1f.3: use msi interrupt mode
[   66.939494] sof-audio-pci-intel-mtl 0000:00:1f.3: hda codecs found, mask 1
[   66.939498] sof-audio-pci-intel-mtl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[   66.939502] sof-audio-pci-intel-mtl 0000:00:1f.3: DMICs detected in NHLT tables: 2
[   66.945277] sof-audio-pci-intel-mtl 0000:00:1f.3: Loaded firmware library: ADSPFW, version: 2.7.0.1
[   69.948767] sof-audio-pci-intel-mtl 0000:00:1f.3: hda_cl_copy_fw: timeout with rom_status_reg (0x180000) read
[   69.948779] sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ DSP dump start ]------------
[   69.948781] sof-audio-pci-intel-mtl 0000:00:1f.3: Firmware download failed
[   69.948783] sof-audio-pci-intel-mtl 0000:00:1f.3: fw_state: SOF_FW_BOOT_IN_PROGRESS (3)
[   69.948790] sof-audio-pci-intel-mtl 0000:00:1f.3: ROM status: 0xffffffff, ROM error: 0xffffffff
[   69.948791] sof-audio-pci-intel-mtl 0000:00:1f.3: ROM debug status: 0xd000000c, ROM debug error: 0x97
[   69.948798] sof-audio-pci-intel-mtl 0000:00:1f.3: ROM feature bit enabled
[   69.948799] sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ DSP dump end ]------------
[   69.948811] sof-audio-pci-intel-mtl 0000:00:1f.3: Failed to start DSP
[   69.948812] sof-audio-pci-intel-mtl 0000:00:1f.3: error: failed to boot DSP firmware -110
[   69.953196] sof-audio-pci-intel-mtl 0000:00:1f.3: error: sof_probe_work failed err: -110

To Reproduce
Boot System

Reproduction Rate
100%

Expected behavior
working audio :)

Impact
showstopper

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
    • Kernel: fedora 38 6.5.5
    • SOF: {SHA}
  2. Name of the topology file
    • Topology: {FILE}
  3. Name of the platform(s) on which the bug is observed.
    • Platform: < :) >
@mrhpearson mrhpearson added the bug Something isn't working as expected label Oct 2, 2023
@abonislawski
Copy link
Member

Now with the newer sof-bin release adding support available

This build is prepared for production platforms.

@lgirdwood lgirdwood added the P1 Blocker bugs or important features label Oct 3, 2023
@lgirdwood
Copy link
Member

@mrhpearson thanks, let me check - its sounds like the Fedora kernel could be missing a patch if FW loading is failing. There also seems to be an issue with HDMI too.

@kv2019i
Copy link
Collaborator

kv2019i commented Oct 3, 2023

@mrhpearson So indeed, this looks like you'd need a differently signed binary for this proto system. For display codec, with current vanilla upstream kernel, you need still need to use the "force_probe" i915 module option. With that display audio should work as well.

@marc-hb
Copy link
Collaborator

marc-hb commented Oct 4, 2023

So indeed, this looks like you'd need a differently signed binary for this proto system.

https://thesofproject.github.io/latest/getting_started/intel_debug/introduction.html#firmware-binary

Maybe ROM debug error: 0x97 means something but I don't know what.

EDIT: some cases/platforms can be configured to accept more than one key e.g. production and development. I've seen that working once.

@mengdonglin mengdonglin added Boot Firmware boot or code signing related. MTL Applies to Meteor Lake platform ROM error 0x97 FW boot failure with ROM debug error 0x97 labels Oct 22, 2023
@mengdonglin mengdonglin changed the title [Lenovo] Update with Meteorlake support not working on (proto system) [Lenovo] Update with Meteorlake support not working on (proto system) ROM status: 0xd000000c, ROM error: 0x97 Oct 22, 2023
@mengdonglin
Copy link
Collaborator

mengdonglin commented Oct 22, 2023

@mrhpearson @lgirdwood @kv2019i @marc-hb
For this FW boot failure [ 69.948791] sof-audio-pci-intel-mtl 0000:00:1f.3: ROM debug status: 0xd000000c, ROM debug error: 0x97
We observed the same issue on another proto device. And @tmleman confirmed this is key verification error.

Debug status: 0x0C -> FSR_ROM_VALIDATE_PUB_KEY
Debug error: 0x97 -> ADSP_MANIFEST_KEY_NOT_REGISTERED // Manifest key does not match any registered.

Error is reported by the rom_ext during public key verification.

@lgirdwood
Copy link
Member

This is now a v2.7.1 blocker issue.

@abonislawski abonislawski self-assigned this Oct 27, 2023
@abonislawski
Copy link
Member

Fixed now on stable-v2.7 and v2.7.1 tag

@marc-hb
Copy link
Collaborator

marc-hb commented Oct 27, 2023

Fixed now on stable-v2.7 and v2.7.1 tag

More precisely b028b2d

Nothing on the main branch yet.

@marc-hb
Copy link
Collaborator

marc-hb commented Oct 30, 2023

More precisely b028b2d

Nothing on the main branch yet.

Now cherry-picked to the main branch:

@lgirdwood
Copy link
Member

More precisely b028b2d

Nothing on the main branch yet.

Now cherry-picked to the main branch:

Now merged in main. @mrhpearson v2.7.2 coming soon.

@kv2019i
Copy link
Collaborator

kv2019i commented Oct 31, 2023

@lgirdwood wrote:

Now merged in main. @mrhpearson v2.7.2 coming soon.

Quick correction, @mrhpearson the fix is already in the tagged v2.7.1. Only missing thing is the signed binary and I'll upload a PR to sof-bin as soon as all process steps are done (community signed binaries already uploaded -> thesofproject/sof-bin#151 ).

If there's any hickup with 2.7.1, we'll do a 2.7.2 if needed before we tag sof-bin-2023.09.1 and release that to distros.

@keqiaozhang
Copy link
Collaborator

The fix #8421 merged in stable-v2.7.

@keqiaozhang
Copy link
Collaborator

@mrhpearson
Copy link
Author

Thanks - we're testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Boot Firmware boot or code signing related. bug Something isn't working as expected MTL Applies to Meteor Lake platform P1 Blocker bugs or important features rimage Issues related to rimage ROM error 0x97 FW boot failure with ROM debug error 0x97
Projects
None yet
Development

No branches or pull requests

7 participants