-
Notifications
You must be signed in to change notification settings - Fork 132
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] NULL pointer dereference with kernel 6.6.56-1-lts and sof-firmware 2024.09-1 #5211
Comments
@pirr, Can you copy sof-dyndbg.conf.txt as |
@pirr Are you saying kernel 6.11.3.arch1-1 + sof-firmware 2024.09-1 works, and kernel 6.6.56-1-lts + sof-firmware 2024.06-1 also works, but kernel 6.6.56-1-lts + sof-firmware 2024.09-1 doesn't work? |
I think it is the introduction of tdfb with Enum controls in sof 2024.09-1. The 6.6.y stable does not have support for enum type. @singalsu, @kv2019i, I can try to see if it can be backported, but it is a feature, not a bug fix - but since the mix of new and old topology is a possibility, it can be viewed as bug fix. @pirr, I think for MTL you should not use 6.6.y LTS kernel - the force_probe for MTL i915 support got dropped with 6.7 kernel for example, so the odds that the 6.6 LTS is not working is high. To note: the enum control support is also added with 6.7 kernel, I think that should be the baseline for MTL. |
Update: with these patches picked to stable 6.6.y, there is no longer NULL dereference:
|
@pirr, you need to use force_probe to get display working with the 6.6 LTS kernel? I cannot see that patch to be backported, for MTL 6.6 kernel is just too old to be used.
|
@bardliao yes it is. Yesterday I updated to 6.6.57-1-lts, but the error remained. @ujfalus
I use 6.6 LTS because on 6.11 speakers volume cannot be changed (only mute or at full volume). And yesterday working on kernel 6.11 I encountered that the laptop freezes. I don't know the reason yet, but I've seen errors that are related to sof. Here is log
I didn't change anything in the kernel. But apparently that's how it is. |
@pirr, I think your issue is identical to thesofproject/sof#9572 with 6.11 kernel regarding to the kernel errors. The speaker volume control worked with 6.10 kernel or with older sof-firmware package? Have you tried with GUI or did you checked also with Can you file an issue for it (volume control not working)? |
Moving the issue under kernel. |
For this I use buttons on my laptop. They change the Speaker (on picture) in alsamixer. For kernel 6.6 I use Should I file a new issue in sof project? |
Lets start with a sof linux issue and we can move it to the firmware based on the logs |
@ujfalusi |
@pirr, I have sent the backports but they have not yet taken, I think the issue can closed, thank you for the report! |
@ujfalusi |
Describe the bug
I am dealing with a NULL pointer dereference after updating from
sof-firmware 2024.06-1
tosof-firmware 2024.09-1
on EndeavourOS (ArchLinux). The sound doesn't work at all. I tried it on 6.11.3.arch1-1 and there were no problems there (I just can't adjust the volume, but I had this problem before too).I tried:
As write there https://thesofproject.github.io/latest/getting_started/intel_debug/introduction.html#pci-devices-introduced-after-2016
I used
options snd-intel-dspcfg dsp_driver=1
and the sound worked (can't adjust the volume).System
Here the dmesg boot log
To Reproduce
I suppose this can be reproduced on a laptop with a sound card like mine (Intel Meteor Lake-P HD Audio vendor: Lenovo) on kernel 6.6.56-1-lts arch: x86_64 bits: 64 compiler: gcc v: 14.2.1.
Reproduction Rate
100%
Expected behavior
The sound works and there are no errors related to sof.
Impact
The Sound device doesn't work.
Environment
The text was updated successfully, but these errors were encountered: