Bug 2136234 - No video on Raspberry Pi 4 with kernel 5.19.15 and 5.19.16 (testing)
Summary: No video on Raspberry Pi 4 with kernel 5.19.15 and 5.19.16 (testing)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 37
Hardware: aarch64
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Peter Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedBlocker
: 2136581 (view as bug list)
Depends On:
Blocks: F37FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2022-10-19 17:04 UTC by Michael Katzmann
Modified: 2022-11-08 01:49 UTC (History)
25 users (show)

Fixed In Version: kernel-5.19.16-301.fc37 kernel-6.0.7-301.fc37
Clone Of:
Environment:
Last Closed: 2022-11-08 01:49:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
journal from last boot on 5.19.16 where GUI did not show on HDMI output (203.00 KB, text/plain)
2022-10-19 17:04 UTC, Michael Katzmann
no flags Details
dmesg output (from geoff marr on the dupe bug) (60.19 KB, text/plain)
2022-10-20 17:01 UTC, Adam Williamson
no flags Details
5.19.15-301 with drm.debug=14 (85.91 KB, text/plain)
2022-10-20 20:05 UTC, Michael Katzmann
no flags Details
5.19.14-300 with drm.debug=14 (working kernel for reference) (82.13 KB, text/plain)
2022-10-20 21:07 UTC, Michael Katzmann
no flags Details
5.19.15-300 with drm.debug=14 (also working kernel for reference) (131.94 KB, text/plain)
2022-10-20 21:44 UTC, Michael Katzmann
no flags Details
boot.log_kernel.5.19.16.txt (44.19 KB, application/octet-stream)
2022-10-21 13:16 UTC, Sally
no flags Details
boot.log_kernel.5.19.14.txt (65.89 KB, application/octet-stream)
2022-10-21 13:17 UTC, Sally
no flags Details
d (98.51 KB, text/plain)
2022-10-21 13:18 UTC, Sally
no flags Details
dmesg kernel.5.19.14 (52.07 KB, text/plain)
2022-10-21 13:26 UTC, Sally
no flags Details

Description Michael Katzmann 2022-10-19 17:04:03 UTC
Created attachment 1919107 [details]
journal from last boot on 5.19.16 where GUI did not show on HDMI output

The fedora 37 installation on Raspberry Pi 4 was working with gdm + gnome GUI using kernel 5.19.14 but fails to give a GUI screen with kernel 5.19.15 (or 16).
The screen is blank.

Boot under 5.19.15 or .16 and there is no display on HDMI output.
Boot under 5.19.14 and do get the gdm GUI screen.

Comment 1 Adam Williamson 2022-10-20 16:48:57 UTC
Several folks have confirmed this, some from our team, and Sally A. Haj and 'yesno' on #fedora-arm chat. Proposing as a Final blocker as a violation of Basic criterion "A system installed with a release-blocking desktop must boot to a log in screen where it is possible to log in to a working desktop using a user account created during installation or a 'first boot' utility" on Raspberry Pi 4, which is a supported/blocking ARM platform.

Comment 2 Adam Williamson 2022-10-20 17:00:31 UTC
*** Bug 2136581 has been marked as a duplicate of this bug. ***

Comment 3 Adam Williamson 2022-10-20 17:01:38 UTC
Created attachment 1919292 [details]
dmesg output (from geoff marr on the dupe bug)

Comment 4 Geoffrey Marr 2022-10-20 17:10:10 UTC
For reference, rawhide kernel fedora 6.1.0-0.rc1.20221018gitbb1a1146467a.16.fc38.aarch64 fixes this issue.

Comment 5 Adam Williamson 2022-10-20 18:05:39 UTC
jforbes asks if someone can test whether 5.19.15-300 works, which would help narrow down the likely causes of this.

Comment 6 Ben Cotton 2022-10-20 18:12:50 UTC
In today's go/no-go meeting[1], we agreed that this violates Basic criterion "A system installed with a release-blocking desktop must boot to a log in screen where it is possible to log in to a working desktop using a user account created during installation or a 'first boot' utility" on RPi 4

[1] https://ia904705.us.archive.org/6/items/37-final-go-no-go-meeting.-2022-10-20-17.13.log/37-final-go_no_go-meeting.2022-10-20-17.13.log.txt

Comment 7 Adam Williamson 2022-10-20 18:16:53 UTC
So, some background here: in 5.19.15-301 we backported this patch series - https://lore.kernel.org/lkml/20220929-rpi-pi3-unplugged-fixes-v1-0-cd22e962296c@cerno.tech/ - which is intended to fix video on raspi 3, which an earlier change intended for raspi 4 had apparently broken. We kinda suspect those patches are the cause of this, which is why we want to see if 5.19.15-300 (which doesn't have those patches) works.

That patch series is only in drm-misc-fixes upstream, it has not landed in Linus' tree yet AFAICS. So this may be working on Rawhide kernels simply because the change that breaks it isn't in those kernels yet. Justin didn't backport this patch series to the Rawhide kernel (AFAICS), only the F37 one.

Comment 8 Adam Williamson 2022-10-20 18:28:19 UTC
I guess it might also be useful to have dmesg/journal output booting with `drm.debug=14`.

Comment 9 Peter Robinson 2022-10-20 19:31:24 UTC
I did actually test this on a number of my setups and it was working on the RPi4 when I was testing it (I have around 8 various different RPi setups of varying configs that I test).

Also note that the vc4 driver moves widely around, just starting to look at this.

Comment 10 Michael Katzmann 2022-10-20 20:05:06 UTC
Created attachment 1919316 [details]
5.19.15-301 with drm.debug=14

Here is a boot log (kernel journal messages) with drm.debug=14.

Comment 11 Adam Williamson 2022-10-20 20:48:48 UTC
Thanks! I guess same output from a working kernel - ideally 5.19.15-300 , assuming we're right that that works - would also be useful.

Comment 12 Michael Katzmann 2022-10-20 21:07:33 UTC
Created attachment 1919318 [details]
5.19.14-300 with drm.debug=14 (working kernel for reference)

kernel 5.19.14-300 boot log with drm.debug=14 (working video kernel for reference)

(Sorry couldn't find .15-300 to test)

Comment 13 Justin M. Forbes 2022-10-20 21:22:51 UTC
Try 'koji download-build --arch=aarch64 kernel-5.19.15-300.fc37'

Comment 14 Adam Williamson 2022-10-20 21:23:47 UTC
Thanks. 5.19.15-300 is here: https://koji.fedoraproject.org/koji/buildinfo?buildID=2074685

Comment 15 Michael Katzmann 2022-10-20 21:44:22 UTC
Created attachment 1919321 [details]
5.19.15-300 with drm.debug=14 (also working kernel for reference)

Ah... you guys make it too easy 8-)
your supposition seems correct -300 works, 301 does not

Comment 16 Maxime Ripard 2022-10-21 07:13:51 UTC
I can confirm that 5.19.15 plus https://lore.kernel.org/lkml/20220929-rpi-pi3-unplugged-fixes-v1-0-cd22e962296c@cerno.tech/ are breaking the output on the Pi4. I'm currently looking into it.

Comment 17 Maxime Ripard 2022-10-21 09:35:05 UTC
So, I think I found a fix. It brings back the Pi4 but I haven't tested it on a Pi3 not connected to a monitor. I'll let you know the result.

Comment 18 Maxime Ripard 2022-10-21 13:11:25 UTC
I just posted that patch here: https://lore.kernel.org/dri-devel/20221021130908.2202086-1-maxime@cerno.tech/

It works for me on both the Pi4 and Pi3, with vc4 builtin or a module.

Comment 19 Sally 2022-10-21 13:14:14 UTC
* All tests done in F37 Workstation and XFCE Spin.
* Kernel 5.19.15-300 and bellow that versions are working.
* kernels 5.19.15-301 and above don't work.
* Peter Robinson may has different RPi4 revision, and if so, might be that's the reason behind his devices have no issue.

Comment 20 Sally 2022-10-21 13:16:55 UTC
Created attachment 1919398 [details]
boot.log_kernel.5.19.16.txt

Comment 21 Sally 2022-10-21 13:17:41 UTC
Created attachment 1919399 [details]
boot.log_kernel.5.19.14.txt

Comment 22 Sally 2022-10-21 13:18:22 UTC
Created attachment 1919400 [details]
d

Comment 23 Sally 2022-10-21 13:25:14 UTC
Comment on attachment 1919400 [details]
d

dmesg_kernel.5.19.16-300

Comment 24 Sally 2022-10-21 13:26:23 UTC
Created attachment 1919402 [details]
dmesg kernel.5.19.14

Comment 25 Sally 2022-10-21 15:07:48 UTC
Same issue with kernel-6.0.2-301.fc37.

Comment 26 Peter Robinson 2022-10-21 15:08:37 UTC
So scratch build here with the proposed upstream fix [1] for this. With a single boot on my rpi4 8gb this boots to GDM, will test wider now but it's here for others to test now too.

https://koji.fedoraproject.org/koji/taskinfo?taskID=93277266

[1] https://patchwork.freedesktop.org/patch/508036/

Thanks to Maxime for the super quick turn around here!

Comment 28 Peter Robinson 2022-10-21 15:19:26 UTC
PR for jforbes assuming this passes muster: https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2115

Comment 29 Michael Katzmann 2022-10-21 15:39:03 UTC
This fix worked for me (RPi 4 with 4GB ram). I now see gdm with the build kernel-5.19.16-300.rpi1.fc37.aarch64

Comment 30 Fedora Update System 2022-10-21 17:26:17 UTC
FEDORA-2022-1c6a1ca835 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-1c6a1ca835

Comment 31 Sally 2022-10-21 18:36:52 UTC
The new update has solved the problem, thank you all.

Comment 32 Fedora Update System 2022-10-22 13:12:05 UTC
FEDORA-2022-1c6a1ca835 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-1c6a1ca835`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-1c6a1ca835

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 33 Geoffrey Marr 2022-10-24 15:38:14 UTC
Tested Fedora-Workstation-37-1.3.aarch64.raw.xz with fixed kernel on RPi400, no longer see the video issue!

Comment 34 Adam Williamson 2022-10-24 16:33:32 UTC
That sounds like VERIFIED to me!

Comment 35 Fedora Update System 2022-10-24 17:50:59 UTC
FEDORA-2022-1c6a1ca835 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 36 Adam Williamson 2022-11-04 16:17:06 UTC
It seems this effectively regressed when we pulled in the 6.0 kernel series:

[Sally A. haj] A new installation with 'Fedora-Xfce-37-1.6.aarch64.raw.xz', has blank screen, seems the same issue as before. Has anyone tested?
[Sally A. haj] I think it comes with kernel-6.0.6-300.fc37
[jforbes] Sally A. haj: wouldn't be the same issue, drm-vc4-hdmi-enforce-the-minimum-rate-at-runtime_res.patch was actually included in 6.0.6 upstream
[Sally A. haj] jforbes: Same problem with kernel-6.0.7-300.fc37, installed this kernel in another ssd. by the way "5.19.16-301.fc37" is working fine
[jforbes] Sally A. haj: RPi 4?
[Sally A. haj] yes

jforbes says "The old rPi 4 issue came back, we are carrying the patch still in 6.0, but the rPi 3 patches were not in 6.0...when they came in, it messed up the merge. I have a test built already". Anyhow, the upshot is, this is borked again and we need a new kernel (it will be 6.0.7-301) to fix it.

Comment 37 Fedora Update System 2022-11-04 20:24:05 UTC
FEDORA-2022-f3e83cad6f has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-f3e83cad6f

Comment 38 Adam Williamson 2022-11-07 17:32:50 UTC
pbrobinson wrote on the kernel channel this morning: "the 6.0.7-301.fc37.aarch64 kernel looks good for me on the rpi4/workstation". And that's definitely the kernel in RC-1.7. So I think we're good here, though it'd be great if someone can absolutely check that the RC-1.7 images work on a Pi 4.

Comment 39 Sally 2022-11-07 21:06:03 UTC
Fedora 37 RC-1.7/workstation on RPi4 is booting and working just fine.
Note: There is no graphical boot splash, it's just text lines moving. (I think it's related to "plymouth")

Comment 40 Adam Williamson 2022-11-07 22:30:42 UTC
Thanks for the confirmation!

Comment 41 Fedora Update System 2022-11-08 01:49:24 UTC
FEDORA-2022-f3e83cad6f has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.