Bug 209417

Summary: kernel-5.8*, amdgpu - Blank screen shortly after boot, "fixed" with suspend and wake up
Product: Drivers Reporter: Juan (juantxorena)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: NEW ---    
Severity: normal CC: alexdeucher, juantxorena
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: >=5.8 Subsystem:
Regression: No Bisected commit-id:
Attachments: boot log 5.8.11 fedora
boot log 5.7.17 fedora - working
bad-commit

Description Juan 2020-09-28 16:14:53 UTC
Created attachment 292699 [details]
boot log 5.8.11 fedora

When using a 5.8.* kernel, the following happens:

- During boot, some initial messages appear, then the screen flickers a couple of times and it goes blank

- I blind-enter the LUKS password, and it appears to work because

- pressing the sleep key of the keyboard (laptop) works and the laptop suspends

- after waking it up, it works normally

This happens with the normal boot options and without options "rhgb" and "quiet". The problem goes away when using the "nomodeset" option in the kernel.

Hardware: Dell Precision 7530 laptop, Radeon Pro WX 4150 and integrated GPU Intel UHD Graphics 630.

I have tried this with fedora kernels (the distro I use), and also with an OpenSUSE live USB with a kernel 5.8.10. The problem persists, and the "fix" is the same.

I attach the kernel log of a boot with the 5.8.11 kernel.

Extra information: I have had some problems with suspend, after suspending the screen is blank and I have to close the lid and open again. This happens since various kernels ago, but I never reported because it wasn't serious and I use hibernate anyway. It may be related, since it works after suspend-wake up.
Comment 1 Juan 2020-09-28 16:15:59 UTC
Created attachment 292701 [details]
boot log 5.7.17 fedora - working

This is the boot log of a boot with the kernel 5.7.17 with fedora, which doesn't present this problem.
Comment 2 Alex Deucher 2020-09-29 14:12:07 UTC
Can you bisect?
Comment 3 Juan 2020-09-29 17:38:07 UTC
(In reply to Alex Deucher from comment #2)
> Can you bisect?

I never did it but I'm happy to help. It will take a while for me to do it, though. Any guidance would be appreciated.

I assume that I will start with the first vanilla version that presented this problem, right?
Comment 4 Alex Deucher 2020-09-29 17:53:07 UTC
yeah, if it was working with 5.7.0 and not working with 5.8.0, you can just do a bit bisect on https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ between the v5.7 and v5.8 tags.  Google for "kernel git bisect howto".
Comment 5 Juan 2020-10-01 20:36:18 UTC
Created attachment 292745 [details]
bad-commit

I finally get to do the bisect. I attach the result of the guilty commit. I wrongly assumed that it was a problem of amdgpu, but apparently is related to the intel i915 drivers. I guess I should move this bug to the proper place.
Comment 6 Alex Deucher 2020-10-01 20:49:44 UTC
Please change the component to Video(DRI - Intel)