View previous topic :: View next topic |
Author |
Message |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 4843 Location: Bavaria
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
manwe_ l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1560395806499fd013444eb.jpg)
Joined: 01 Feb 2006 Posts: 649 Location: Universe
|
Posted: Fri Aug 02, 2024 4:54 pm Post subject: |
|
|
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 ![Embarassed :oops:](images/smiles/icon_redface.gif) |
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 |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 4843 Location: Bavaria
|
Posted: Fri Aug 02, 2024 7:22 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 4843 Location: Bavaria
|
Posted: Fri Aug 02, 2024 7:45 pm Post subject: |
|
|
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 !
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 |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 4843 Location: Bavaria
|
Posted: Mon Aug 05, 2024 1:16 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
manwe_ l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1560395806499fd013444eb.jpg)
Joined: 01 Feb 2006 Posts: 649 Location: Universe
|
Posted: Mon Aug 05, 2024 8:27 pm Post subject: |
|
|
No, sorry, busy weekend and had no time to take care of this. Tomorrow, maybe wednesday and I'll check ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
manwe_ l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1560395806499fd013444eb.jpg)
Joined: 01 Feb 2006 Posts: 649 Location: Universe
|
Posted: Wed Aug 07, 2024 10:57 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 4843 Location: Bavaria
|
Posted: Thu Aug 08, 2024 10:40 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
manwe_ l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1560395806499fd013444eb.jpg)
Joined: 01 Feb 2006 Posts: 649 Location: Universe
|
Posted: Thu Aug 08, 2024 11:11 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
manwe_ l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1560395806499fd013444eb.jpg)
Joined: 01 Feb 2006 Posts: 649 Location: Universe
|
Posted: Fri Aug 09, 2024 5:06 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 4843 Location: Bavaria
|
Posted: Fri Aug 09, 2024 8:50 pm Post subject: |
|
|
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
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 |
|
![](templates/gentoo/images/spacer.gif) |
manwe_ l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1560395806499fd013444eb.jpg)
Joined: 01 Feb 2006 Posts: 649 Location: Universe
|
Posted: Sat Aug 10, 2024 9:06 pm Post subject: |
|
|
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 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 |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 4843 Location: Bavaria
|
Posted: Sat Aug 10, 2024 9:40 pm Post subject: |
|
|
manwe_ wrote: | Thank you so much for your help. [...] |
You are very Welcome !
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 ) 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. ![Cool 8)](images/smiles/icon_cool.gif) _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 4843 Location: Bavaria
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|