]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/atomic: Unconfuse the old_state mess in commmit_tail
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 21 Nov 2016 17:18:02 +0000 (18:18 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 22 Nov 2016 10:11:57 +0000 (11:11 +0100)
commit1ea0c02e7018fdefbfc4333c733ce27c2bb70eff
tree8ca302a24453492a3efeea9412a7bc1c54b0fb0b
parent9a83a71ac0d57ceffa32cbbb438ded055ab77887
drm/atomic: Unconfuse the old_state mess in commmit_tail

I totally butcherd the job on typing the kernel-doc for these, and no
one realized. Noticed by Russell. Maarten has a more complete approach
to this confusion, by making it more explicit what the new/old state
is, instead of this magic switching behaviour.

v2:
- Liviu pointed out that wait_for_fences is even more magic. Leave
that as @state, and document @pre_swap better.
- While at it, patch in header for the reference section.
- Fix spelling issues Russell noticed.

v3: Fix up the @pre_swap note (Liviu): Also s/synchronous/blocking/,
since async flip is something else than non-blocking.

Cc: Liviu Dudau <liviu.dudau@arm.com>
Reported-by: Russell King - ARM Linux <linux@armlinux.org.uk>
Cc: Russell King - ARM Linux <linux@armlinux.org.uk>
Fixes: 9f2a7950e77a ("drm/atomic-helper: nonblocking commit support")
Cc: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Tomeu Vizoso <tomeu.vizoso@gmail.com>
Cc: Daniel Stone <daniels@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161121171802.24147-1-daniel.vetter@ffwll.ch
Documentation/gpu/drm-kms-helpers.rst
drivers/gpu/drm/drm_atomic_helper.c
include/drm/drm_modeset_helper_vtables.h