projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27892bb
)
drm/i915: Release temporary load-detect state upon switching
author
Chris Wilson
<
[email protected]
>
Thu, 19 Jan 2017 11:37:49 +0000
(11:37 +0000)
committer
Jani Nikula
<
[email protected]
>
Wed, 25 Jan 2017 10:42:21 +0000
(12:42 +0200)
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: 0853695c3ba4 ("drm: Add reference counting to drm_atomic_state")
Signed-off-by: Chris Wilson <
[email protected]
>
Cc: Chris Wilson <
[email protected]
>
Cc: Daniel Vetter <
[email protected]
>
Cc: <
[email protected]
> # v4.10-rc1+
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Ville Syrjälä <
[email protected]
>
(cherry picked from commit
7abbd11f344aa7abe29befb218774a1ea26018ac
)
Signed-off-by: Jani Nikula <
[email protected]
>
drivers/gpu/drm/i915/intel_display.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_display.c
b/drivers/gpu/drm/i915/intel_display.c
index 1a01d4189c3f984fb79364dbf701c4baf6678757..f313d62a7e748bd5fd45693a946cf4cf4ea2bd06 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_display.c
+++ b/
drivers/gpu/drm/i915/intel_display.c
@@
-11246,6
+11246,7
@@
found:
}
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);