mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
20ea6adbf1
Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones <mj8263788@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
30 lines
943 B
Diff
30 lines
943 B
Diff
From 87157f42cd40d9302ad2ebae582768b52c46c8e0 Mon Sep 17 00:00:00 2001
|
|
From: Maxime Ripard <maxime@cerno.tech>
|
|
Date: Fri, 4 Mar 2022 15:59:08 +0100
|
|
Subject: [PATCH] drm/vc4: kms: Warn if we have an incompatible muxing
|
|
setup
|
|
|
|
The documentation explicitly states we must prevent the output
|
|
2 and 3 from feeding from the same HVS channel.
|
|
|
|
Let's add a warning to make some noise if we ever find ourselves in such
|
|
a case.
|
|
|
|
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_kms.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_kms.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_kms.c
|
|
@@ -293,6 +293,9 @@ static void vc5_hvs_pv_muxing_commit(str
|
|
|
|
switch (vc4_crtc->data->hvs_output) {
|
|
case 2:
|
|
+ WARN_ON(VC4_GET_FIELD(HVS_READ(SCALER_DISPCTRL),
|
|
+ SCALER_DISPCTRL_DSP3_MUX) == channel);
|
|
+
|
|
mux = (channel == 2) ? 0 : 1;
|
|
reg = HVS_READ(SCALER_DISPECTRL);
|
|
HVS_WRITE(SCALER_DISPECTRL,
|