]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Don't cache framebuffer maps
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 9 Jan 2018 14:33:42 +0000 (15:33 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 9 Jan 2018 14:33:42 +0000 (15:33 +0100)
commit8c6b01765a39b17f71e6b81c2d2d4dce69841140
tree621c69ce4bbc1641c1bab58248efbe1a3909d144
parent8181ec2622ba6457209a8983e04152016dd2ecee
drm/vmwgfx: Don't cache framebuffer maps

Buffer objects need to be either pinned or reserved while a map is active,
that's not the case here, so avoid caching the framebuffer map.
This will cause increasing mapping activity mainly when we don't do
page flipping.

This fixes occasional garbage filled screens when the framebuffer has been
evicted after the map.

Since in-kernel mapping of whole buffer objects is error-prone on 32-bit
architectures and also quite inefficient, we will revisit this later.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Cc: <stable@vger.kernel.org>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
drivers/gpu/drm/vmwgfx/vmwgfx_kms.h
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c