]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/atomic: Check for busy planes/connectors before setting the commit
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 16 Oct 2017 13:29:28 +0000 (15:29 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 17 Oct 2017 12:28:31 +0000 (14:28 +0200)
commit080de2e5be2d4b396b6792cde4cb2048fcdb4ce9
tree941f873199f2a1ba73f91d8edbbdcf8ff15a8960
parent4edd60847287c34222116af58f76be985ebddef7
drm/atomic: Check for busy planes/connectors before setting the commit

We still want to fail with -EBUSY if a plane or connector is part of
a commit, even if it will be assigned to a new commit.

This closes a small hole left open where we should return -EBUSY.
It's not severe, because wait_for_dependencies and swap_state helpers
still block. But it should return -EBUSY and not stall.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fixes: 21a01abbe32a ("drm/atomic: Fix freeing connector/plane state too early by tracking commits, v3.")
Link: https://patchwork.freedesktop.org/patch/msgid/20171016132928.6498-2-maarten.lankhorst@linux.intel.com
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/drm_atomic_helper.c