]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mgag200: Allocate cursor BOs at high end of video memory
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 27 Sep 2019 09:13:01 +0000 (11:13 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 4 Oct 2019 08:01:12 +0000 (10:01 +0200)
commitf826c83f215779724270b3618d2776c630dd9459
treea0405243daeb55aa5912c19c16890b31171b0f09
parent5df6c72f2feb1eec43808114b32d169bd777cbe1
drm/mgag200: Allocate cursor BOs at high end of video memory

By putting cursor BOs at the high end of the video memory, we can avoid
memory fragmentation. Starting at the low end, contiguous video memory is
available for framebuffers.

The patch also simplifies the buffer swapping and aligns it with the
ast driver. If there are more drivers with similar requirements, the
code could be moved into a shared place.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190927091301.10574-8-tzimmermann@suse.de
drivers/gpu/drm/mgag200/mgag200_cursor.c
drivers/gpu/drm/mgag200/mgag200_drv.h