Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Panic and no Framebuffer with AMDGPU (9070xt)
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
svayar
n00b
n00b


Joined: 15 Feb 2023
Posts: 14

PostPosted: Sun Jun 08, 2025 4:59 pm    Post subject: Kernel Panic and no Framebuffer with AMDGPU (9070xt) Reply with quote

Hi there, just aqcuired some new hardware and I've been trying to get gentoo going.

On my old machine (5600m dGPU) I've always ran a module-less initramfs-less kernel but I've been having trouble making that happen on my new machine. EFI framebuffer works fine with no firmware loaded or nomodeset but if I include the firmware in the image, the kernel (I assume) panics, I don't get a dmesg, nothing, so it likely doesn't even mount the root. Given that I also don't get any display output, I have no way of diagnosing further. Any ideas?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5805
Location: Bavaria

PostPosted: Sun Jun 08, 2025 5:19 pm    Post subject: Re: Kernel Panic and no Framebuffer with AMDGPU (9070xt) Reply with quote

svayar wrote:
[...] I've always ran a module-less initramfs-less kernel [...]

Yes, here also a monolithic kernel without an initramfs. :lol:

svayar wrote:
[...] but if I include the firmware in the image, the kernel (I assume) panics, [...]

No. The reason for the kernel panic is NOT because you include some firmware files into CONFIG_EXTRA_FIRMWARE. You miss something else

svayar wrote:
[...] Any ideas?

1. You can search yourself with:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration
This article leads to two links - you need one of them:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.12
-or-
https://wiki.gentoo.org/wiki/User:Pietinger/Experimental/Manual_Configuring_Current_Kernel

2. Or you give us your kernel .config. Then boot with our GentooLiveCD and give us the output of:
- dmesg
- lspci -nnk

See also: https://wiki.gentoo.org/wiki/User:Pietinger/Overview_of_System_Information -> There is a hint about wgetpaste
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
svayar
n00b
n00b


Joined: 15 Feb 2023
Posts: 14

PostPosted: Sun Jun 08, 2025 5:42 pm    Post subject: Reply with quote

Hmm, the graphics section of my config looks more or less like what you linked.

Here's lspci from liveGUI: http://0x0.st/8glH.txt
Here's dmesg from liveGUI http://0x0.st/8glX.txt
Aaand .config from kernel in question: http://0x0.st/8gl8.txt

If I skip loading *any* of the amdgpu firmware (thus gpu not initializing), I can poke around from a tty and use the system just fine. Problem only starts when I let the gpu (I assume, no way to tell what it's doing) initialize.

Admittedly, the kernel is not fully configured, but I honestly just wanted to get to a GUI and was gonna fix up everything else later.

I think I did keep a veeery old but working kernel config on my old machine's home directory (Both Ryzen + Radeon machines) which I'll put here just in case: https://pastebin.com/hhGk6MZd
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5805
Location: Bavaria

PostPosted: Sun Jun 08, 2025 7:47 pm    Post subject: Reply with quote

svayar wrote:
[...] Admittedly, the kernel is not fully configured, but I honestly just wanted to get to a GUI and was gonna fix up everything else later. [...]

I have now only checked the most important options:

This is one of the most important settings; enable:
Code:
# CONFIG_X86_AMD_PLATFORM_DEVICE is not set

... I strongly recommend to enable this one also:
Code:
# CONFIG_IRQ_REMAP is not set

... and disable this, because it makes more problems than it solve:
Code:
CONFIG_DRM_SIMPLEDRM=y

Now look to all firmware files you really need in your CONFIG_EXTRA_FIRMWARE - you miss some of them:
Code:
[    0.000000] SMBIOS 3.7.0 present.
[    0.000000] DMI: Micro-Star International Co., Ltd. MS-7D75/MAG B650 TOMAHAWK WIFI (MS-7D75), BIOS 1.L0 12/11/2024
[    0.033776] CPU topo: Allowing 24 present CPUs plus 0 hotplug CPUs
[    0.240935] smpboot: CPU0: AMD Ryzen 9 9900X 12-Core Processor (family: 0x1a, model: 0x44, stepping: 0x0)

[   10.906138] Loading firmware: amdgpu/psp_14_0_3_sos.bin
[   10.919154] Loading firmware: amdgpu/psp_14_0_3_ta.bin
[   10.922818] Loading firmware: amdgpu/smu_14_0_3.bin
[   10.931112] Loading firmware: amdgpu/dcn_4_0_1_dmcub.bin
[   10.943128] Loading firmware: amdgpu/gc_12_0_1_pfp.bin
[   10.946611] Loading firmware: amdgpu/gc_12_0_1_me.bin
[   10.949727] Loading firmware: amdgpu/gc_12_0_1_rlc.bin
[   10.953581] Loading firmware: amdgpu/gc_12_0_1_mec.bin
[   10.957769] Loading firmware: amdgpu/gc_12_0_1_imu.bin
[   10.959610] Loading firmware: amdgpu/sdma_7_0_1.bin
[   10.961917] Loading firmware: amdgpu/vcn_5_0_0.bin
[   10.979081] Loading firmware: amdgpu/gc_12_0_1_uni_mes.bin
[   10.984331] Loading firmware: amdgpu/gc_12_0_1_uni_mes.bin

[   12.229232] Loading firmware: amdgpu/psp_13_0_5_toc.bin
[   12.231200] Loading firmware: amdgpu/psp_13_0_5_ta.bin
[   12.233694] Loading firmware: amdgpu/dcn_3_1_5_dmcub.bin
[   12.241365] Loading firmware: amdgpu/gc_10_3_6_pfp.bin
[   12.243927] Loading firmware: amdgpu/gc_10_3_6_me.bin
[   12.244973] Loading firmware: amdgpu/gc_10_3_6_ce.bin
[   12.245706] Loading firmware: amdgpu/gc_10_3_6_rlc.bin
[   12.247935] Loading firmware: amdgpu/gc_10_3_6_mec.bin
[   12.249858] Loading firmware: amdgpu/gc_10_3_6_mec2.bin
[   12.251870] Loading firmware: amdgpu/sdma_5_2_6.bin
[   12.253601] Loading firmware: amdgpu/vcn_3_1_2.bin

<=>
Code:
CONFIG_EXTRA_FIRMWARE="regulatory.db regulatory.db.p7s mediatek/BT_RAM_CODE_MT7922_1_1_hdr.bin mediatek/WIFI_RAM_CODE_MT7922_1.bin mediatek/WIFI_MT7922_patch_mcu_1_1_hdr.bin amdgpu/psp_14_0_3_sos.bin amdgpu/smu_14_0_3.bin amdgpu/dcn_4_0_1_dmcub.bin amdgpu/gc_12_0_1_pfp.bin amdgpu/sdma_7_0_1.bin amdgpu/vcn_5_0_0.bin amdgpu/gc_12_0_1_uni_mes.bin amdgpu/psp_13_0_5_toc.bin amdgpu/dcn_3_1_5_dmcub.bin amdgpu/gc_10_3_6_pfp.bin amdgpu/sdma_5_2_6.bin amdgpu/vcn_3_1_2.bin amdgpu/psp_14_0_3_ta.bin amdgpu/gc_12_0_1_me.bin amdgpu/psp_13_0_5_ta.bin amdgpu/gc_10_3_6_me.bin amdgpu/gc_12_0_1_rlc.bin amdgpu/gc_10_3_6_ce.bin"

To be on a safe side you should enable also VESA Framebuffer (later you can check which one you really need and disable one):
Code:
# CONFIG_FB_VESA is not set
CONFIG_FB_EFI=y

Some user application need this to be enabled:
Code:
# CONFIG_FB_DEVICE is not set

BTW: I saw also:
Code:
1.
CONFIG_CMDLINE="root=/dev/nvme0n1p2 rw"
2.
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
3.
CONFIG_I2C_I801=y
# CONFIG_I2C_PIIX4 is not set
4.
# CONFIG_PINCTRL is not set
5.
# CONFIG_I2C_HID_ACPI is not set

1. You safely can use "ro" instead of "rw", because initscript of OpenRC do a remount with "rw" later
2. This you really should change (see my article)
3. I801 is used by Intel machines; you have/need PIIX4
4. I2C needs PINCTRL; it does not work without
5. Maybe you need this later (dependent which devices in your machine uses I2C)
_________________
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
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



OSZAR »