summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2025-03-06 18:34:16 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2025-03-07 19:02:52 +0200
commit003ec4ce424cc3421cf82ec1b6f004f9c0fcb8a3 (patch)
treea9c35397090d7c6f81e88ce7b379a0992507f636
parente45b8192c7e757d33dd1a7f1b1ea6696fbdc218b (diff)
drm/i915: Simplify cdclk_disable_noatomic()
Instead of hand rolling the cdclk state disabling for a pipe in noatomic() let's just recompute the whole thing from scratch. Less code we have to remember to keep in sync. 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-15-ville.syrjala@linux.intel.com
-rw-r--r--drivers/gpu/drm/i915/display/intel_cdclk.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_cdclk.c b/drivers/gpu/drm/i915/display/intel_cdclk.c
index 62caee4a8b64..2a8749a0213e 100644
--- a/drivers/gpu/drm/i915/display/intel_cdclk.c
+++ b/drivers/gpu/drm/i915/display/intel_cdclk.c
@@ -3364,13 +3364,8 @@ void intel_cdclk_update_hw_state(struct intel_display *display)
void intel_cdclk_crtc_disable_noatomic(struct intel_crtc *crtc)
{
struct intel_display *display = to_intel_display(crtc);
- struct intel_cdclk_state *cdclk_state =
- to_intel_cdclk_state(display->cdclk.obj.state);
- enum pipe pipe = crtc->pipe;
- cdclk_state->min_cdclk[pipe] = 0;
- cdclk_state->min_voltage_level[pipe] = 0;
- cdclk_state->active_pipes &= ~BIT(pipe);
+ intel_cdclk_update_hw_state(display);
}
static int intel_compute_max_dotclk(struct intel_display *display)