drm/ast: Init cursors before creating modesetting structures
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 2 Jul 2020 11:50:26 +0000 (13:50 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 7 Jul 2020 09:11:55 +0000 (11:11 +0200)
commit6bb18c9be6d256d7e8e24e7a676df2e2fd72522c
tree73a1d472ab406386cabeeaa00e1391ab866ed4bc
parent3e9d787371eaa842682bf4fc86ae9475548d9cee
drm/ast: Init cursors before creating modesetting structures

The cursor helpers reserve buffer objects in VRAM and update their
content. So although tied to modesetting, cursor helpers are more
of a memory manager. The modesetting's cursor plane requires this
functionality, so initialize cursors before modesetting.

While at it, also add an error check for ast_cursor_init().

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200702115029.5281-12-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_mode.c