mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-15 04:42:02 +00:00
32 lines
1 KiB
Diff
32 lines
1 KiB
Diff
From 087849e24ec3f07c88e49e8d6e86d93344ba5d5b Mon Sep 17 00:00:00 2001
|
|
From: Maxime Ripard <maxime@cerno.tech>
|
|
Date: Mon, 6 Dec 2021 16:32:10 +0100
|
|
Subject: [PATCH 048/726] drm/vc4: hvs: Ignore atomic_flush if we're disabled
|
|
|
|
atomic_flush will be called for each CRTC even if they aren't enabled.
|
|
|
|
The whole code we have there will thus run without a properly affected
|
|
channel, which can then result in all sorts of weird behaviour.
|
|
|
|
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_hvs.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/drivers/gpu/drm/vc4/vc4_hvs.c b/drivers/gpu/drm/vc4/vc4_hvs.c
|
|
index 38669ea71c4a..67effc334715 100644
|
|
--- a/drivers/gpu/drm/vc4/vc4_hvs.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_hvs.c
|
|
@@ -778,6 +778,9 @@ void vc4_hvs_atomic_flush(struct drm_crtc *crtc,
|
|
return;
|
|
}
|
|
|
|
+ if (vc4_state->assigned_channel == VC4_HVS_CHANNEL_DISABLED)
|
|
+ return;
|
|
+
|
|
if (debug_dump_regs) {
|
|
DRM_INFO("CRTC %d HVS before:\n", drm_crtc_index(crtc));
|
|
vc4_hvs_dump_state(hvs);
|
|
--
|
|
2.33.1
|
|
|