You are not logged in.

#1 2021-07-11 13:06:58

jonathon
Member
Registered: 2016-09-19
Posts: 128

[solved] 5.13.1 amdgpu black screen

I'm tracking down a regression with 5.13 and amdgpu. I saw this some time around 5.13rc6 but, as it was an early rc, I assumed it would be addressed in due course. 5.13.1 is now in testing and the same thing is happening:

Laptop internal panel display comes up as normal during boot, then "at some point" during boot (possibly kms?) goes dark and does not display anything (Xorg, TTY, ...). Display is still recognised (e.g. windows can be moved back and forth). External HDMI display remains working at all points.

Testing with linux, linux-zen, and linux-mainline (built against the 5.13.1 tag) all exhibit the same issues.

Booting with `amdgpu.dc=0` does work around the black screen, but there remain issues with resume (display doesn't come back).

There's a similar report in Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1981039

Edit: Fixed in 5.14.

Last edited by jonathon (2021-09-04 22:29:37)

Offline

#2 2021-07-13 02:27:49

jonathon
Member
Registered: 2016-09-19
Posts: 128

Re: [solved] 5.13.1 amdgpu black screen

Possibly this: https://gitlab.freedesktop.org/drm/amd/-/issues/1620 . I'm building a patched linux-zen=5.13.1 now to test.

Edit: Partially better. Now the internal panel doesn't blank until X starts/LightDM loads. big_smile

Edit 2: Also not this one, https://gitlab.freedesktop.org/drm/amd/-/issues/1635

Last edited by jonathon (2021-07-13 18:35:23)

Offline

#3 2021-07-20 20:25:23

jonathon
Member
Registered: 2016-09-19
Posts: 128

Re: [solved] 5.13.1 amdgpu black screen

It looks like this was triggered by my adding an "undetected resolution" (which for my laptop panel is a 75Hz refresh rate).

The additional modeline works fine with all kernels up to and including 5.12, but 5.13 does not like it at all...

Section "Monitor"
       Identifier "eDP"
       Modeline "1920x1080_75.00"  220.75  1920 2064 2264 2608  1080 1083 1088 1130 -hsync +vsync
       Option "PreferredMode" "1920x1080_75.00"
EndSection

hmm

Edit: even without this modeline, the screen doesn't come back after a blank (e.g. https://gitlab.freedesktop.org/drm/amd/-/issues/1656). amdgpu has some issues in 5.13...

Last edited by jonathon (2021-07-21 12:37:46)

Offline

#4 2021-07-22 02:27:32

nikofunk
Member
Registered: 2017-01-28
Posts: 8

Re: [solved] 5.13.1 amdgpu black screen

Hi,

Indeed, today I updated from 5.12.15 to 5.13.4 and, as always happens once in a year, amdgpu.dc = 1 broke the eDP monitor to black screen or an extreme multicolour flickering.

It seems a bug in 5.13 and it has been reported in several Linux distros (Fedora, Manjaro, Gentoo, etc)

I've bypassed this stuff by changing amdgpu.dc to 0 (amdgpu.dc = 0) and by downgrading to the latest 5.12 kernel.  (5.12.15)

In my experience, these bugs are always fixed in the next kernel release (in this case it will be, I hope so, 5.14). However, I will try in the next few days if a new release of the 5.13.X kernel fixes this odd issue, and I'll update the info.

The weird stuff of this bug is the fact that the HDMI-A-0 output still working flawlessly with amdgpu.dc = 1 option. That didn't happen in previously amdgpu.dc bugs.

Cheers,

Nico.

Last edited by nikofunk (2021-07-22 02:29:47)

Offline

#5 2021-07-26 11:50:33

jonathon
Member
Registered: 2016-09-19
Posts: 128

Re: [solved] 5.13.1 amdgpu black screen

Issue still present in 5.13.5, but seems to be resolved with 5.14rc3 (so fixed somewhere in the rc2->rc3 window).

There are 17 drm/amd- and amdgpu-related commits so, given the patches I tested above are included, I think it's resolved by combination of several of those patches rather than a single one.

Last edited by jonathon (2021-07-27 11:23:47)

Offline

#6 2021-07-30 15:01:53

nikofunk
Member
Registered: 2017-01-28
Posts: 8

Re: [solved] 5.13.1 amdgpu black screen

Hi Jonathon

Thanks for the info, I didn't have time to check the bug fix until today. So, as I thought, 5.14 will fix this issue. It's a classic (insert magadascar movie meme in here).

Also the bug persist in 5.13.6 kernel.

I think [Solved] tag should be included after 5.14 official release.

Cheers,

Offline

#7 2021-08-22 08:25:21

zesko
Member
Registered: 2021-08-22
Posts: 11

Re: [solved] 5.13.1 amdgpu black screen

I have the similar issue with dual same monitors 1440p using Radeon RX5700.

Sometimes flickering appeared in Linux kernel 5.10.  If the kernel parameter "amdgpu.dpm=0" was set, then no flickering anymore.
But I tried to upgrade it to Kernel 5.13, then full black screen no TTY Terminal at booting. I had to remove the kernel parameter "amdgpu.dpm=0", then it starts slow and a bit long black screen.

Offline

#8 2021-09-04 22:30:22

jonathon
Member
Registered: 2016-09-19
Posts: 128

Re: [solved] 5.13.1 amdgpu black screen

[testing] has 5.14.1 with the various patches that fix the issue. Marked as solved.

Offline

Board footer

Powered by FluxBB