]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic: Remove waits in drm_atomic_helper_commit_cleanup_done, v2.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 4 Sep 2017 10:48:35 +0000 (12:48 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 8 Sep 2017 08:39:37 +0000 (10:39 +0200)
commitaee12e175b447044e2e58e837b2b489969c8030a
tree0494e343086d5982a010b6afc5fdffa22f0102b5
parent0b206ca08d1fe1edb1d2224dcd039e7f9d6cbd67
drm/atomic: Remove waits in drm_atomic_helper_commit_cleanup_done, v2.

When commit synchronization through drm_crtc_commit was first
introduced, we tried to solve the problem of the flip_done
needing a reference count by blocking in cleanup_done.

This has been changed by commit 4551c6d17b26 ("drm: reference count
event->completion") which made the waits here no longer needed.

However, even after this commit we still needed the wait because
otherwise we cannot wait for the flip_done because this item might
have been removed from the list.

Changed since v1:
- Make mention of cleanup_done completing before flip_done.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20170904104838.23822-4-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/drm_atomic_helper.c