Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel panic / ASUS X570 with Ryzen
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
medmusicus
n00b
n00b


Joined: 22 Dec 2011
Posts: 14

PostPosted: Sun Apr 05, 2020 6:49 pm    Post subject: kernel panic / ASUS X570 with Ryzen Reply with quote

Hello Cracks,

this is "medmusicus" from Germany. I'm used to Gentoo for a long time und do understand the basics after countless installations.
But now I can't get the kernel right with my new hardware: A shiny new ASUS X570 Board, Ryzen CPU, NCVME, 32G RAM.

I was able to boot it once after configuring a Kernel 5.6.2 with genkernel. But with manually configuring a new kernel I always end up with a kernel panic and don't know why.

Could someone assist me? What should I do next?

Hardware: ASUS ROG STRIX X570-E Gaming
Ryzen 9 3900X Processor
Samsung NVME
VEGA 56 graphics

In my opinion all the relevent kernel options important for booting are correct and compiled in NOT as modules (e.g. scsi, sata, ext4/btrfs, nvme)
Back to top
View user's profile Send private message
medmusicus
n00b
n00b


Joined: 22 Dec 2011
Posts: 14

PostPosted: Mon Apr 06, 2020 5:30 am    Post subject: Reply with quote

Managed to boot after looking up the x570-Wiki on gentoo, but it hangs when switching from simplefb to amdgpu-fb.
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1180
Location: Austria

PostPosted: Mon Apr 06, 2020 7:49 am    Post subject: Reply with quote

Your info is a bit sparse. Mind giving some details about kernel-sources, version and their config?
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
medmusicus
n00b
n00b


Joined: 22 Dec 2011
Posts: 14

PostPosted: Mon Apr 06, 2020 6:25 pm    Post subject: Reply with quote

gentoo-sources-5.6.2 with "experimental" use flag, so I can choose "AMD Zen 2" as processor.
Tracked down the problem to the framebuffer device: cam't switch from simplefb to amdgpudrmfb.
Booting okay, it's just the console that freezes. I can login remotely via ssh and work on my system.

Parts of /usr/src/linux/.config:
#
# Firmware loader
#
CONFIG_FW_LOADER=y
CONFIG_EXTRA_FIRMWARE="amdgpu/vega10_acg_smc.bin amdgpu/vega10_ce.bin amdgpu/vega10_me.bin amdgpu/vega10_mec.bin amdgpu/vega10_rlc.bin amdgpu/vega10_sdma.bin amdgpu/vega10_sos.bin amdgpu/vega10_vce.bin amdgpu/vega10_asd.bin amdgpu/vega10_gpu_info.bin amdgpu/vega10_mec2.bin amdgpu/vega10_pfp.bin amdgpu/vega10_sdma1.bin amdgpu/vega10_smc.bin amdgpu/vega10_uvd.bin amd-ucode/microcode_amd_fam17h.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
# CONFIG_FW_LOADER_USER_HELPER is not set
# CONFIG_FW_LOADER_COMPRESS is not set
# CONFIG_FW_CACHE is not set
# end of Firmware loader


#
# Graphics support
#
CONFIG_AGP=m
CONFIG_AGP_AMD64=m
# CONFIG_AGP_INTEL is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_VIA is not set
# CONFIG_VGA_ARB is not set
# CONFIG_VGA_SWITCHEROO is not set
CONFIG_DRM=m
CONFIG_DRM_DP_AUX_CHARDEV=y
# CONFIG_DRM_DEBUG_SELFTEST is not set
CONFIG_DRM_KMS_HELPER=m
CONFIG_DRM_KMS_FB_HELPER=y
# CONFIG_DRM_DEBUG_DP_MST_TOPOLOGY_REFS is not set
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_DRM_FBDEV_OVERALLOC=100
# CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM is not set
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
CONFIG_DRM_DP_CEC=y
CONFIG_DRM_TTM=m
CONFIG_DRM_TTM_DMA_PAGE_POOL=y
CONFIG_DRM_SCHED=m

# CONFIG_DRM_RADEON is not set
CONFIG_DRM_AMDGPU=m
# CONFIG_DRM_AMDGPU_SI is not set
# CONFIG_DRM_AMDGPU_CIK is not set
CONFIG_DRM_AMDGPU_USERPTR=y
# CONFIG_DRM_AMDGPU_GART_DEBUGFS is not set

#
# ACP (Audio CoProcessor) Configuration
#
CONFIG_DRM_AMD_ACP=y
# end of ACP (Audio CoProcessor) Configuration

#
# Display Engine Configuration
#
CONFIG_DRM_AMD_DC=y
CONFIG_DRM_AMD_DC_DCN=y
CONFIG_DRM_AMD_DC_HDCP=y
# CONFIG_DEBUG_KERNEL_DC is not set
# end of Display Engine Configuration

CONFIG_HSA_AMD=y
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5452

PostPosted: Mon Apr 06, 2020 8:36 pm    Post subject: Reply with quote

do you have CONFIG_FB_EFI enabled?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
xdarma
l33t
l33t


Joined: 08 Dec 2003
Posts: 704
Location: tra veneto e friuli (italy)

PostPosted: Tue Apr 07, 2020 6:46 am    Post subject: Reply with quote

Another options that I use is: CONFIG_X86_SYSFB=y
It's under:
Bus options (PCi etc.) -> [*] Mark VGA/VBE/EFI FB as generic system framebuffer
Back to top
View user's profile Send private message
medmusicus
n00b
n00b


Joined: 22 Dec 2011
Posts: 14

PostPosted: Tue Apr 07, 2020 7:38 am    Post subject: Reply with quote

Both enabled, kernel recompiled, no difference—> I‘m stuck
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4537
Location: Dallas area

PostPosted: Tue Apr 07, 2020 11:14 am    Post subject: Reply with quote

medmusicus wrote:
gentoo-sources-5.6.2 with "experimental" use flag, so I can choose "AMD Zen 2" as processor.


Perhaps you're being too aggressive with the zen2 selection.
I just put to together my x570 system and wound up setting it to generic x86-64
as my priorities were to make it boot first and be stable, then I'll work on pushing for performance. YMMV


Quote:
Tracked down the problem to the framebuffer device: cam't switch from simplefb to amdgpudrmfb.


Then maybe there's something wrong with your selections for gpu.


Edit to add:
Quote:
In my opinion all the relevent kernel options important for booting are correct and compiled in NOT as modules (e.g. scsi, sata, ext4/btrfs, nvme)


I'm sure if your opinion was correct then you wouldn't be here asking for help.
_________________
PRIME x570-pro, 3700x, RX 550 & 560
Acer E5-575 (laptop), i3-7100u - i965
---both---
5.5.18 zen kernel, gcc 9.3.0, profile 17.1 (no-pie & modified) amd64-no-multilib, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Goverp
l33t
l33t


Joined: 07 Mar 2007
Posts: 837

PostPosted: Tue Apr 07, 2020 11:32 am    Post subject: Reply with quote

I've a very similar setup, except an Radeon RX580 video card. Here's a link to my .config.
It may not help, as the problem looks to be in the graphics area, but a bit off diffing might show something useful.
I compile it with KCFLAGS set to "-march=native"
_________________
Greybeard
Back to top
View user's profile Send private message
medmusicus
n00b
n00b


Joined: 22 Dec 2011
Posts: 14

PostPosted: Tue Apr 07, 2020 4:19 pm    Post subject: Reply with quote

Thank you very much for your kind consideration and opinions., that‘s great.
Right now, as I‘m back from work, I‘ll try it all out and will report again.
Back to top
View user's profile Send private message
medmusicus
n00b
n00b


Joined: 22 Dec 2011
Posts: 14

PostPosted: Wed Apr 08, 2020 9:13 am    Post subject: Reply with quote

It finally worked! I checked again all the options in my .config and left them as they were. The difference was in the compilation of the kernel: I did a "make bzImage modules modules_install install" instead of "make -j25; make install". That did the trick, was much slower though. So it finally ended up in a working desktop with experimental gentoo-sources, it shows incredible perfomance with Ryzen 9 and the x570 MoBo. Thanks again.
Back to top
View user's profile Send private message
shazeal
Apprentice
Apprentice


Joined: 03 May 2006
Posts: 203
Location: New Zealand

PostPosted: Thu Apr 09, 2020 1:45 am    Post subject: Reply with quote

For reference this is what I use in my shell script to build my kernels with 16 threads, 3700X with X570 mobo.

Code:
make -j16 && make modules_install && make install && grub-mkconfig -o /boot/grub/grub.cfg


It sounds like you were just failing to install modules, or the make -j25 was failing but the install continued on. You should use && to separate commands since it will not run if the previous command fails.
_________________
CFLAGS="-OmgWTFR1CE --fun-lol-loops --march=asmx86go"
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