Patch "drm/vmwgfx: Don't cache framebuffer maps" has been added to the 4.14-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
drm/vmwgfx: Don't cache framebuffer maps
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-vmwgfx-don-t-cache-framebuffer-maps.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
98648ae6ef6bdcdcb88c46cad963906ab452e96dMon Sep 17 00:00:00 2001
From: Thomas Hellstrom <[email protected]>
Date: Tue, 9 Jan 2018 15:33:42 +0100
Subject: drm/vmwgfx: Don't cache framebuffer maps
From: Thomas Hellstrom <[email protected]>
commit 98648ae6ef6bdcdcb88c46cad963906ab452e96d upstream.
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.
--- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 6 ----- drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | 2 - drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | 41 ++++++++++------------------------- 3 files changed, 13 insertions(+), 36 deletions(-)
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +0 -6
@@ -697,7 +697,6 @@ vmw_du_plane_duplicate_state(struct drm_ vps->pinned =0 ;/* Mapping is managed by prepare_fb/cleanup_fb */ -memset (&vps->guest_map,0 ,sizeof (vps->guest_map));memset (&vps->host_map,0 ,sizeof (vps->host_map)); vps->cpp =0 ;
@@ -760,11 +759,6 @@ vmw_du_plane_destroy_state(struct drm_pl/* Should have been freed by cleanup_fb */ -if (vps->guest_map.virtual) { -DRM_ERROR ("Guest mapping not freed\n" ); -ttm_bo_kunmap (&vps->guest_map); - } -if (vps->host_map.virtual) {DRM_ERROR ("Host mapping not freed\n" );ttm_bo_kunmap (&vps->host_map);
drivers/gpu/drm/vmwgfx/vmwgfx_kms.h +1 -1
@@ -175,7 +175,7 @@ struct vmw_plane_state {int pinned;/* For CPU Blit */ -struct ttm_bo_kmap_obj host_map, guest_map; +struct ttm_bo_kmap_obj host_map;unsigned int cpp; };
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c +12 -29
94 lines not on this page · raw message
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/drm-vmwgfx-don-t-cache-framebuffer-maps.patch queue-4.14/drm-vmwgfx-potential-off-by-one-in-vmw_view_add.patch