[Intel-gfx] [PATCH] drm/i915: Release temporary load-detect state upon switching
Ville Syrjälä
ville.syrjala at linux.intel.com
Thu Jan 19 13:31:46 UTC 2017
On Thu, Jan 19, 2017 at 11:37:49AM +0000, Chris Wilson wrote:
> After we call drm_atomic_commit() on the load-detect state, we can free
> our local reference. Upon restore, we only apply and free the previous state.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Fixes: ?
Reviewed-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> ---
> drivers/gpu/drm/i915/intel_display.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index bddadd97db8d..ca3e7116438c 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -11276,6 +11276,7 @@ bool intel_get_load_detect_pipe(struct drm_connector *connector,
> }
>
> old->restore_state = restore_state;
> + drm_atomic_state_put(state);
>
> /* let the connector get through one full cycle before testing */
> intel_wait_for_vblank(dev_priv, intel_crtc->pipe);
> --
> 2.11.0
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Ville Syrjälä
Intel OTC
More information about the Intel-gfx
mailing list