Skip to contentSkip to conversation

drm/vc4: module dysfunctional on Raspberry Pi 3B as of 5.18.0

DISCUSSION Peter Mattern 4 participants 14 messages Jun 5, 2022 – Jun 10, 2022

lore
Share & tools
lore
#0 lore raw

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

Quoted 6 lines

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])

Quoted 8 lines

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

Quoted 6 lines

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])

Quoted 8 lines

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

#1 lore raw

Hi Peter,

Adding Stefan and Maxime

Quoted 11 lines

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

I'm seeing the same issue with vc4 on a RPi3 on 5.18.1 on Fedora so can confirm the regression. Maxime would know what might be up here?

Quoted 44 lines

→ 5.17.1

Quoted 7 lines

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])

Quoted 1 line

kernel: vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops

[vc4])

Quoted 1 line

kernel: vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops

[vc4])

Quoted 5 lines

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

Quoted 8 lines

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])

Quoted 1 line

kernel: vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops

[vc4])

Quoted 1 line

kernel: vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops

[vc4])

Quoted 4 lines

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

#2 lore raw

Hi Peter(s)

Quoted 12 lines · Peter Robinson

Hi Peter,

Adding Stefan and Maxime

Quoted 8 lines

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].

If I understand you properly, it results in a blank screen if the monitor is connected, but the system is still responsive?

If so, it's a very different problem than the link you provided, since it was occurring when no monitor was connected and resulted in a total system hang.

Quoted 5 lines
Quoted 2 lines

Unfortunately, looking through systemd's journal didn't seem to yield any real hint. Nevertheless, the results from grepping vc4 are

I'm seeing the same issue with vc4 on a RPi3 on 5.18.1 on Fedora so can confirm the regression. Maxime would know what might be up here?

I tested on 5.18 on my 3B and it works well. Could you paste your kernel configuration and config.txt somewhere?

Quoted 28 lines
Quoted 28 lines

→ 5.17.1

Quoted 7 lines

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])

Quoted 1 line

kernel: vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops

[vc4])

Quoted 1 line

kernel: vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops

[vc4])

Quoted 5 lines

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

Quoted 8 lines

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])

Quoted 8 lines
Quoted 8 lines
Quoted 1 line

kernel: vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops

[vc4])

Quoted 1 line

kernel: vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops

[vc4])

Quoted 4 lines

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)

Yeah, it doesn't look that different.

Maxime

#3 lore raw

Hi Maxime,

Quoted 11 lines
Quoted 8 lines
Quoted 8 lines

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].

If I understand you properly, it results in a blank screen if the monitor is connected, but the system is still responsive?

Yes, it boots fine, I see all serial console output and the module loads etc, without a screen I didn't notice the issue

Quoted 4 lines

If so, it's a very different problem than the link you provided, since it was occurring when no monitor was connected and resulted in a total system hang.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Unfortunately, looking through systemd's journal didn't seem to yield any real hint. Nevertheless, the results from grepping vc4 are

I'm seeing the same issue with vc4 on a RPi3 on 5.18.1 on Fedora so can confirm the regression. Maxime would know what might be up here?

I tested on 5.18 on my 3B and it works well. Could you paste your kernel configuration and config.txt somewhere?

It boots with output on 5.17.13, and not on 5.18. The config is at the following link (Fedora config). The config.txt is below.
https://pbrobinson.fedorapeople.org/config-5.18.2-201.fc36.armv7hl

===
# Raspberry Pi 2
[pi2]
kernel=rpi2-u-boot.bin
dtoverlay=upstream

# Raspberry Pi 3
[pi3]
kernel=rpi3-u-boot.bin
dtoverlay=upstream

# Raspberry Pi 4
[pi4]
kernel=rpi4-u-boot.bin
dtoverlay=upstream-pi4

# Default Fedora configs for all Raspberry Pi Revisions
[all]
# Enable UART
# Only enable UART if you're going to use it as it has speed implications # Serial console is ttyS0 on RPi3 and ttyAMA0 on all other variants

# u-boot will auto detect serial and pass corrent options to kernel if enabled
# Speed details: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=141195

# Terrible hack to work around U-Boot issues on most devices enable_uart=1

# Early boot delay in the hope monitors are initialised enough to provide EDID bootcode_delay=1

# We need this to be 32Mb to support VCHI services and drivers which use them

# but this isn't used by mainline VC4 driver so reduce to lowest supported value
# You need to set this to at least 80 for using the camera
gpu_mem=32

# Use eXtended firmware by default
start_x=1

# Stop the RPi turning on HDMI monitors on reboot
hdmi_ignore_cec_init=1

# New option to allow the firmware to load upstream dtb # Will allow things like camera, touchscreen etc to work OOTB upstream_kernel=1
===

#4 lore raw
Quoted 22 lines · Peter Robinson
Quoted 11 lines
Quoted 8 lines
Quoted 8 lines

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].

If I understand you properly, it results in a blank screen if the monitor is connected, but the system is still responsive?

Yes, it boots fine, I see all serial console output and the module loads etc, without a screen I didn't notice the issue

Quoted 7 lines

If so, it's a very different problem than the link you provided, since it was occurring when no monitor was connected and resulted in a total system hang.

Quoted 3 lines
Quoted 2 lines

Unfortunately, looking through systemd's journal didn't seem to yield any real hint. Nevertheless, the results from grepping vc4 are

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

I'm seeing the same issue with vc4 on a RPi3 on 5.18.1 on Fedora so can confirm the regression. Maxime would know what might be up here?

I tested on 5.18 on my 3B and it works well. Could you paste your kernel configuration and config.txt somewhere?

It boots with output on 5.17.13, and not on 5.18.

Interestingly, it works for 5.18 in my case but doesn't for the current drm-misc-next branch with similar symptoms.

I'll look into that one and see if the two might be related.

Thanks!
Maxime

#5 lore raw
Quoted 29 lines · Maxime Ripard
Quoted 28 lines · Peter Robinson
Quoted 11 lines
Quoted 8 lines
Quoted 8 lines

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].

If I understand you properly, it results in a blank screen if the monitor is connected, but the system is still responsive?

Yes, it boots fine, I see all serial console output and the module loads etc, without a screen I didn't notice the issue

Quoted 12 lines

If so, it's a very different problem than the link you provided, since it was occurring when no monitor was connected and resulted in a total system hang.

Quoted 5 lines
Quoted 2 lines

Unfortunately, looking through systemd's journal didn't seem to yield any real hint. Nevertheless, the results from grepping vc4 are

I'm seeing the same issue with vc4 on a RPi3 on 5.18.1 on Fedora so can confirm the regression. Maxime would know what might be up here?

I tested on 5.18 on my 3B and it works well. Could you paste your kernel configuration and config.txt somewhere?

Quoted 6 lines
Quoted 1 line

It boots with output on 5.17.13, and not on 5.18.

Interestingly, it works for 5.18 in my case but doesn't for the current drm-misc-next branch with similar symptoms.

I'll look into that one and see if the two might be related.

Actually, it was because drm-misc-next was missing 88110a9f6209, and thus the DRM driver wouldn't load.

Once that patch is applied, 5.18 and all -rc work fine on my side.

Could you start a bisection maybe?

Maxime

#6 lore raw
Quoted 33 lines
Quoted 33 lines
Quoted 22 lines
Quoted 11 lines
Quoted 8 lines
Quoted 8 lines

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].

If I understand you properly, it results in a blank screen if the monitor is connected, but the system is still responsive?

Yes, it boots fine, I see all serial console output and the module loads etc, without a screen I didn't notice the issue

Quoted 7 lines

If so, it's a very different problem than the link you provided, since it was occurring when no monitor was connected and resulted in a total system hang.

Quoted 3 lines
Quoted 2 lines

Unfortunately, looking through systemd's journal didn't seem to yield any real hint. Nevertheless, the results from grepping vc4 are

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

I'm seeing the same issue with vc4 on a RPi3 on 5.18.1 on Fedora so can confirm the regression. Maxime would know what might be up here?

I tested on 5.18 on my 3B and it works well. Could you paste your kernel configuration and config.txt somewhere?

It boots with output on 5.17.13, and not on 5.18.

Interestingly, it works for 5.18 in my case but doesn't for the current drm-misc-next branch with similar symptoms.

Quoted 6 lines
Quoted 1 line

I'll look into that one and see if the two might be related.

Actually, it was because drm-misc-next was missing 88110a9f6209, and thus the DRM driver wouldn't load.

Once that patch is applied, 5.18 and all -rc work fine on my side.

So that patch looks like it's already in 5.18.x:

$ git tag --contains 88110a9f6209
v5.18
v5.18.1
v5.18.2
v5.18.3
v5.19-rc1
Quoted 3 lines

Could you start a bisection maybe?

Maxime

#7 lore raw
In reply to Maxime Ripard
Quoted 1 line

Could you start a bisection maybe?

I for one am having two issues here.

The harmless one is that I'm lacking a cooler for the RPi and my cross compiling skills have become a bit rusty. Both could be fixed quickly, of course.

The not so harmless one is that kernel 5.18.x is completely unusable due to an other regression: the SD card is slow to a degree that makes it rather unusable, rather simple tasks are tainting the kernel because of this. E. g. a simple kernel update takes half an hour on 5.18.x. Neither sure what's the culprit here nor how to deal with it.

Nonetheless:
Could the module be installed without updating the kernel as a whole, e. g.by DKMS?
Is there a way to narrow down the commits in question, e. g. something like 'git log ./drivers/gpu/drm/vc4/' in a Git checkout of the kernel sources?

#8 lore raw
In reply to Maxime Ripard

Hi,

Am 08.06.22 um 16:36 schrieb Maxime Ripard:

Quoted 15 lines

Hi Peter(s)

Quoted 12 lines · Peter Robinson

Hi Peter,

Adding Stefan and Maxime

Quoted 8 lines

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].

Quoted 11 lines

If I understand you properly, it results in a blank screen if the monitor is connected, but the system is still responsive?

If so, it's a very different problem than the link you provided, since it was occurring when no monitor was connected and resulted in a total system hang.

Quoted 4 lines
Quoted 2 lines

Unfortunately, looking through systemd's journal didn't seem to yield any real hint. Nevertheless, the results from grepping vc4 are

I'm seeing the same issue with vc4 on a RPi3 on 5.18.1 on Fedora so can confirm the regression. Maxime would know what might be up here?

i assume you are using the downstream DTB?

Please provide the version/date of the GPU firmware?

Quoted 42 lines

I tested on 5.18 on my 3B and it works well. Could you paste your kernel configuration and config.txt somewhere?

Quoted 28 lines
Quoted 28 lines

→ 5.17.1

Quoted 7 lines

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])

Quoted 1 line

kernel: vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops

[vc4])

Quoted 1 line

kernel: vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops

[vc4])

Quoted 5 lines

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

Quoted 8 lines

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])

Quoted 8 lines
Quoted 8 lines
Quoted 1 line

kernel: vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops

[vc4])

Quoted 1 line

kernel: vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops

[vc4])

Quoted 4 lines

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)

Yeah, it doesn't look that different.

Maxime

#9 lore raw
Quoted 15 lines
Quoted 15 lines
Quoted 8 lines
Quoted 8 lines

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].

If I understand you properly, it results in a blank screen if the monitor is connected, but the system is still responsive?

If so, it's a very different problem than the link you provided, since it was occurring when no monitor was connected and resulted in a total system hang.

Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

Unfortunately, looking through systemd's journal didn't seem to yield any real hint. Nevertheless, the results from grepping vc4 are

I'm seeing the same issue with vc4 on a RPi3 on 5.18.1 on Fedora so can confirm the regression. Maxime would know what might be up here?

i assume you are using the downstream DTB?

In this case it's the one in the Linux kernel (not sure if that's upstream or downstream in this context) not the one provided by the RPi firmware.

Quoted 1 line

Please provide the version/date of the GPU firmware?

[    6.205121] raspberrypi-firmware soc:firmware: Attached to firmware

from 2022-05-24T13:26:52
Which is git f145afc

#10 lore raw

Hi Peter,

Am 09.06.22 um 13:52 schrieb Peter Robinson:

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 8 lines
Quoted 8 lines

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].

If I understand you properly, it results in a blank screen if the monitor is connected, but the system is still responsive?

If so, it's a very different problem than the link you provided, since it was occurring when no monitor was connected and resulted in a total system hang.

Quoted 8 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

Unfortunately, looking through systemd's journal didn't seem to yield any real hint. Nevertheless, the results from grepping vc4 are

I'm seeing the same issue with vc4 on a RPi3 on 5.18.1 on Fedora so can confirm the regression. Maxime would know what might be up here?

i assume you are using the downstream DTB?

In this case it's the one in the Linux kernel (not sure if that's upstream or downstream in this context) not the one provided by the RPi firmware.

okay thanks. I tried the kernel config but its huge.

Is it correct that the issue occurs with your kernel config, but not with multi_v7_defconfig?

Quoted 5 lines
Quoted 2 lines

Please provide the version/date of the GPU firmware?

[    6.205121] raspberrypi-firmware soc:firmware: Attached to firmware

from 2022-05-24T13:26:52
Which is git f145afc

This is good. I had issues with older firmware which didn't implement RPI_FIRMWARE_NOTIFY_DISPLAY_DONE. So it must be something different.

#11 lore raw

Hi,

Am 09.06.22 um 23:33 schrieb Stefan Wahren:

Quoted 22 lines

Hi Peter,

Am 09.06.22 um 13:52 schrieb Peter Robinson:

Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 8 lines
Quoted 8 lines

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].

If I understand you properly, it results in a blank screen if the monitor is connected, but the system is still responsive?

If so, it's a very different problem than the link you provided, since it was occurring when no monitor was connected and resulted in a total system hang.

Quoted 4 lines
Quoted 2 lines

Unfortunately, looking through systemd's journal didn't seem to yield any real hint. Nevertheless, the results from grepping vc4 are

I'm seeing the same issue with vc4 on a RPi3 on 5.18.1 on Fedora so can confirm the regression. Maxime would know what might be up here?

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

i assume you are using the downstream DTB?

In this case it's the one in the Linux kernel (not sure if that's upstream or downstream in this context) not the one provided by the RPi firmware.

okay thanks. I tried the kernel config but its huge.

Is it correct that the issue occurs with your kernel config, but not with multi_v7_defconfig?

FWIW here is what i tried to reproduce the issue:

- enable CONFIG_DRM_VC4_HDMI_CEC
- apply the relevant config.txt options from Peter R.
- update my gcc toolchain to 11.3
- switch compiler optimization from speed to size

But the display always works.

Please tell the size of your bcm2837-rpi-3-b.dtb

#12 lore raw
In reply to Stefan Wahren
Quoted 21 lines · Stefan Wahren

Hi Peter,

Am 09.06.22 um 13:52 schrieb Peter Robinson:

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 8 lines
Quoted 8 lines

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].

If I understand you properly, it results in a blank screen if the monitor is connected, but the system is still responsive?

If so, it's a very different problem than the link you provided, since it was occurring when no monitor was connected and resulted in a total system hang.

Quoted 2 lines
Quoted 2 lines

Unfortunately, looking through systemd's journal didn't seem to yield any real hint. Nevertheless, the results from grepping vc4 are

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 2 lines
Quoted 2 lines

I'm seeing the same issue with vc4 on a RPi3 on 5.18.1 on Fedora so can confirm the regression. Maxime would know what might be up here?

i assume you are using the downstream DTB?

In this case it's the one in the Linux kernel (not sure if that's upstream or downstream in this context) not the one provided by the RPi firmware.

okay thanks. I tried the kernel config but its huge.

Welcome to distro configs.

Quoted 2 lines

Is it correct that the issue occurs with your kernel config, but not with multi_v7_defconfig?

I've not tried it, ultimately the distro config is where it's used and the rpi config within that hasn't changed for some time.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Please provide the version/date of the GPU firmware?

[    6.205121] raspberrypi-firmware soc:firmware: Attached to firmware

from 2022-05-24T13:26:52
Which is git f145afc

This is good. I had issues with older firmware which didn't implement RPI_FIRMWARE_NOTIFY_DISPLAY_DONE. So it must be something different.

#13 lore raw
In reply to Maxime Ripard
Quoted 2 lines

If I understand you properly, it results in a blank screen if the monitor is connected, but the system is still responsive?

Yes. Similar to (the other) Peter's findings, the system is fully responsive, it's just that the monitor is displaying a black screen.
Meanwhile I stumbled upon another detail: when the problem is manifest, the monitor's LED displaying whether a signal is available keeps shining permanently. I does not start flashing as it does when an attached computer is switched off.

Quoted 3 lines

If so, it's a very different problem than the link you provided, since it was occurring when no monitor was connected and resulted in a total system hang.

I didn't follow up things too closely. But I remember very well that I stumbled upon that thread "Linux 5.16.3 breaks headless Raspberry Pi 3 boot, again" while I was facing the exact same problem we're discussing right now. Also, some findings in the Arch Linux ARM forums were similar then [1]. The problem did disappear in 5.16.7 when some offending commit was reverted.

Quoted 2 lines

I tested on 5.18 on my 3B and it works well. Could you paste your kernel configuration and config.txt somewhere?

Just done in a Mail which was supposed to respond to Stefan's first one, which went wrong. (As Stefan isn't subscribed his mail was lacking the usual headers like "In-Reply-to". So I started editing by hitting the link on top of [2]. But this didn't work.)

[1] https://archlinuxarm.org/forum/viewtopic.php?f=57&t=15842
[2] https://lists.freedesktop.org/archives/dri-devel/2022-June/357819.html