Skip to content

Commit ff79a13

Browse files
committed
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 <vinod.govindapillai@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250306163420.3961-13-ville.syrjala@linux.intel.com
1 parent 7b65b24 commit ff79a13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/i915/display/intel_bw.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,8 @@ void intel_bw_update_hw_state(struct intel_display *display)
14411441
if (crtc_state->hw.active)
14421442
bw_state->active_pipes |= BIT(pipe);
14431443

1444-
intel_bw_crtc_update(bw_state, crtc_state);
1444+
if (DISPLAY_VER(display) >= 11)
1445+
intel_bw_crtc_update(bw_state, crtc_state);
14451446
}
14461447
}
14471448

0 commit comments

Comments
 (0)