Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
AMD GPU firmware load time
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
costel78
Guru
Guru


Joined: 20 Apr 2007
Posts: 404

PostPosted: Fri Jul 05, 2024 10:14 am    Post subject: AMD GPU firmware load time Reply with quote

Hello,

Kernel boot time increased during time on my system to the point where monitor goes to sleep between pressing Enter on refind loader and startx showing desktop.
I am not using any display manager, using x11 started via .bash_profile and .xinitrc
Code:
# /etc/skel/.bash_profile

# This file is sourced by bash for login shells.  The following line
# runs your .bashrc and is recommended by the bash info pages.
if [[ -f ~/.bashrc ]] ; then
   . ~/.bashrc
fi

if [[ ! ${DISPLAY} && ${XDG_VTNR} == 1 && $(tty) == /dev/tty1 ]]; then
  export GTK_THEME=Adwaita:dark
  exec startx &>/dev/null
fi

# dbus-run-session Hyprland

Code:
cat .xinitrc
exec startxfce4


This is the kernel config: .config and dmesg output: dmesg

AMD 7900X CPU and AMD 6600 GPU:
Code:
lspci | grep VGA
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [Radeon RX 6600/6600 XT/6600M] (rev c7)
14:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Raphael (rev c2)


I am asking because on Intel systems (NAS and NUC) kernel boot time went under 1 second lately, despite quite a few firmware files loaded, ok, only integrated GPU on those. Maybe is something wrong configured.
As you can see in .config firmware is integrated in kernel itself, no modules or initramfs used.

Thank you!
_________________
Sorry for my English. I'm still learning this language.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4550
Location: Bavaria

PostPosted: Fri Jul 05, 2024 12:25 pm    Post subject: Re: AMD GPU firmware load time Reply with quote

costel78 wrote:
[...]
I am asking because on Intel systems (NAS and NUC) kernel boot time went under 1 second lately, despite quite a few firmware files loaded, ok, only integrated GPU on those. Maybe is something wrong configured.
As you can see in .config firmware is integrated in kernel itself, no modules or initramfs used.

1 second is really very fast ... I dont think you will get it with this AMD machine ...

Before I suggest you 3 changes I want to ask if you really want this ? ->

Code:
[    0.014597] [      T0] Memory: 1759736K/32729200K available

[    0.552226] [      T1] [drm] amdgpu: 15634M of GTT memory ready.

(I am not an AMD expert, but usually you can configure in your UEFI(-BIOS) the amount of RAM the GPU will use)

Now, these two are not necessary and can cause some problems in some systems:
Code:
CONFIG_DRM_SIMPLEDRM=y
CONFIG_SYSFB_SIMPLEFB=y

(please do not confuse SYSFB_SIMPLEFB with FB_SIMPLE; FB_SIMPLE you can always enable as a backup if FB_EFI does not work)

What happens if you also disable this: CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER=y ?

Otherwise, I don't see any problems in your system log and your kernel configuration (except that your kernel is not hardened :lol: ).


Maybe you are interested in:
https://wiki.gentoo.org/wiki/User:Pietinger/Experimental/Manual_Configuring_Kernel_Version_6.9
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Kernel_Hardening_with_KSPP
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
costel78
Guru
Guru


Joined: 20 Apr 2007
Posts: 404

PostPosted: Fri Jul 05, 2024 3:03 pm    Post subject: Re: AMD GPU firmware load time Reply with quote

pietinger wrote:

[...]
What happens if you also disable this: CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER=y ?


This solved the annoying part, there is a cursor blinking so no monitor entering to sleep mode.
Disabling CONFIG_DRM_SIMPLEDRM and CONFIG_SYSFB_SIMPLEFB and set GPU mem in BIOS makes no difference.
Code:
[    5.600591] [      T1] Run /sbin/init as init process


But as monitor doesn't go into sleep mode it is ok for me. Few seconds at boot time make no difference.

I plan to switch to hardened profile, but due to lack of time it is always on todo list.
Thank you very much for your support!
_________________
Sorry for my English. I'm still learning this language.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4550
Location: Bavaria

PostPosted: Fri Jul 05, 2024 3:04 pm    Post subject: Re: AMD GPU firmware load time Reply with quote

costel78 wrote:
Thank you very much for your support!

You are very Welcome ! :D

Have fun with Gentoo. 8)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
xgivolari
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jul 2021
Posts: 102

PostPosted: Mon Jul 08, 2024 4:11 pm    Post subject: Reply with quote

Your kernel log shows that it takes about 5.5 seconds of loading until init is executed, which sounds about right for a completely monolithic kernel. How long does it take until xfce starts?
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
Page 1 of 1

 
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