Skip to content

Commit 7b65b24

Browse files
committed
drm/i915: Update bw_state->active_pipes during readout
Update bw_state->active_pipes during readout. This was completely missing from the current readout code. 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-12-ville.syrjala@linux.intel.com
1 parent ad2d834 commit 7b65b24

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,9 +1431,15 @@ void intel_bw_update_hw_state(struct intel_display *display)
14311431
if (DISPLAY_VER(display) < 9)
14321432
return;
14331433

1434+
bw_state->active_pipes = 0;
1435+
14341436
for_each_intel_crtc(display->drm, crtc) {
14351437
const struct intel_crtc_state *crtc_state =
14361438
to_intel_crtc_state(crtc->base.state);
1439+
enum pipe pipe = crtc->pipe;
1440+
1441+
if (crtc_state->hw.active)
1442+
bw_state->active_pipes |= BIT(pipe);
14371443

14381444
intel_bw_crtc_update(bw_state, crtc_state);
14391445
}

0 commit comments

Comments
 (0)