All of lore.kernel.org
 help / color / mirror / Atom feed
* drm/vc4: module dysfunctional on Raspberry Pi 3B as of 5.18.0
@ 2022-06-05 18:01 Peter Mattern
  2022-06-08 13:10 ` Peter Robinson
  0 siblings, 1 reply; 16+ messages in thread
From: Peter Mattern @ 2022-06-05 18:01 UTC (permalink / raw)
  To: dri-devel

Hello.

As of Linux 5.18.0, module vc4 apparently isn't working on Raspberry Pi 
3B any more.

If a monitor is attached to the device, the boot messages show up as 
usual, but right when KMS starts, the screen turns black. Similarly, the 
screen also turns black when the module is blacklisted at boot time and 
loaded from the running system.
The problem looks quite similar to the one posted some months ago in [1].

Unfortunately, looking through systemd's journal didn't seem to yield 
any real hint. Nevertheless, the results from grepping vc4 are
→ 5.17.1
 > kernel: vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
 > kernel: rc rc0: vc4 as /devices/platform/soc/3f902000.hdmi/rc/rc0
 > kernel: input: vc4 as /devices/platform/soc/3f902000.hdmi/rc/rc0/input0
 > kernel: vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
 > kernel: vc4-drm soc:gpu: bound 3f806000.vec (ops vc4_vec_ops [vc4])
 > kernel: vc4-drm soc:gpu: bound 3f004000.txp (ops vc4_txp_ops [vc4])
 > kernel: vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops 
[vc4])
 > kernel: vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops 
[vc4])
 > kernel: vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops 
[vc4])
 > kernel: vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
 > kernel: fb0: switching to vc4 from simple
 > kernel: [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
 > kernel: vc4-drm soc:gpu: [drm] fb0: vc4drmfb frame buffer device
 > systemd-logind[338]: Watching system buttons on /dev/input/event0 (vc4)
→ 5.18.0
 > kernel: fb0: switching to vc4 from simple
 > kernel: vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
 > kernel: rc rc0: vc4 as /devices/platform/soc/3f902000.hdmi/rc/rc0
 > kernel: input: vc4 as /devices/platform/soc/3f902000.hdmi/rc/rc0/input0
 > kernel: vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
 > kernel: vc4-drm soc:gpu: bound 3f806000.vec (ops vc4_vec_ops [vc4])
 > kernel: vc4-drm soc:gpu: bound 3f004000.txp (ops vc4_txp_ops [vc4])
 > kernel: vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops 
[vc4])
 > kernel: vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops 
[vc4])
 > kernel: vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops 
[vc4])
 > kernel: vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
 > kernel: [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
 > kernel: vc4-drm soc:gpu: [drm] fb0: vc4drmfb frame buffer device
 > systemd-logind[337]: Watching system buttons on /dev/input/event0 (vc4)

Regards,

Peter Mattern

[1] 
https://lists.freedesktop.org/archives/dri-devel/2022-January/339458.html


^ permalink raw reply	[flat|nested] 16+ messages in thread
* drm/vc4: module dysfunctional on Raspberry Pi 3B as of 5.18.0
@ 2022-06-05 23:57 Stefan Wahren
  0 siblings, 0 replies; 16+ messages in thread
From: Stefan Wahren @ 2022-06-05 23:57 UTC (permalink / raw)
  To: Peter Mattern; +Cc: Maxime Ripard, dri-devel

Hi Peter,

i didn't subscribe to dri-devel, but i noticed your bug report.

Could you please provide more information:

Which kernel config do you use (is it a defconfig)?
Do you use the mainline device tree blob or the Raspberry Pi DTB?
Please provide the version/date of the GPU firmware?
Do you have any KMS related setting in the config.txt?
Can you provide a full dmesg for the bad case?

Best regards


^ permalink raw reply	[flat|nested] 16+ messages in thread
* drm/vc4: module dysfunctional on Raspberry Pi 3B as of 5.18.0
@ 2022-06-09 12:49 Peter Mattern
  0 siblings, 0 replies; 16+ messages in thread
From: Peter Mattern @ 2022-06-09 12:49 UTC (permalink / raw)
  To: dri-devel

 > Which kernel config do you use (is it a defconfig)?
These are custom configs provided by the distribution, the origin of 
which I do not know.
You can find them at [1] (5.17.0, used in 5.17.1 as well) and [2] 
(5.18.0, modified in 5.18.1).
The difference between these files and their upstream (kernel.org) 
counterpart as created by running 'make ARCH=arm64 defconfig' is about 
11k lines, the difference between the two files of the distribution 
around 800 lines. Didn't investigate the differences in detail yet.

 > Do you use the mainline device tree blob or the Raspberry Pi DTB?
It's the one from the kernel.org sources.
Note: At times you'll find claims that the DTBs of the Raspberry Pi 
Foundation were used on Arch Linux ARM. These probably are due to the 
fact that those blobs happen to be around. But U-Boot's boot.scr does 
pick the "mainline" ones in /boot/dtbs/.

 > Please provide the version/date of the GPU firmware?
It is provided by the Broadcom bootloader package (which is used to 
chainload U-Boot). It happened to be updated in parallel with kernel 
5.18.0 to commit f145afcf [3] and has since been updated to upstream 
commit 8f91a969. Those latest changes don't seem to have an impact on 
the problem we're discussing here (not all combinations bootloader / 
kernel tested).

 > Do you have any KMS related setting in the config.txt?
No.
My epic config.txt is: enable_uart=1

 > Can you provide a full dmesg for the bad case?
I sure could. But grepping through it yields the exact same results 
included in my first post. And assuming this list scrubs attachments I'm 
not sure whether posting those 500 lines in a mail would make sense?

[1] 
https://github.com/archlinuxarm/PKGBUILDs/blob/ae861a830e6e1d6d3e37c94462c8f48671aa9b79/core/linux-aarch64/config
[2] 
https://github.com/archlinuxarm/PKGBUILDs/blob/9c5b51b25ecc038cd505b26e15bb80464783a713/core/linux-aarch64/config
[3] 
https://github.com/archlinuxarm/PKGBUILDs/blob/722080b0aaa7e158d91b323d27c41839d1ef42f0/alarm/raspberrypi-bootloader/PKGBUILD


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-06-10 22:02 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-05 18:01 drm/vc4: module dysfunctional on Raspberry Pi 3B as of 5.18.0 Peter Mattern
2022-06-08 13:10 ` Peter Robinson
2022-06-08 14:36   ` Maxime Ripard
2022-06-08 15:14     ` Peter Robinson
2022-06-08 15:36       ` Maxime Ripard
2022-06-09  9:23         ` Maxime Ripard
2022-06-09 11:49           ` Peter Robinson
2022-06-09 13:37           ` Peter Mattern
2022-06-08 22:47     ` Stefan Wahren
2022-06-09 11:52       ` Peter Robinson
2022-06-09 21:33         ` Stefan Wahren
2022-06-10 20:06           ` Stefan Wahren
2022-06-10 22:02           ` Peter Robinson
2022-06-09 13:08     ` Peter Mattern
2022-06-05 23:57 Stefan Wahren
2022-06-09 12:49 Peter Mattern

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.