]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Release temporary load-detect state upon switching
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 19 Jan 2017 11:37:49 +0000 (11:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 19 Jan 2017 13:41:00 +0000 (13:41 +0000)
commit6a67dc30c4d1b0effcf3c2c509729c0e82e96fad
tree11e8e3ed15d9e739f6ce07f02d2b3165e5269cc0
parent376d8d5130a9dced9302bbabb3b477e9dae8d114
drm/i915: Release temporary load-detect state upon switching

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.

Fixes: 9058b84abc9d ("drm: Add reference counting to drm_atomic_state")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: <drm-intel-fixes@lists.freedesktop.org> # v4.10-rc1+
Link: http://patchwork.freedesktop.org/patch/msgid/20170119113749.2517-1-chris@chris-wilson.co.uk
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/intel_display.c