From: Ville Syrjälä Date: Tue, 6 Jun 2023 19:14:56 +0000 (+0300) Subject: drm/i915/dsb: Don't use DSB to load the LUTs during full modeset X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=dd1c3eae5855ad36134ea415d84e567d2b55e6c7;p=users%2Fjedix%2Flinux-maple.git drm/i915/dsb: Don't use DSB to load the LUTs during full modeset Using the DSB for LUT loading during full modesets would require some actual though. Let's just use mmio for the time being. Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20230606191504.18099-12-ville.syrjala@linux.intel.com Reviewed-by: Uma Shankar --- diff --git a/drivers/gpu/drm/i915/display/intel_color.c b/drivers/gpu/drm/i915/display/intel_color.c index cdca3a89fa9c..bb6eda005613 100644 --- a/drivers/gpu/drm/i915/display/intel_color.c +++ b/drivers/gpu/drm/i915/display/intel_color.c @@ -1886,6 +1886,10 @@ void intel_color_prepare_commit(struct intel_crtc_state *crtc_state) /* FIXME DSB has issues loading LUTs, disable it for now */ return; + if (!crtc_state->hw.active || + intel_crtc_needs_modeset(crtc_state)) + return; + if (!crtc_state->pre_csc_lut && !crtc_state->post_csc_lut) return;