Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel doesn't load on Lenovo X1 Carbon 12th Gen (no output)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
nagmat84
Apprentice
Apprentice


Joined: 27 Mar 2007
Posts: 276

PostPosted: Wed Nov 27, 2024 6:18 pm    Post subject: Reply with quote

pietinger wrote:
If this is true then mostly PINCTRL was missing (in our dist-kernel all Intel-pinctrl-modules are configured statically, so you dont see it with "lsmod") ... and i2c needs pinctrl.
I enabled all CONFIG_PINCTRL_* below the Intel sub-menu as modules now. Let's see what is needed. It is compiling.

pietinger wrote:
Hmmm ... have you made number 2 of -> ?
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Before_you_start

If you dont find a module, try to search it in "make menuconfig" with a /
(see also: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Basics )
You mean whether I had a look at "lsmod" of a distribution kernel, first? Yes, I did. I also know that I can search with "/" inside menuconfig. In addition, I also run "egrep --recursive --include='Makefile' -i -e 'CONFIG.*<name-of-the-module>.*\.o' /usr/src/linux" to find the CONFIG option which is responsible for building the object file of the module for any module which was reported by "lsmod". I enabled all these CONFIG options as modules (=m) in order to have them (just to be on the safe side). I will deactivate any superfluous module later. Unfortunately, if something is statically built into the distribution kernel like PINCTRL (see above), "lsmod" does not report it.

pietinger wrote:
Type there: "IPU6" ... and yes its a module for your video camera :lol: ... and then these errors "int3472-discrete INT3472 ..." should be gone also.

I actually did that, but for 6.11.8 and I was under the impression to have enabled it. For some reason, sine version 6.12.1 IPU6 has started to depend on ARCH_HAS_DMA_OPS which is only implicitly enabled if one enables GART_IOMMU or XEN. IMHO, this feels like a regression bug, because GART_IOMMU is for AMD and I don't need Xen guest support. I reported that issue upstream. Anyway, I enabled Xen guest support (as a work-around) and re-enabled IPU6 afterwards.

pietinger wrote:
Maybe you need # CONFIG_SERIAL_MULTI_INSTANTIATE is not set (you should see in your "lsmod" list) ?
I have also enabled that as a module now (just to be save). It is compiling.

pietinger wrote:
Do you have emerged sys-firmware/sof-firmware for your sound? (If yes, we have a little problem ... maybe your machine is too new). If no, it should be the reason for the different capability of Meteor Lake-P HD Audio Controller.
Yes, I did. If you have a look at the dmesg output for the distribution kernel, you'll find
Code:
Loading firmware: intel/sof-ipc4/mtl/sof-mtl.ri
Loading firmware: intel/sof-ace-tplg/sof-hda-generic-2ch.tplg
Loading firmware: intel/sof-ipc4/mtl/sof-mtl.ri
sof-audio-pci-intel-mtl 0000:00:1f.3: Loaded firmware library: ADSPFW, version: 2.11.1.1
sof-audio-pci-intel-mtl 0000:00:1f.3: Booted firmware version: 2.11.1.1
Loading firmware: intel/sof-ace-tplg/sof-hda-generic-2ch.tplg
Sound works with the distribution kernel. So probably something is missing again which may be statically compiled into the distribution kernel and hence is not reported by "lsmod".

pietinger wrote:
You have a Synopsys Desingware PCI Controller ... you will need for your touchpad (yes, you have everything for it already configured, except designware):
* I2C_DESIGNWARE_PCI
* I2C_DESIGNWARE_PLATFORM
and maybe also:
* PCIE_INTEL_GW
* SPI_DESIGNWARE (?? here I am very unsure)
I enabled everything as a module (just to be on the safe side.) Additionally, I enabled everything as a module with "ELAN" in its name, because the distribution kernel reported something by that name. I also enabled everything as modules below "special HID devices". It's compiling.

pietinger wrote:
The rest of the system log looks really good. :D
OK, even though MSI is disabled for the audio controller?
Back to top
View user's profile Send private message
nagmat84
Apprentice
Apprentice


Joined: 27 Mar 2007
Posts: 276

PostPosted: Wed Nov 27, 2024 6:28 pm    Post subject: Reply with quote

For the sake of completeness: i2cdetect for 6.12.1 distribution kernel: https://pastebin.com/eeGGhUu4 But I don't know how to interpret the output.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5161
Location: Bavaria

PostPosted: Wed Nov 27, 2024 8:36 pm    Post subject: Reply with quote

nagmat84 wrote:
[...] I enabled everything as a module (just to be on the safe side.) [...]

I don't know if this is sufficient (unfortunately I can't test it, due to the lack of a notebook with such a PCI crontroller) ... maybe there is a reason why it is statically built into our dist-kernel.

But what comes to my mind: If you boot an Ubuntu LiveCD and check with “lsmod” you will see more there, because Ubuntu has much more built in as <M>odule (AFAIK also pinctrl and designware).

nagmat84 wrote:
[...] OK, even though MSI is disabled for the audio controller?

I guess it changes if we have all SOF-firmware in the kernel (and then no -2 error code while loading; saying it is missed).
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum