]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mgag200: Don't unpin the current cursor image's buffer.
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 23 Jul 2019 07:54:25 +0000 (09:54 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 24 Jul 2019 07:48:30 +0000 (09:48 +0200)
commit623cc441dece94b950c2f6e6d9f58f3cfa93a101
tree401f3567856ae264d660ebae8f1e21e1e064d708
parent92635fdd56c7f13d8e99ffb9d69075a2f4d0de24
drm/mgag200: Don't unpin the current cursor image's buffer.

Currently the displayed cursor buffer might be evicted from video memory.
Not unpinning the BO fixes this problem. At this point, pixels_current
also references the BO and it will be unpinned during the next cursor
update.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Fixes: c27c8e110a03 ("drm/mgag200: Rewrite cursor handling")
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190723075425.24028-4-tzimmermann@suse.de
drivers/gpu/drm/mgag200/mgag200_cursor.c