mbox series

[0/6] drm/v3d: Fix GPU reset issues on the Raspberry Pi 5

Message ID 20250226-v3d-gpu-reset-fixes-v1-0-83a969fdd9c1@igalia.com (mailing list archive)
Headers show
Series drm/v3d: Fix GPU reset issues on the Raspberry Pi 5 | expand

Message

Maíra Canal Feb. 26, 2025, 7:58 p.m. UTC
This series addresses GPU reset issues reported in [1], where running a
long compute job would trigger repeated GPU resets, leading to a UI
freeze.

Patches #1 and #2 prevent the same faulty job from being resubmitted in a
loop, mitigating the first cause of the issue.

However, the issue isn't entirely solved. Even with only a single GPU
reset, the UI still freezes on the Raspberry Pi 5, indicating a GPU hang.
Patches #3 to #5 address this by properly configuring the V3D_SMS
registers, which are required for power management and resets in V3D 7.1.

Patch #6 updates the DT maintainership, replacing Emma with the current
v3d driver maintainer.

[1] https://github.com/raspberrypi/linux/issues/6660

Best Regards,
- Maíra

---
Maíra Canal (6):
      drm/v3d: Don't run jobs that have errors flagged in its fence
      drm/v3d: Set job pointer to NULL when the job's fence has an error
      drm/v3d: Associate a V3D tech revision to all supported devices
      dt-bindings: gpu: v3d: Add SMS to the registers' list
      drm/v3d: Use V3D_SMS registers for power on/off and reset on V3D 7.x
      dt-bindings: gpu: Add V3D driver maintainer as DT maintainer

 .../devicetree/bindings/gpu/brcm,bcm-v3d.yaml      |  8 +--
 drivers/gpu/drm/v3d/v3d_drv.c                      | 58 ++++++++++++++++++++--
 drivers/gpu/drm/v3d/v3d_drv.h                      | 18 +++++++
 drivers/gpu/drm/v3d/v3d_gem.c                      | 17 +++++++
 drivers/gpu/drm/v3d/v3d_regs.h                     | 26 ++++++++++
 drivers/gpu/drm/v3d/v3d_sched.c                    | 23 +++++++--
 6 files changed, 140 insertions(+), 10 deletions(-)
---
base-commit: 099b79f94366f3110783301e20d8136d762247f8
change-id: 20250224-v3d-gpu-reset-fixes-2d21fc70711d

Comments

Iago Toral Feb. 27, 2025, 7:55 a.m. UTC | #1
Thanks Maíra, all patches but 4 are:

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>

I hope someone else can can look at the remaining DT patch.

Iago

El mié, 26-02-2025 a las 16:58 -0300, Maíra Canal escribió:
> This series addresses GPU reset issues reported in [1], where running
> a
> long compute job would trigger repeated GPU resets, leading to a UI
> freeze.
> 
> Patches #1 and #2 prevent the same faulty job from being resubmitted
> in a
> loop, mitigating the first cause of the issue.
> 
> However, the issue isn't entirely solved. Even with only a single GPU
> reset, the UI still freezes on the Raspberry Pi 5, indicating a GPU
> hang.
> Patches #3 to #5 address this by properly configuring the V3D_SMS
> registers, which are required for power management and resets in V3D
> 7.1.
> 
> Patch #6 updates the DT maintainership, replacing Emma with the
> current
> v3d driver maintainer.
> 
> [1] https://github.com/raspberrypi/linux/issues/6660
> 
> Best Regards,
> - Maíra
> 
> ---
> Maíra Canal (6):
>       drm/v3d: Don't run jobs that have errors flagged in its fence
>       drm/v3d: Set job pointer to NULL when the job's fence has an
> error
>       drm/v3d: Associate a V3D tech revision to all supported devices
>       dt-bindings: gpu: v3d: Add SMS to the registers' list
>       drm/v3d: Use V3D_SMS registers for power on/off and reset on
> V3D 7.x
>       dt-bindings: gpu: Add V3D driver maintainer as DT maintainer
> 
>  .../devicetree/bindings/gpu/brcm,bcm-v3d.yaml      |  8 +--
>  drivers/gpu/drm/v3d/v3d_drv.c                      | 58
> ++++++++++++++++++++--
>  drivers/gpu/drm/v3d/v3d_drv.h                      | 18 +++++++
>  drivers/gpu/drm/v3d/v3d_gem.c                      | 17 +++++++
>  drivers/gpu/drm/v3d/v3d_regs.h                     | 26 ++++++++++
>  drivers/gpu/drm/v3d/v3d_sched.c                    | 23 +++++++--
>  6 files changed, 140 insertions(+), 10 deletions(-)
> ---
> base-commit: 099b79f94366f3110783301e20d8136d762247f8
> change-id: 20250224-v3d-gpu-reset-fixes-2d21fc70711d
> 
>