Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Ryzen 7 AMDGPU - Rembrandt [680M] - Black Screen
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
vokiel
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2004
Posts: 110

PostPosted: Tue Jul 04, 2023 7:31 pm    Post subject: [Solved] Ryzen 7 AMDGPU - Rembrandt [680M] - Black Screen Reply with quote

One of the Ryzen 7 on a Beelink SER6, with Kernel 6.1.31. I did not install X yet, so I would expect to be dropped to a login on the console, but the screen shows black. This screen is an LG OLED TV. Played around a bit, which lead to the display getting frozen a lot. I can't seem to figure this one out.

Code:
# lspci -v |grep VGA
74:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] (rev 0a) (prog-if 00 [VGA controller])


Firmware seems to be loaded as yellow_carp, the screen is still black.

Code:
quark ~ # dmesg |grep amd                                                                                                                                     
[    0.320962] perf/amd_iommu: Detected AMD IOMMU #0 (2 banks, 4 counters/bank).                                                                               
[    1.937551] [drm] amdgpu kernel modesetting enabled.                                                                                                       
[    1.940549] amdgpu: Virtual CRAT table created for CPU                                                                                                     
[    1.940555] amdgpu: Topology: Add CPU node                                                                                                                 
[    1.940621] amdgpu 0000:74:00.0: enabling device (0006 -> 0007)                                                                                             
[    1.941866] amdgpu 0000:74:00.0: amdgpu: Fetched VBIOS from VFCT                                                                                           
[    1.941867] amdgpu: ATOM BIOS: 113-REMBRANDT-X37                                                                                                           
[    1.941916] amdgpu 0000:74:00.0: vgaarb: deactivate vga console                                                                                             
[    1.941918] amdgpu 0000:74:00.0: amdgpu: Trusted Memory Zone (TMZ) feature disabled as experimental (default)                                               
[    1.941919] amdgpu 0000:74:00.0: amdgpu: PCIE atomic ops is not supported
[    1.941945] amdgpu 0000:74:00.0: amdgpu: VRAM: 3072M 0x000000F400000000 - 0x000000F4BFFFFFFF (3072M used)
[    1.941946] amdgpu 0000:74:00.0: amdgpu: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF
[    1.941948] amdgpu 0000:74:00.0: amdgpu: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF
[    1.941976] [drm] amdgpu: 3072M of VRAM memory ready
[    1.941977] [drm] amdgpu: 14414M of GTT memory ready.
[    1.942376] Loading firmware: amdgpu/yellow_carp_toc.bin
[    1.942871] Loading firmware: amdgpu/yellow_carp_ta.bin
[    1.943144] amdgpu 0000:74:00.0: amdgpu: PSP runtime database doesn't exist
[    1.943145] amdgpu 0000:74:00.0: amdgpu: PSP runtime database doesn't exist
[    1.943169] Loading firmware: amdgpu/yellow_carp_dmcub.bin
[    1.943457] Loading firmware: amdgpu/yellow_carp_pfp.bin
[    1.943698] Loading firmware: amdgpu/yellow_carp_me.bin
[    1.943997] Loading firmware: amdgpu/yellow_carp_ce.bin
[    1.944275] Loading firmware: amdgpu/yellow_carp_rlc.bin
[    1.944436] Loading firmware: amdgpu/yellow_carp_mec.bin
[    1.944723] Loading firmware: amdgpu/yellow_carp_mec2.bin
[    1.945300] Loading firmware: amdgpu/yellow_carp_sdma.bin
[    1.945541] Loading firmware: amdgpu/yellow_carp_vcn.bin
[    1.945985] amdgpu 0000:74:00.0: amdgpu: Will use PSP to load VCN firmware
[    2.105633] amdgpu 0000:74:00.0: amdgpu: RAS: optional ras ta ucode is not available
[    2.115428] amdgpu 0000:74:00.0: amdgpu: RAP: optional rap ta ucode is not available
[    2.115430] amdgpu 0000:74:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[    2.118567] amdgpu 0000:74:00.0: amdgpu: SMU is initialized successfully!
[    2.162677] snd_hda_intel 0000:74:00.1: bound 0000:74:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
[    2.198242] kfd kfd: amdgpu: Allocated 3969056 bytes on gart
[    2.198293] amdgpu: sdma_bitmap: 3
[    2.212093] amdgpu: HMM registered 3072MB device memory
[    2.212187] amdgpu: Virtual CRAT table created for GPU
[    2.212302] amdgpu: Topology: Add dGPU node [0x1681:0x1002]
[    2.212306] kfd kfd: amdgpu: added device 1002:1681
[    2.212317] amdgpu 0000:74:00.0: amdgpu: SE 1, SH per SE 2, CU per SH 6, active_cu_number 12
[    2.212370] amdgpu 0000:74:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[    2.212371] amdgpu 0000:74:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[    2.212372] amdgpu 0000:74:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[    2.212372] amdgpu 0000:74:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[    2.212373] amdgpu 0000:74:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[    2.212374] amdgpu 0000:74:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[    2.212374] amdgpu 0000:74:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[    2.212375] amdgpu 0000:74:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[    2.212375] amdgpu 0000:74:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[    2.212376] amdgpu 0000:74:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[    2.212377] amdgpu 0000:74:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
[    2.212377] amdgpu 0000:74:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 1
[    2.212378] amdgpu 0000:74:00.0: amdgpu: ring vcn_enc_0.0 uses VM inv eng 1 on hub 1
[    2.212378] amdgpu 0000:74:00.0: amdgpu: ring vcn_enc_0.1 uses VM inv eng 4 on hub 1
[    2.212379] amdgpu 0000:74:00.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 1
[    2.214046] [drm] Initialized amdgpu 3.49.0 20150101 for 0000:74:00.0 on minor 0
[    2.224030] amdgpu 0000:74:00.0: [drm] fb0: amdgpudrmfb frame buffer device


I removed CONFIG_AMD_MEM_ENCRYPT (secure memory encryption) completely, following https://wiki.gentoo.org/wiki/AMDGPU, still the same story.

Any insights would be appreciated, thank you.
_________________
"When you do things right, people won't be sure you've done anything at all."


Last edited by vokiel on Tue Jul 04, 2023 9:39 pm; edited 2 times in total
Back to top
View user's profile Send private message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 730
Location: Winnipeg, Canada

PostPosted: Tue Jul 04, 2023 8:29 pm    Post subject: Reply with quote

Quote:
following https://wiki.gentoo.org/wiki/AMDGPU


Are you using one of the distro kernel packages such as especially gentoo-kernel-bin? If you're not can you validate the behavior symptoms using gentoo-kernel-bin?

One of the unfortunate outstanding validity concerns with gentoo wiki has been the kernel config advice offered by many wiki guides does not abide by kernel config best practices to use kernel modules. The distro kernel configurations reflect the correct configuration by using modules so if you still encounter functionality concerns those system behavior concerns may have been caused by unnecessary config alterations. The kernel config used from the distro kernel if you require a custom config is very beneficial source to use for a valid reference configuration.

If you use a modular config firmware is loaded from userland at boot without manual intervention or configuration required to enforce firmware loading. This also eliminates potential for user error. Firmware file names can and do change with updates invalidating a kernel config that forces inclusion of specific firmware files.

There's also an amdgpu driver bug that causes a kernel panic that at first glance doesn't appear to affect you however you have grepped the dmesg log and that will filter potentially relevant information.
_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!


Last edited by ali3nx on Tue Jul 04, 2023 8:41 pm; edited 3 times in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5037
Location: Bavaria

PostPosted: Tue Jul 04, 2023 8:33 pm    Post subject: Reply with quote

Do you use an initramfs ? Have you configured the kernel self ? With expert mode enabled ? Have you enabled necessary framebuffer device and framebuffer console ?

(see here: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.1#Part_3_-_Must_Haves)
Back to top
View user's profile Send private message
vokiel
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2004
Posts: 110

PostPosted: Tue Jul 04, 2023 8:35 pm    Post subject: Reply with quote

Code:
# cat /boot/config-6.1.31-gentoo |grep AMDGPU
CONFIG_DRM_AMDGPU=m
# CONFIG_DRM_AMDGPU_SI is not set
# CONFIG_DRM_AMDGPU_CIK is not set
CONFIG_DRM_AMDGPU_USERPTR=y


Code:
# lsmod
Module                  Size  Used by
kvm_amd               151552  0
amdgpu               8286208  0
btusb                  49152  0
kvm                  1081344  1 kvm_amd
btrtl                  24576  1 btusb
btbcm                  24576  1 btusb
btintel                40960  1 btusb
drm_ttm_helper         16384  1 amdgpu
irqbypass              16384  1 kvm
ttm                    81920  2 amdgpu,drm_ttm_helper
mfd_core               16384  1 amdgpu
rapl                   20480  0
gpu_sched              49152  1 amdgpu
bluetooth             688128  5 btrtl,btintel,btbcm,btusb
drm_buddy              20480  1 amdgpu
drm_display_helper    151552  1 amdgpu
i2c_piix4              24576  0
i2c_designware_platform    16384  0
i2c_designware_core    28672  1 i2c_designware_platform
efivarfs               24576  1
crct10dif_pclmul       16384  0
crct10dif_common       16384  1 crct10dif_pclmul
crc32_pclmul           16384  0
crc32c_intel           24576  10
aesni_intel           393216  0
crypto_simd            16384  1 aesni_intel
cryptd                 24576  1 crypto_simd
ccp                    98304  1 kvm_amd


Anything not a module potentially breaking amdgpu without any errors?
_________________
"When you do things right, people won't be sure you've done anything at all."
Back to top
View user's profile Send private message
vokiel
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2004
Posts: 110

PostPosted: Tue Jul 04, 2023 9:37 pm    Post subject: Reply with quote

pietinger wrote:
Do you use an initramfs ? Have you configured the kernel self ? With expert mode enabled ? Have you enabled necessary framebuffer device and framebuffer console ?

(see here: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.1#Part_3_-_Must_Haves)


Thanks, nice list. I see the framebuffer console was disabled for some reason. From a newly pulled config I believe, I wouldn't have removed it consiously.

That was it.
_________________
"When you do things right, people won't be sure you've done anything at all."
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5037
Location: Bavaria

PostPosted: Wed Jul 05, 2023 12:06 am    Post subject: Reply with quote

vokiel wrote:
[...] I see the framebuffer console was disabled for some reason.

Maybe I know the reason: framebuffer console is in the default configuration INVISIBLE and ENABLED ... until ... you enable CONFIG_EXPERT=y ... THEN it becomes visible, but is NOT enabled anymore (and you have to do it) ...

(Please dont ask me why this behaviour :evil: )
Back to top
View user's profile Send private message
vokiel
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2004
Posts: 110

PostPosted: Wed Jul 05, 2023 12:23 am    Post subject: Reply with quote

pietinger wrote:
vokiel wrote:
[...] I see the framebuffer console was disabled for some reason.

Maybe I know the reason: framebuffer console is in the default configuration INVISIBLE and ENABLED ... until ... you enable CONFIG_EXPERT=y ... THEN it becomes visible, but is NOT enabled anymore (and you have to do it) ...

(Please dont ask me why this behaviour :evil: )


No problem. I enabled expert to have the znver3 arch, just had to run into it, hahaha
_________________
"When you do things right, people won't be sure you've done anything at all."
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22578

PostPosted: Wed Jul 05, 2023 12:37 am    Post subject: Reply with quote

vokiel wrote:
Code:
# cat /boot/config-6.1.31-gentoo |grep AMDGPU
This is a Useless Use Of Cat.
vokiel wrote:
I enabled expert to have the znver3 arch
I see the thread is marked as solved. What symbol(s) were you missing? Could you elaborate on why you needed EXPERT for anything to do with znver3? I do not see any hits for znver3 in Kconfig files for this kernel, so I wonder what you were trying to do that was gated behind EXPERT.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5037
Location: Bavaria

PostPosted: Wed Jul 05, 2023 2:10 am    Post subject: Reply with quote

Hu wrote:
vokiel wrote:
Code:
# cat /boot/config-6.1.31-gentoo |grep AMDGPU
This is a Useless Use Of Cat.

Yes, it is more senseful to use
Code:
# grep AMDGPU /boot/config-6.1.31-gentoo

I have not mentioned it because the main problem was already solved (missing framebuffer console).
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22578

PostPosted: Wed Jul 05, 2023 2:20 am    Post subject: Reply with quote

I only mentioned it because I was already joining the thread to ask for more detail around znver3 in the kernel configuration files.
Back to top
View user's profile Send private message
vokiel
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2004
Posts: 110

PostPosted: Wed Jul 05, 2023 9:31 pm    Post subject: Reply with quote

Hu wrote:
vokiel wrote:
Code:
# cat /boot/config-6.1.31-gentoo |grep AMDGPU
This is a Useless Use Of Cat.


And I care because?

Hu wrote:
I see the thread is marked as solved. What symbol(s) were you missing? Could you elaborate on why you needed EXPERT for anything to do with znver3? I do not see any hits for znver3 in Kconfig files for this kernel, so I wonder what you were trying to do that was gated behind EXPERT.


CONFIG_FRAMEBUFFER_CONSOLE

You need +experimental to get the option as mentioned on the wiki.
_________________
"When you do things right, people won't be sure you've done anything at all."
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22578

PostPosted: Wed Jul 05, 2023 11:05 pm    Post subject: Reply with quote

vokiel wrote:
Hu wrote:
vokiel wrote:
Code:
# cat /boot/config-6.1.31-gentoo |grep AMDGPU
This is a Useless Use Of Cat.
And I care because?
I expected you would want to become better at using your computer. I was mistaken, and will not trouble you again with usage advice.
vokiel wrote:
Hu wrote:
I see the thread is marked as solved. What symbol(s) were you missing? Could you elaborate on why you needed EXPERT for anything to do with znver3? I do not see any hits for znver3 in Kconfig files for this kernel, so I wonder what you were trying to do that was gated behind EXPERT.
CONFIG_FRAMEBUFFER_CONSOLE

You need +experimental to get the option as mentioned on the wiki.
I see two wiki pages cited in this thread, and neither have znver in them at all.
  • https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.1#Part_3_-_Must_Haves
  • https://wiki.gentoo.org/wiki/AMDGPU
The only reference to USE=experimental is in regards to an option to print the firmware used.
Back to top
View user's profile Send private message
vokiel
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2004
Posts: 110

PostPosted: Wed Jul 05, 2023 11:52 pm    Post subject: Reply with quote

It's on the Ryzen page here: https://wiki.gentoo.org/wiki/Ryzen
_________________
"When you do things right, people won't be sure you've done anything at all."
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2370

PostPosted: Thu Jul 06, 2023 6:26 am    Post subject: Reply with quote

pietinger wrote:
vokiel wrote:
[...] I see the framebuffer console was disabled for some reason.

Maybe I know the reason: framebuffer console is in the default configuration INVISIBLE and ENABLED ... until ... you enable CONFIG_EXPERT=y ... THEN it becomes visible, but is NOT enabled anymore (and you have to do it) ...

(Please dont ask me why this behaviour :evil: )



vokiel wrote:
Hu wrote:
vokiel wrote:
Code:
# cat /boot/config-6.1.31-gentoo |grep AMDGPU
This is a Useless Use Of Cat.


And I care because?

Hu wrote:
I see the thread is marked as solved. What symbol(s) were you missing? Could you elaborate on why you needed EXPERT for anything to do with znver3? I do not see any hits for znver3 in Kconfig files for this kernel, so I wonder what you were trying to do that was gated behind EXPERT.


CONFIG_FRAMEBUFFER_CONSOLE

You need +experimental to get the option as mentioned on the wiki.


That is not correct. I need neither experimental nor CONFIG_EXPERT enabled to see the CONFIG_FRAMEBUFFER_CONSOLE.

Best Regards,
Georgi

p.s. by being rude you turn people who are naturally on your side against you.
Back to top
View user's profile Send private message
vokiel
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2004
Posts: 110

PostPosted: Thu Jul 06, 2023 10:38 am    Post subject: Reply with quote

logrusx wrote:
That is not correct. I need neither experimental nor CONFIG_EXPERT enabled to see the CONFIG_FRAMEBUFFER_CONSOLE.

Best Regards,
Georgi

p.s. by being rude you turn people who are naturally on your side against you.


:lol:

Reading disability? It's okay.. I didn't mention --nodeps yet
_________________
"When you do things right, people won't be sure you've done anything at all."
Back to top
View user's profile Send private message
alfcyber
n00b
n00b


Joined: 07 Feb 2005
Posts: 37

PostPosted: Wed Aug 23, 2023 5:34 pm    Post subject: Reply with quote

Hello, in my case it was solved with :

https://www.phoronix.com/news/AMDGPU-Yellow-Carp-FW

(..carp_asd.bin)

[edit] i'm wrong dmesg load ...asd.bin is not listed

fb config is

Code:
CONFIG_FRAMEBUFFER_CONSOLE=y
# CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION is not set
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y


but was someone able to fix the following error with this APU:
    [ 0.225213] TSC synchronization [CPU#0 -> CPU#1]:
    [ 0.225213] Measured 2628046728 cycles TSC warp between CPUs, turning off TSC clock.
    [ 0.225213] tsc: Marking TSC unstable due to check_tsc_sync_source failed

?
(but without a customized kernel)


cpu is
cpu family : 25
model : 68
model name : AMD Ryzen 7 PRO 6850U with Radeon Graphics
stepping : 1
microcode : 0xa404102
alias rembrandt
_________________
;)play_the_game
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