You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] [ICL] SOF codec#0 probe fails on Acer Switch SF314-57G #1807
What is the expected behaviour, if the DSP has own (vendor) authentication key? Basically, how we can determine the right firmware for the given DSP in the generic Linux distribution? We need detect this automatically somehow. Can DSP give any hints to the driver before the fw upload?
All platforms use the firmware signed with the production Intel key.
The exceptions are: Up2 and GLK+ chromebooks which are signed with the community key.
I am not aware of OEMs signing the base firmware, only extensions which are currently not supported by SOF.
we cannot query the key used, that's unfortunate but that's the reality. When the firmware is provided through linux-firmware, I'll add a quirk for these exceptions to point to the firmware signed with the community key.
I have been able to use the signed firmware on Acer devices since 1.3
In this case, I would think it's a kernel issue (either a missing patch or a bad commit from Intel).
The first error appears related to the HDaudio codec (or hdmi), can you check what happens if you select the FORCE_NOCODEC mode and use a nocodec topology? That would remove dependencies on the codecs and check if the firmware load works or not. sof-cnl-nocodec.tplg.gz
@perexg another point to verify is the PCI ID of the device. We recently split CFL, CNL and CML firmwares instead of using sof-cnl.ri across the board due to additional firmware manifest/signature differences. If you are using the CNL file on CML, it's likely not going to work.
IIRC correctly CFL and CNL are still identical, but CML has a different manifest. @jajanusz please correct me if I am wrong.
changed the title [-][BUG] Cannot load firmware on Acer Switch SF314-57G[/-][+][BUG] [ICL] Cannot load firmware on Acer Switch SF314-57G[/+]on Nov 25, 2019
@perexg can you please with the file attached (to be copied as /lib/firmware/intel/sof/sof-icl.ri)
I'd like to verify this is solved with the upcoming release, and if not to figure out the issue.
@omg The updated binaries (CNL and ICL) for SOF 1.4.1 release are available for download. Could you test them and report if issue can be closed ? Thank you.
Sadly, no luck -- I tried the Hdmi.conf from upstream, reverted my default.pa change, removed my ~/.config/pulse, and rebooted to be safe, but I get dummy output and no input.
Thank you @ltune , @RiderALT , @perexg and @samkline for reporting and helping with the debug. If there are new issues, please open a new bug and let's track any new issues separately.
That's good news. It may be good to add here which kernel version will contain the patch, once it is released, so I can load the corresponding Ubuntu kernel and have the internal microphone working🙂
That's good news. It may be good to add here which kernel version will contain the patch, once it is released, so I can load the corresponding Ubuntu kernel and have the internal microphone working🙂
It's currently queued for 5.8, so will be in 5.8.0. It may get backported to older stable kernels, and/or Ubuntu kernel package, so you probably don't have to wait that long.
I already apply this patch (commit 89d73cc) for my local build of the kernel 5.7.0 and it works great on my Acer SF314-57 without any additional setting (like kernel module options or pulseaudio settings).
The only problem I discovered with 5.7.0 on this machine is 3 HDMI audio outputs in pulseaudio but one HDMI and one thunderbolt output in hardware.i attached Alsa-info output to save a history. alsa-info.txt.gz
I already apply this patch (commit 89d73cc) for my local build of the kernel 5.7.0 and it works great on my Acer SF314-57 without any additional setting (like kernel module options or pulseaudio
That's good to hear, thanks for testing!
The only problem I discovered with 5.7.0 on this machine is 3 HDMI audio outputs in pulseaudio but one HDMI and one thunderbolt output in hardware.i attached Alsa-info output to save a history.
This is to be expected. This hardware supports up to 3 concurrent HDMI/DP audio streams. On most systems like this, you can connect upto 3 monitors to the USB-C/thunderbolt port (using DP-MST), plus one to the HDMI connector. Pulseaudio should show which of the three ALSA HDMI PCMs has a connected monitor (in your alsa-info it shows no monitors w/ audio capability connected).
Activity
plbossart commentedon Nov 22, 2019
@perexg thanks for bringing our attention on this
The executive summary is:
All platforms use the firmware signed with the production Intel key.
The exceptions are: Up2 and GLK+ chromebooks which are signed with the community key.
I am not aware of OEMs signing the base firmware, only extensions which are currently not supported by SOF.
we cannot query the key used, that's unfortunate but that's the reality. When the firmware is provided through linux-firmware, I'll add a quirk for these exceptions to point to the firmware signed with the community key.
I have been able to use the signed firmware on Acer devices since 1.3
In this case, I would think it's a kernel issue (either a missing patch or a bad commit from Intel).
can you share the git tree used?
perexg commentedon Nov 22, 2019
Yep, its 5.4-rc8 with extra backports from 5.5: https://github.com/perexg/linux/tree/perex/fedora-test
plbossart commentedon Nov 22, 2019
Could you try removing all S0ix patches, e.g. starting with c13c962
That series seems to introduce problems and there is on-going work to fix it.
Edit: actually trying plain vanilla 5.4-rc8 would be even better, just to make sure there's a reference to bisect from.
perexg commentedon Nov 22, 2019
Per this kernel log, I don't think that fw is active, it appears like that the upload fails. The PM is not active (I think) in this case.
plbossart commentedon Nov 22, 2019
The first error appears related to the HDaudio codec (or hdmi), can you check what happens if you select the FORCE_NOCODEC mode and use a nocodec topology? That would remove dependencies on the codecs and check if the firmware load works or not.
sof-cnl-nocodec.tplg.gz
plbossart commentedon Nov 23, 2019
@perexg another point to verify is the PCI ID of the device. We recently split CFL, CNL and CML firmwares instead of using sof-cnl.ri across the board due to additional firmware manifest/signature differences. If you are using the CNL file on CML, it's likely not going to work.
IIRC correctly CFL and CNL are still identical, but CML has a different manifest. @jajanusz please correct me if I am wrong.
perexg commentedon Nov 23, 2019
The complete alsa-info output is in the Fedora bugzilla (URL provided in the bug description):
lgirdwood commentedon Nov 23, 2019
@perexg I've tagged v1.4.1, @lbetlej can you sign.
plbossart commentedon Nov 25, 2019
@perexg @lgirdwood PCI ID 34c8 is IceLake so that's a new one.
[-][BUG] Cannot load firmware on Acer Switch SF314-57G[/-][+][BUG] [ICL] Cannot load firmware on Acer Switch SF314-57G[/+]plbossart commentedon Nov 25, 2019
@perexg can you please with the file attached (to be copied as /lib/firmware/intel/sof/sof-icl.ri)
I'd like to verify this is solved with the upcoming release, and if not to figure out the issue.
sof-icl-signed.ri.gz
perexg commentedon Nov 25, 2019
I am just a "proxy" for this from the Fedora's bugzilla. I redirected the user here, so hopefully, he will test this.
lgirdwood commentedon Nov 25, 2019
new signed binaries now on v1.4.1 release page.
containmentbreach commentedon Nov 25, 2019
Original reporter here. Unfortunately new firmware makes no difference at all
lbetlej commentedon Dec 5, 2019
@omg The updated binaries (CNL and ICL) for SOF 1.4.1 release are available for download. Could you test them and report if issue can be closed ? Thank you.
86 remaining items
samkline commentedon Jun 2, 2020
Sadly, no luck -- I tried the Hdmi.conf from upstream, reverted my default.pa change, removed my ~/.config/pulse, and rebooted to be safe, but I get dummy output and no input.
Pulseaudio debug logging is available here: https://gist.github.com/samkline/2aff0c71db990e09ad4bdf083666fc9b (lines 115-118 seem potentially relevant)
BTW, this machine does have an Intel GPU:
samkline commentedon Jun 2, 2020
Oh, good news: I just installed pulseaudio-git (13.99.1-31-g1fe37), and it now works with the upstream Hdmi.conf without any changes to default.pa.
kv2019i commentedon Jun 2, 2020
Patch to fix the original bug has been merged upstream now, so I will proceed and close the bug:
https://mailman.alsa-project.org/pipermail/alsa-devel/2020-May/168417.html
Thank you @ltune , @RiderALT , @perexg and @samkline for reporting and helping with the debug. If there are new issues, please open a new bug and let's track any new issues separately.
adam-fu commentedon Jun 3, 2020
That's good news. It may be good to add here which kernel version will contain the patch, once it is released, so I can load the corresponding Ubuntu kernel and have the internal microphone working🙂
kv2019i commentedon Jun 3, 2020
@adam-fu wrote:
It's currently queued for 5.8, so will be in 5.8.0. It may get backported to older stable kernels, and/or Ubuntu kernel package, so you probably don't have to wait that long.
RiderALT commentedon Jun 3, 2020
I already apply this patch (commit 89d73cc) for my local build of the kernel 5.7.0 and it works great on my Acer SF314-57 without any additional setting (like kernel module options or pulseaudio settings).
The only problem I discovered with 5.7.0 on this machine is 3 HDMI audio outputs in pulseaudio but one HDMI and one thunderbolt output in hardware.i attached Alsa-info output to save a history.
alsa-info.txt.gz
kv2019i commentedon Jun 3, 2020
@RiderALT wrote:
That's good to hear, thanks for testing!
This is to be expected. This hardware supports up to 3 concurrent HDMI/DP audio streams. On most systems like this, you can connect upto 3 monitors to the USB-C/thunderbolt port (using DP-MST), plus one to the HDMI connector. Pulseaudio should show which of the three ALSA HDMI PCMs has a connected monitor (in your alsa-info it shows no monitors w/ audio capability connected).
ASoC: SOF: Intel: hda: fix generic hda codec support
ASoC: SOF: Intel: hda: fix generic hda codec support
UPSTREAM: ASoC: SOF: Intel: hda: fix generic hda codec support
ASoC: SOF: Intel: hda: fix generic hda codec support
UPSTREAM: ASoC: SOF: Intel: hda: fix generic hda codec support
ASoC: SOF: Intel: hda: fix generic hda codec support
ASoC: SOF: Intel: hda: fix generic hda codec support