Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
amd gpu help please[solved]
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
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1115
Location: Tri-Cities, WA USA

PostPosted: Sun Mar 10, 2019 6:34 pm    Post subject: amd gpu help please[solved] Reply with quote

QUESTION:
I think I need these drivers:
cwc@ciclo /lib/firmware/radeon $ ls OL*
OLAND_ce.bin OLAND_mc2.bin OLAND_mc.bin OLAND_me.bin OLAND_pfp.bin OLAND_rlc.bin OLAND_smc.bin

not
Kernel 4.8 and newer: radeon/pitcairn_ce.bin radeon/pitcairn_mc.bin radeon/pitcairn_me.bin radeon/pitcairn_pfp.bin radeon/pitcairn_rlc.bin radeon/pitcairn_smc.bin radeon/pitcairn_k_smc.bin

AND I'm not sure about this:
Code:
Kernel
Older kernels which do not support the amdgpu driver will not provide the AMDGPU option. But even with amdgpu there is no video output on VEGA and newer chips without DC (Display Code), which was first included in vanilla Kernel 4.15. In both cases, trying an unstable (denoted by a ~) kernel can provide the required kernel-sources.

SME
Currently, amdgpu does not work with AMD Secure Memory Encryption (SME) enabled, so you need to disable its use either in the kernel configuration or on the kernel command line (i.e. in /etc/default/grub as part of GRUB_CMDLINE_LINUX).

KERNEL
Processor type and features  --->
    [*] AMD Secure Memory Encryption (SME) support
    [ ]   Activate AMD Secure Memory Encryption (SME) by default
AMD_MEM_ENCRYPT may remain enabled, but either AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT must remain unset or the kernel command line option mem_encrypt=off must be used in order to turn Memory Encryption off. With mem_encrypt=on amdgpu fails to load and the screen stays frozen as it was at the time of the modprobe, or, when included in the kernel, in early printk.





I got a new video card ASUS AMD
Radeon R7 240
lspci indicates
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series]
I emerged the firmware : emerge sys-kernel/linux-firmware

make.conf VIDEO_CARDS="amdgpu radeonsi"

I believe these are the drivers I need:
Kernel 4.8 and newer: radeon/pitcairn_ce.bin radeon/pitcairn_mc.bin radeon/pitcairn_me.bin radeon/pitcairn_pfp.bin radeon/pitcairn_rlc.bin radeon/pitcairn_smc.bin radeon/pitcairn_k_smc.bin

I have the drivers loaded installed:
/lib/firmware/amdgpu # ls pit*
pitcairn_ce.bin pitcairn_k_smc.bin pitcairn_mc.bin pitcairn_me.bin pitcairn_pfp.bin pitcairn_rlc.bin pitcairn_smc.bin


this is my .config
# Firmware loader
#
CONFIG_FW_LOADER=y
CONFIG_EXTRA_FIRMWARE="amdgpu/pitcairn_ce.bin amdgpu/pitcairn_k_smc.bin amdgpu/pitcairn_mc.bin amdgpu/pitcairn_me.bin amdgpu/pitcairn_pfp.bin amdgpu/pitcairn_rlc.bin amdgpu/pitcairn_smc.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
CONFIG_FW_LOADER_USER_HELPER=y
CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y
CONFIG_ALLOW_DEV_COREDUMP=y
# CONFIG_DEBUG_DRIVER is not set


****************************************
I'm following this guide: https://wiki.gentoo.org/wiki/AMDGPU

(On my first attempt after compiling my kernel the drivers would not load)

Important
More recent kernels (Aug. 2018, at least 4.15.x and up, and Dec. 2018, 4.19.9[3] and up) require an updated set of firmware files than listed here in order to boot successfully . Make sure that sys-kernel/linux-firmware is updated. If you use the savedconfig USE flag for this package, make sure that the savedconfig configuration file is updated with the new firmware files listed. Incorporate all the newly added files to your kernel configuration file in the firmware line then rebuild and install your new kernel image. Otherwise your boot will likely fail with a blank screen and firmware load errors thrown to the kernel log.
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1115
Location: Tri-Cities, WA USA

PostPosted: Sun Mar 10, 2019 10:42 pm    Post subject: Reply with quote

make.conf
VIDEO_CARDS="amdgpu"

$ more /usr/src/linux/.config | grep amdgpu
CONFIG_EXTRA_FIRMWARE="amdgpu/oland_ce.bin amdgpu/oland_k_smc.bin amdgpu/oland_mc.bin amdgpu/oland_me.bin amdgpu/oland_pfp.bin amdgpu/oland_rlc.bin amdgpu/oland_smc.bin"

reinstall xorg

life is good
_________________
Without diversity there can be no evolution:)
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