]> git.baikalelectronics.ru Git - kernel.git/commit
drm/cirrus: Move vmap out of commit tail
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 8 Feb 2021 11:55:36 +0000 (12:55 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 8 Feb 2021 12:00:36 +0000 (13:00 +0100)
commite98af828e049687d9e2dffde76cf40db60c07383
tree82e722e7b6e90591002fe071ac80704baebfbd14
parent2b7b745d634c70d47f4597d8bfe9435ed859f15b
drm/cirrus: Move vmap out of commit tail

Vmap operations may acquire the dmabuf reservation lock, which is not
allowed within atomic commit-tail functions. Therefore move vmap and
vunmap from the damage handler into prepare_fb and cleanup_fb callbacks.

The mapping is provided as GEM shadow-buffered plane. The functions in
the commit tail use the pre-established mapping for damage handling.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210208115538.6430-6-tzimmermann@suse.de
drivers/gpu/drm/tiny/cirrus.c