summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/ast/ast_drv.h
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2021-02-09 16:46:30 +0300
committerThomas Zimmermann <tzimmermann@suse.de>2021-02-17 14:40:16 +0300
commit84810d6a74b7b033b8dda13f0df0c953759f5e4c (patch)
tree88d13bd0f8fb26dfb22c801a4307e0812a109b11 /drivers/gpu/drm/ast/ast_drv.h
parentafee7e958b9f9996c8eb9d464f604c6430edeefa (diff)
downloadlinux-84810d6a74b7b033b8dda13f0df0c953759f5e4c.tar.xz
drm/ast: Map HW cursor BOs permanently
The BOs of the hardware cursor are now mapped permanently while the cursor plane is being used. This reduces the CPU overhead of the cursor plane's atomic_update function. The change also resolves a problem with the vmap call in the commit tail. The vmap implementation could acquire the DMA reservation lock on the BO, which is not allowed that late in the atomic update. Removing the vmap call from atomic_update fixes the issue. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210209134632.12157-9-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/ast/ast_drv.h')
-rw-r--r--drivers/gpu/drm/ast/ast_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/ast/ast_drv.h b/drivers/gpu/drm/ast/ast_drv.h
index 4117c49096d4..22193cfde255 100644
--- a/drivers/gpu/drm/ast/ast_drv.h
+++ b/drivers/gpu/drm/ast/ast_drv.h
@@ -107,6 +107,7 @@ struct ast_cursor_plane {
struct {
struct drm_gem_vram_object *gbo;
+ struct dma_buf_map map;
} hwc[AST_DEFAULT_HWC_NUM];
unsigned int next_hwc_index;