Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] ThinkPad T14 Gen5 - blank screen
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
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4842
Location: Bavaria

PostPosted: Fri Aug 02, 2024 12:30 pm    Post subject: Reply with quote

manwe_

I am an old man ... and sometimes I forget something ... when I check a kernel .config I cannot check every line (>8,000) ... only important ones ... and because of an other problem yesterday I remembered I had not checked this in your .config =>

Code:
CONFIG_FW_LOADER_COMPRESS=y
CONFIG_FW_LOADER_COMPRESS_XZ=y
CONFIG_FW_LOADER_COMPRESS_ZSTD=y


This does not work !!

Please see: https://forums.gentoo.org/viewtopic-t-1170195-highlight-.html

and I have updated my wiki article tonight because of this other problem:

https://wiki.gentoo.org/index.php?title=User:Pietinger/Tutorials/Manual_kernel_configuration&curid=309638&diff=1306518&oldid=1304391

I am very sorry not to have checked this earlier :oops:
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
manwe_
l33t
l33t


Joined: 01 Feb 2006
Posts: 649
Location: Universe

PostPosted: Fri Aug 02, 2024 4:54 pm    Post subject: Reply with quote

pietinger wrote:

I am an old man ... and sometimes I forget something ... when I check a kernel .config I cannot check every line (>8,000) ... only important ones ... and because of an other problem yesterday I remembered I had not checked this in your .config =>

Code:
CONFIG_FW_LOADER_COMPRESS=y
CONFIG_FW_LOADER_COMPRESS_XZ=y
CONFIG_FW_LOADER_COMPRESS_ZSTD=y


This does not work !!

Please see: https://forums.gentoo.org/viewtopic-t-1170195-highlight-.html

Are you sure? It only states "does not apply to firmware images that are built into the kernel image". I don't have "compress-*" USE flags for sys-kernel/linux-firmware, so I was embedding uncompressed firmware in the kernel, which was loading fine on a few PCs for years. Here's an example from one PC with the exact same kernel (+ CONFIG_FW_LOADER_COMPRESS):
Code:

$ sudo dmesg | grep -i firmware
[    4.364234] Loading firmware: i915/kbl_dmc_ver1_04.bin
[    4.364648] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
[    6.128292] Loading firmware: iwlwifi-9000-pu-b0-jf-b0-46.ucode
[    6.128551] Loading firmware: iwl-debug-yoyo.bin
[    6.128570] iwlwifi 0000:00:14.3: loaded firmware version 46.7e3e4b69.0 9000-pu-b0-jf-b0-46.ucode op_mode iwlmvm
[    6.671290] Loading firmware: regulatory.db
[    6.671291] Loading firmware: regulatory.db.p7s
[    7.190204] Loading firmware: intel/ibt-17-16-1.sfi
[    7.190206] Bluetooth: hci0: Found device firmware: intel/ibt-17-16-1.sfi
[    7.190293] Bluetooth: hci0: Firmware Version: 201-12.24
[    7.190294] Bluetooth: hci0: Firmware already loaded

$ uname -a
Linux x 6.10.2-gentoo-dtop-v1 #4 SMP PREEMPT_DYNAMIC Wed Jul 31 12:06:20 CEST 2024 x86_64 Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz GenuineIntel GNU/Linux

$ zgrep CONFIG_FW_LOADER_COMPRESS /proc/config.gz
CONFIG_FW_LOADER_COMPRESS=y
CONFIG_FW_LOADER_COMPRESS_XZ=y
CONFIG_FW_LOADER_COMPRESS_ZSTD=y


But to do the due diligence I've tried without
Code:
/usr/src/linux # grep CONFIG_FW_LOADER_COMPRESS .config
# CONFIG_FW_LOADER_COMPRESS is not set

Same effect, stuck on
Code:

i915 0000:00:02.0: [drm] Using Transparent Hugepages


pietinger wrote:
I am very sorry not to have checked this earlier :oops:

Come on man, you are the only one trying to help here, I'm very thankful. You don't need to apologize for anything.

Could you share your moduleless config? Maybe it'll work for me and I can go from there.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4842
Location: Bavaria

PostPosted: Fri Aug 02, 2024 7:22 pm    Post subject: Reply with quote

manwe_ wrote:
Could you share your moduleless config? Maybe it'll work for me and I can go from there.

This is my current config for a i9-13900K on a Gigabyte Z790 Aorus Elite AX
(see also: https://wiki.gentoo.org/wiki/User:Pietinger/temp/delete_me )

http://0x0.st/XOxm.10.2

It will not work for you because:
- wrong kernel command line parameters (NEVER boot with IMA enforce without having necessary files); you will need: ima_appraise=off
- only an "old" i915
- firmware files are different to yours
- other ethernet
- it is a hardened configuration WITHOUT 32bit support (== I am using a No-Multilib profile)
- I dont use a boot manager => I am booting it directly from UEFI (therefore efistub is necessary)
- I dont use an initramfs
- It is for OpenRC (no systemd)
- no modules support, no WLAN, no bluetooth, no IPv6, no CD-ROM support, no serial, no virtualization (slim kernel)
- my root partition is an EXT4 (bcachefs only for testing)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4842
Location: Bavaria

PostPosted: Fri Aug 02, 2024 7:45 pm    Post subject: Reply with quote

manwe_ wrote:
Come on man, you are the only one trying to help here, I'm very thankful. You don't need to apologize for anything.

Thank you for your kind words ! :D

I just had a very crazy thought ... i don't know if there is a limit to the number of firmware files you can include ... what if you throw out all the unneeded ones and only include the microcode for your cpu AND the firmware files for your gpu ?
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4842
Location: Bavaria

PostPosted: Mon Aug 05, 2024 1:16 pm    Post subject: Reply with quote

manwe_,

have you made any new discoveries?

Did my kernel configuration help you in any way (probably not, right) ?
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
manwe_
l33t
l33t


Joined: 01 Feb 2006
Posts: 649
Location: Universe

PostPosted: Mon Aug 05, 2024 8:27 pm    Post subject: Reply with quote

No, sorry, busy weekend and had no time to take care of this. Tomorrow, maybe wednesday and I'll check :)
Back to top
View user's profile Send private message
manwe_
l33t
l33t


Joined: 01 Feb 2006
Posts: 649
Location: Universe

PostPosted: Wed Aug 07, 2024 10:57 pm    Post subject: Reply with quote

OK, so had an hour to play with your config. Few changes I've made:
- removed CONFIG_CMDLINE
- added support for initramfs and my .cpio
- added 4 files that i915 was trying to load: i915/mtl_dmc.bin i915/mtl_guc_70.bin i915/mtl_huc_gsc.bin i915/mtl_gsc_1.bin (https://postimg.cc/SjzXtMtk)

After this, I have two outcomes.

With "i915.enable_guc=2 i915.enable_psr=0" freeze: https://postimg.cc/5YQtGhgn
Without it display works, kernel goes into initramfs but there are some complains about "missing mei component" and "GSC proxy handler failed to init" whatever that is: https://postimg.cc/phj2kDVS

-- update:
OK, GSC proxy was because of missing CONFIG_INTEL_MEI_GSC_PROXY. After that there are no errors with "i915": https://postimg.cc/pm0zttQH
But still freeze with enable_guc=2/enable_psr=0.

Tomorrow I'll try to further modify that config, add luks/cryptsetup support to boot beyond initramfs and check if Xorg works.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4842
Location: Bavaria

PostPosted: Thu Aug 08, 2024 10:40 am    Post subject: Reply with quote

First of all, thanks for the feedback; if i understood correctly, the graphic now works if you don't set any "evil" (enable_guc=2/enable_psr=0) command line parameters, yes ?
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
manwe_
l33t
l33t


Joined: 01 Feb 2006
Posts: 649
Location: Universe

PostPosted: Thu Aug 08, 2024 11:11 am    Post subject: Reply with quote

So far works in console mode (initramfs). As soon as I have free hour I'll have to modify your kernel further to be able to boot my system and check X.
Back to top
View user's profile Send private message
manwe_
l33t
l33t


Joined: 01 Feb 2006
Posts: 649
Location: Universe

PostPosted: Fri Aug 09, 2024 5:06 pm    Post subject: Reply with quote

OK, after few more changes like device mapper, crypt, xfs I was able to boot system. Unfortunately Xorg doesn't work.

Xorg.0.log for user uid=1000: https://bpa.st/DAEA
Xorg.0.log for root: https://bpa.st/BH3A

Xorg starts and stays running together with window manager process, but screen is black. Looks line those lines seem to be the problem

Code:
[   119.470] (EE) intel(0): Failed to allocate caches, disabling RENDER acceleration
[   119.775] (EE) intel(0): Failed to submit rendering commands (Cannot allocate memory), disabling acceleration.


But so far I wasn't able to find any solution. First error comes from this function of xf86-intel-video: https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/-/blob/master/src/sna/sna_accel.c#L18277


Last edited by manwe_ on Sat Aug 10, 2024 9:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4842
Location: Bavaria

PostPosted: Fri Aug 09, 2024 8:50 pm    Post subject: Reply with quote

manwe_ wrote:
[...] First error comes from this function of xf86-intel-video:[...]

Oh no ... please dont use this outdated driver for your most modern GPU 8O

What happens if you move every file from /etc/X11/xorg.conf.d/ to a backup place and restart X11 again ?

Those were my steps for my GPU of i9:
Code:
# in make.conf => VIDEO_CARDS="intel"
# emerge -pv xorg-server
# cd /etc/X11
# mkdir xorg.conf.d
# cd xorg.conf.d
# cp /usr/share/X11/xorg.conf.d/40-libinput.conf .
# nano -w 40-libinput.conf
! Add to keyboard section => Option "xkb_layout" "de"

Nothing else !!! (After this I emerged directly plasma-meta and kdecore-meta)

If you want you might emerge libva-intel-media-driver also if you use "vaapi"

No installation of https://wiki.gentoo.org/wiki/Intel#Intel_DDX !!

(No old and outdated VIDEO_CARDS="intel i915" or VIDEO_CARDS="intel i965")
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
manwe_
l33t
l33t


Joined: 01 Feb 2006
Posts: 649
Location: Universe

PostPosted: Sat Aug 10, 2024 9:06 pm    Post subject: Reply with quote

I also don't use xorg.conf.d files for anything besides keyboard.

To be honest somehow I've missed whole transition from i915 X drivers. Eveyrthing was working fine for 9th and 13th gen Intel. Nevertheless, I've removed xf86-intel-video and not only 9th gen booted fine, but also T14 Gen5 showed X :D Thank you so much for your help. Can I buy you a coffee or currywurst for your help?

Now all I have to do is figure out what's wrong with my kernel, mix it with your config and find drivers for other hardware that is not working right now (wifi, touchpad, …). But that should be easy now when I have system booting fine into X.

If anyone with T14 Gen5 happens to read this thread, here's config that boots and show X: https://paste.gentoo.zip/w8zcFzYS
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4842
Location: Bavaria

PostPosted: Sat Aug 10, 2024 9:40 pm    Post subject: Reply with quote

manwe_ wrote:
Thank you so much for your help. [...]

You are very Welcome ! :D

manwe_ wrote:
If anyone with T14 Gen5 happens to read this thread, here's config that boots and show X: https://paste.gentoo.zip/w8zcFzYS

It is precisely this feedback that is so valuable.

manwe_ wrote:
[...] Can I buy you a coffee or currywurst for your help?

That's very kind of you, but do you know how you can give back the most to the Gentoo community ? Do the same as I do with many others:

Help here where you can ... because we all get older (although Neddy is a bit older than me :lol: ) and have to stop at some point ... then we need people to follow us ... especially people who have a good Linux and Gentoo knowledge... like you. I help here because I used to get help ... and now, as an old man, I want to give it back.

Have a good time ... and fun with Gentoo. 8)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4842
Location: Bavaria

PostPosted: Sun Aug 11, 2024 9:41 am    Post subject: Reply with quote

P.S.: Because you have also an Intel MeteorLake maybe you want read this thread:
https://forums.gentoo.org/viewtopic-t-1170201-highlight-.html
(because you said you still had to configure the touchpad)
_________________
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