Commit 14968c20 authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

drm/i915: Do wm readout ealier for skl+



Move the wm readout to happen earlier. This is needed because
the bw_state readout will need ddb information populated by
the wm readout.

For now limit this to skl+ as I've not really analyzed the
implications of doing this on other platforms.

Reviewed-by: default avatarVinod Govindapillai <vinod.govindapillai@intel.com>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250306163420.3961-17-ville.syrjala@linux.intel.com
parent dbf1b1ed
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -880,6 +880,10 @@ static void intel_modeset_readout_hw_state(struct drm_i915_private *i915)
						 crtc_state->port_clock);
	}

	/* TODO move here (or even earlier?) on all platforms */
	if (DISPLAY_VER(display) >= 9)
		intel_wm_get_hw_state(i915);

	intel_bw_update_hw_state(display);
	intel_cdclk_update_hw_state(display);

@@ -990,6 +994,8 @@ void intel_modeset_setup_hw_state(struct drm_i915_private *i915,

	intel_dpll_sanitize_state(display);

	/* TODO move earlier on all platforms */
	if (DISPLAY_VER(display) < 9)
		intel_wm_get_hw_state(i915);
	intel_wm_sanitize(i915);