From: Ville Syrjälä Date: Thu, 6 Mar 2025 16:34:14 +0000 (+0200) Subject: drm/i915: Skip some bw_state readout on pre-icl X-Git-Tag: v6.15-rc1~120^2~9^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff79a131d37a9ab6301c310f8ea9c12e93212baa;p=thirdparty%2Flinux.git drm/i915: Skip some bw_state readout on pre-icl We only compute bw_state->data_rate and bw_state->num_active_planes on icl+. Do the same during readout so that we don't leave random junk inside the state. v2: Skip the whole intel_bw_crtc_update() (Vinod) Reviewed-by: Vinod Govindapillai Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20250306163420.3961-13-ville.syrjala@linux.intel.com --- diff --git a/drivers/gpu/drm/i915/display/intel_bw.c b/drivers/gpu/drm/i915/display/intel_bw.c index 30e6f33d6f301..e4d79b496e127 100644 --- a/drivers/gpu/drm/i915/display/intel_bw.c +++ b/drivers/gpu/drm/i915/display/intel_bw.c @@ -1441,7 +1441,8 @@ void intel_bw_update_hw_state(struct intel_display *display) if (crtc_state->hw.active) bw_state->active_pipes |= BIT(pipe); - intel_bw_crtc_update(bw_state, crtc_state); + if (DISPLAY_VER(display) >= 11) + intel_bw_crtc_update(bw_state, crtc_state); } }