mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
2e715fb4fc
Add support for BCM2712 (Raspberry Pi 5).
3bb5880ab3
Patches were generated from the diff between linux kernel branch linux-6.1.y
and rpi-6.1.y from raspberry pi kernel source:
- git format-patch linux-6.1.y...rpi-6.1.y
Build system: x86_64
Build-tested: bcm2708, bcm2709, bcm2710, bcm2711
Run-tested: bcm2710/RPi3B, bcm2711/RPi4B
Signed-off-by: Marty Jones <mj8263788@gmail.com>
[Remove applied and reverted patches, squash patches and config commits]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
29 lines
958 B
Diff
29 lines
958 B
Diff
From 2c987545a88507acdd8a572a3bd23a4ca0124d14 Mon Sep 17 00:00:00 2001
|
|
From: Dom Cobley <popcornmix@gmail.com>
|
|
Date: Thu, 13 Apr 2023 17:41:11 +0100
|
|
Subject: [PATCH] drm/vc4: Treat zero sized destination as full screen
|
|
|
|
Kodi video planes come through with all zeros for fullscreen
|
|
Without this check, we WARN when writing width-1, height-1
|
|
to destination dlist
|
|
|
|
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_plane.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_plane.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_plane.c
|
|
@@ -484,6 +484,11 @@ static int vc4_plane_setup_clipping_and_
|
|
vc4_state->crtc_w = state->dst.x2 - state->dst.x1;
|
|
vc4_state->crtc_h = state->dst.y2 - state->dst.y1;
|
|
|
|
+ if (!vc4_state->crtc_w)
|
|
+ vc4_state->crtc_w = state->crtc->mode.hdisplay;
|
|
+ if (!vc4_state->crtc_h)
|
|
+ vc4_state->crtc_h = state->crtc->mode.vdisplay;
|
|
+
|
|
ret = vc4_plane_margins_adj(state);
|
|
if (ret)
|
|
return ret;
|