[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231008175615.413497-1-robdclark@gmail.com>
Date: Sun, 8 Oct 2023 10:55:59 -0700
From: Rob Clark <robdclark@...il.com>
To: dri-devel@...ts.freedesktop.org
Cc: freedreno@...ts.freedesktop.org, linux-arm-msm@...r.kernel.org,
Helen Koike <helen.koike@...labora.com>,
Rob Clark <robdclark@...omium.org>,
David Airlie <airlied@...il.com>,
Daniel Vetter <daniel@...ll.ch>,
Rob Clark <robdclark@...il.com>,
Abhinav Kumar <quic_abhinavk@...cinc.com>,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>,
Sean Paul <sean@...rly.run>,
Marijn Suijten <marijn.suijten@...ainline.org>,
Tomeu Vizoso <tomeu.vizoso@...labora.com>,
Daniel Stone <daniels@...labora.com>,
Vinod Polimera <quic_vpolimer@...cinc.com>,
Kalyan Thota <quic_kalyant@...cinc.com>,
Jiasheng Jiang <jiasheng@...as.ac.cn>,
linux-kernel@...r.kernel.org (open list)
Subject: [PATCH] drm/msm/dpu: Use the encoder for default CRC source
From: Rob Clark <robdclark@...omium.org>
i-g-t expects the CRC to reflect any applied CTM. But the layer mixer
source is upstream of the DSPP, so it is before the CTM is applied.
Switch the default source to 'encoder' instead so that the CRC is
captured downstream of the DSPP.
Signed-off-by: Rob Clark <robdclark@...omium.org>
---
drivers/gpu/drm/ci/xfails/msm-sc7180-fails.txt | 4 ----
drivers/gpu/drm/ci/xfails/msm-sc7180-skips.txt | 5 -----
drivers/gpu/drm/ci/xfails/msm-sdm845-fails.txt | 11 +----------
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 6 +++---
4 files changed, 4 insertions(+), 22 deletions(-)
diff --git a/drivers/gpu/drm/ci/xfails/msm-sc7180-fails.txt b/drivers/gpu/drm/ci/xfails/msm-sc7180-fails.txt
index faf2702c223f..a51950746443 100644
--- a/drivers/gpu/drm/ci/xfails/msm-sc7180-fails.txt
+++ b/drivers/gpu/drm/ci/xfails/msm-sc7180-fails.txt
@@ -1,10 +1,6 @@
kms_cursor_legacy@...sor-vs-flip-toggle,Fail
kms_cursor_legacy@...sor-vs-flip-varying-size,Fail
kms_cursor_legacy@...sorA-vs-flipA-atomic-transitions,Crash
-kms_pipe_crc_basic@...pare-crc-sanitycheck-nv12,Fail
-kms_plane_alpha_blend@...ha-7efc,Fail
-kms_plane_alpha_blend@...erage-7efc,Fail
-kms_plane_alpha_blend@...erage-vs-premult-vs-constant,Fail
kms_plane_alpha_blend@...e-A-alpha-7efc,Fail
kms_plane_alpha_blend@...e-A-coverage-7efc,Fail
kms_plane_alpha_blend@...e-A-coverage-vs-premult-vs-constant,Fail
diff --git a/drivers/gpu/drm/ci/xfails/msm-sc7180-skips.txt b/drivers/gpu/drm/ci/xfails/msm-sc7180-skips.txt
index 612f7e822c80..327039f70252 100644
--- a/drivers/gpu/drm/ci/xfails/msm-sc7180-skips.txt
+++ b/drivers/gpu/drm/ci/xfails/msm-sc7180-skips.txt
@@ -1,7 +1,2 @@
# Suspend to RAM seems to be broken on this machine
.*suspend.*
-
-# Test incorrectly assumes that CTM support implies gamma/degamma
-# LUT support. None of the subtests handle the case of only having
-# CTM support
-kms_color.*
diff --git a/drivers/gpu/drm/ci/xfails/msm-sdm845-fails.txt b/drivers/gpu/drm/ci/xfails/msm-sdm845-fails.txt
index ba36b92e3325..3d53c53a0659 100644
--- a/drivers/gpu/drm/ci/xfails/msm-sdm845-fails.txt
+++ b/drivers/gpu/drm/ci/xfails/msm-sdm845-fails.txt
@@ -1,20 +1,11 @@
kms_color@...-0-25,Fail
kms_color@...-0-50,Fail
-kms_color@...-0-75,Fail
kms_color@...-blue-to-red,Fail
kms_color@...-green-to-red,Fail
kms_color@...-negative,Fail
kms_color@...-red-to-blue,Fail
kms_color@...-signed,Fail
-kms_color@...e-A-ctm-0-25,Fail
-kms_color@...e-A-ctm-0-5,Fail
-kms_color@...e-A-ctm-0-75,Fail
-kms_color@...e-A-ctm-blue-to-red,Fail
-kms_color@...e-A-ctm-green-to-red,Fail
-kms_color@...e-A-ctm-max,Fail
-kms_color@...e-A-ctm-negative,Fail
-kms_color@...e-A-ctm-red-to-blue,Fail
-kms_color@...e-A-legacy-gamma,Fail
+kms_color@...-max,Fail
kms_cursor_legacy@...ic-flip-after-cursor-atomic,Fail
kms_cursor_legacy@...ic-flip-after-cursor-legacy,Fail
kms_cursor_legacy@...ic-flip-after-cursor-varying-size,Fail
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
index 8ce7586e2ddf..5eacf19382b5 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
@@ -79,10 +79,10 @@ static enum dpu_crtc_crc_source dpu_crtc_parse_crc_source(const char *src_name)
if (!src_name ||
!strcmp(src_name, "none"))
return DPU_CRTC_CRC_SOURCE_NONE;
- if (!strcmp(src_name, "auto") ||
- !strcmp(src_name, "lm"))
+ if (!strcmp(src_name, "lm"))
return DPU_CRTC_CRC_SOURCE_LAYER_MIXER;
- if (!strcmp(src_name, "encoder"))
+ if (!strcmp(src_name, "encoder") ||
+ !strcmp(src_name, "auto"))
return DPU_CRTC_CRC_SOURCE_ENCODER;
return DPU_CRTC_CRC_SOURCE_INVALID;
--
2.41.0
Powered by blists - more mailing lists