bcm27xx: update 6.1 patches to latest version
[openwrt/staging/svanheule.git] / target / linux / bcm27xx / patches-6.1 / 950-1068-drm-vc4-Drop-WARN-for-HVS-FIFOs-not-being-empty.patch
1 From 31c4c359aa2dbb1a7c095f0a6ef4e13cd46cfd14 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Thu, 26 Oct 2023 18:05:09 +0100
4 Subject: [PATCH] drm/vc4: Drop WARN for HVS FIFOs not being empty
5
6 The reset condition for the EMPTY flag in DISPSTATx is 0,
7 so seeing as we've just reset the pipeline there is no
8 guarantee that the flag will denote empty if it hasn't been
9 enabled.
10
11 Drop the WARN.
12
13 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
14 ---
15 drivers/gpu/drm/vc4/vc4_hvs.c | 4 ----
16 1 file changed, 4 deletions(-)
17
18 --- a/drivers/gpu/drm/vc4/vc4_hvs.c
19 +++ b/drivers/gpu/drm/vc4/vc4_hvs.c
20 @@ -1005,10 +1005,6 @@ static void __vc4_hvs_stop_channel(struc
21 SCALER_DISPSTATX_MODE) !=
22 SCALER_DISPSTATX_MODE_DISABLED);
23
24 - WARN_ON_ONCE((HVS_READ(SCALER_DISPSTATX(chan)) &
25 - (SCALER_DISPSTATX_FULL | SCALER_DISPSTATX_EMPTY)) !=
26 - SCALER_DISPSTATX_EMPTY);
27 -
28 out:
29 drm_dev_exit(idx);
30 }