Re: [Intel-gfx] [PATCH 07/13] drm/i915: Clear the dpll_hw_state when disabling a pipe
On Fri, 25 Mar 2022, Ville Syrjala wrote: > From: Ville Syrjälä > > Clear the dpll_hw_state when we're about disable the pipe. > Previously it looks like we just left the old junk in there. > > Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/intel_dpll.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_dpll.c > b/drivers/gpu/drm/i915/display/intel_dpll.c > index 494a343850e7..7960f1d52eaa 100644 > --- a/drivers/gpu/drm/i915/display/intel_dpll.c > +++ b/drivers/gpu/drm/i915/display/intel_dpll.c > @@ -1406,12 +1406,12 @@ int intel_dpll_crtc_compute_clock(struct > intel_atomic_state *state, > if (drm_WARN_ON(>drm, crtc_state->shared_dpll)) > return 0; > > - if (!crtc_state->hw.enable) > - return 0; > - > memset(_state->dpll_hw_state, 0, > sizeof(crtc_state->dpll_hw_state)); > > + if (!crtc_state->hw.enable) > + return 0; > + > return i915->dpll_funcs->crtc_compute_clock(state, crtc); > } -- Jani Nikula, Intel Open Source Graphics Center
[Intel-gfx] [PATCH 07/13] drm/i915: Clear the dpll_hw_state when disabling a pipe
From: Ville Syrjälä Clear the dpll_hw_state when we're about disable the pipe. Previously it looks like we just left the old junk in there. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_dpll.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dpll.c b/drivers/gpu/drm/i915/display/intel_dpll.c index 494a343850e7..7960f1d52eaa 100644 --- a/drivers/gpu/drm/i915/display/intel_dpll.c +++ b/drivers/gpu/drm/i915/display/intel_dpll.c @@ -1406,12 +1406,12 @@ int intel_dpll_crtc_compute_clock(struct intel_atomic_state *state, if (drm_WARN_ON(>drm, crtc_state->shared_dpll)) return 0; - if (!crtc_state->hw.enable) - return 0; - memset(_state->dpll_hw_state, 0, sizeof(crtc_state->dpll_hw_state)); + if (!crtc_state->hw.enable) + return 0; + return i915->dpll_funcs->crtc_compute_clock(state, crtc); } -- 2.34.1