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

[BUG] Dell TGL-H Machine failed to load sof-tgl-h.ri #2662

Closed
KaiChuan-Hsieh opened this issue Dec 23, 2020 · 20 comments
Closed

[BUG] Dell TGL-H Machine failed to load sof-tgl-h.ri #2662

KaiChuan-Hsieh opened this issue Dec 23, 2020 · 20 comments
Labels
bug Something isn't working TGL Applies to Tiger Lake platform

Comments

@KaiChuan-Hsieh
Copy link

Describe the bug
I got a new Dell hardware. It's CPU information:
lscpu.log

The failed kernel log:
journalctl-k.log

Its acpi device info:
_SB_.PC00.HDAS.SNDW.SWD0
0x000020025d071100
_SB_.PC00.HDAS.SNDW.SWD1
0x000120025d130800
_SB_.PC00.HDAS.SNDW.SWD2
0x000220025d130800
_SB_.PC00.HDAS.SNDW.SWD3
0x000320025d071500

The lspci info:
lspci.log

To Reproduce
To boot into Ubuntu.

Reproduction Rate
100/100

Expected behavior
The machine can load sof firmware successfully and audio works for internal mic/speaker and headest input/output.

Impact
No ALSA card can playback and record audio.

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
    • Kernel: 5.10.0-rc5
    • SOF: current sof-tgl.ri is not workable.
  2. Name of the topology file
    • Topology: sof-tgl-rt711-rt1308-rt715.tplg
  3. Name of the platform(s) on which the bug is observed.
    • Platform: The Dell machine product sku is 0A5E
@mengdonglin mengdonglin changed the title [BUG] Dell Machine failed to load sof-tgl.ri [BUG] Dell TGL-H Machine failed to load sof-tgl.ri Dec 23, 2020
@mengdonglin
Copy link
Collaborator

mengdonglin commented Dec 23, 2020

@KaiChuan-Hsieh This device is using TGL-H silicon, and we already informed OSV that sof-tgl.ri is only for TGL-U silicon. SOF FW binary for TGL-H is not included in SOF upstream release v1.6 or 1.6.1 atm.

@xiulipan
Copy link

@mengdonglin @RanderWang It seems there is also a kernel issue here, already fixed with #2417

From kernel log, sof driver wants to load wrong FW binary here.
十二 23 14:11:06 u-Precision-5760 kernel: sof-audio-pci 0000:00:1f.3: request_firmware intel/sof/sof-tgl.ri successful

We need to check if the fix #2417 is now merge into upstream.

PS: @KaiChuan-Hsieh where is this 5.10.0-1008-oem kernel comes from?

@KaiChuan-Hsieh
Copy link
Author

@xiulipan

The 5.10.0-1008-oem repository is https://code.launchpad.net/~canonical-kernel/ubuntu/+source/linux-oem/+git/focal/+ref/oem-5.10-next

The kernel works ok for #2544
May I ask if #2417 is required, then we have to backport it to our oem kernel?

Thanks,

@xiulipan
Copy link

@KaiChuan-Hsieh I think it should be a must to support TGL-H platforms with PCI ID 0x43c8.
Now it is already unstreamed with torvalds@30ee373
And I do see the patch in https://github.com/torvalds/linux/blob/v5.10/sound/soc/sof/sof-pci-dev.c
So I think maybe some sync up is needed for the oem-5.10 with the upstream 5.10

@xiulipan
Copy link

@KaiChuan-Hsieh Interesting, I also see the patch with https://git.launchpad.net/~canonical-kernel/ubuntu/+source/linux-oem/+git/focal/tree/sound/soc/sof/sof-pci-dev.c?h=oem-5.10-next

@libinyang If this is a issue like #2657 that we use the fw name from ACPI table?

@KaiChuan-Hsieh
Copy link
Author

KaiChuan-Hsieh commented Dec 25, 2020

@xiulipan yes, but it doesn't try to load sof-tgl-h.ri which is not as what you expect, right? I have to check if we did add pci device id correctly.

I think the sof-tgl.ri name is from ACPI table as you think, I'll try sof-dev kernel once a workable sof-tgl-h.ri is ready.

Thanks for your notification.

@xiulipan
Copy link

@KaiChuan-Hsieh Please try with thesofproject/sof#2657, sof-dev is also missing the fix.
It seems we also recently face similar issue @libinyang could you confirm?

@libinyang
Copy link

@KaiChuan-Hsieh We have two patches for tgl-h. Could you please have a try? #2650 and #2657

@KaiChuan-Hsieh
Copy link
Author

@libinyang

sure, but I don't have a workable sof-tgl-h.ri for TGL-H, or it will be okay by loading sof-tgl.ri with these patches?

@libinyang
Copy link

@KaiChuan-Hsieh I'm not sure it is OK to load sof-tgl.ri. After applying the 2 patches, sof-tgl.ri should be renamed to sof-tgl-h.ri.

@KaiChuan-Hsieh
Copy link
Author

KaiChuan-Hsieh commented Dec 25, 2020

@libinyang yes, that's the point, I don't have sof-tgl-h.ri in hand. or you just want to see the kernel log, that the path can be correct.

@libinyang
Copy link

@KaiChuan-Hsieh I think we can wait for the fw release and have the test.

@KaiChuan-Hsieh KaiChuan-Hsieh changed the title [BUG] Dell TGL-H Machine failed to load sof-tgl.ri [BUG] Dell TGL-H Machine failed to load sof-tgl-h.ri Dec 25, 2020
@KaiChuan-Hsieh
Copy link
Author

KaiChuan-Hsieh commented Dec 28, 2020

@libinyang I found that I have to add "options snd-intel-dspcfg dsp_driver=3" for probing the device with correct driver.
I think the dspconfig table should be updated for the Multimedia audio device 8086:43c8 for using a correct driver to probe the device.

@xiulipan
Copy link

@KaiChuan-Hsieh Thanks for reporting the issue with snd-intel-dspcfg could you also report another issue for this if we would like to let PCI 8086:43c8 to load SOF by default

@KaiChuan-Hsieh
Copy link
Author

@xiulipan Sure, here is the bug, https://github.com/thesofproject/sof/issues/3720.

@xiulipan
Copy link

@KaiChuan-Hsieh Thanks! I will also move this issue to linux as we had fix in driver now.

@xiulipan xiulipan transferred this issue from thesofproject/sof Dec 29, 2020
@xiulipan xiulipan added bug Something isn't working TGL Applies to Tiger Lake platform labels Dec 29, 2020
@KaiChuan-Hsieh
Copy link
Author

@xiulipan Hello, you want to move this to linux, which means the sof-tgl-h.ri is available, but I still can't find a workable sof-tgl-h.ri, I try to build it from sof project but it seems the driver can't load successfully. Here is the log when loading the fw:
load-fw-failed.log, the full kernel log with dsp_driver=3:
tgl-h-soundwire.log

I guess the signature maybe not correct, if you have a workable sof-tgl-h.ri in hand, can you share with me?

Thanks,

@xiulipan
Copy link

@KaiChuan-Hsieh We will try to have some hotfix to https://github.com/thesofproject/sof-bin for sof-tgl-h.ri please check later.

@KaiChuan-Hsieh
Copy link
Author

@xiulipan I didn't see the hotfix of sof-tgl-h.ri, will it be released this week?

@mengdonglin
Copy link
Collaborator

@KaiChuan-Hsieh Please test SOF v1.6.1 engineering drop for TGL-H. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working TGL Applies to Tiger Lake platform
Projects
None yet
Development

No branches or pull requests

4 participants