]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c7fedffc7afe07cc346d7576181807f3af8dbad
tree73a1d472ab406386cabeeaa00e1391ab866ed4bc
parent34f626a0e80b418ac0487253e9c3b180c94b43a4
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