[PATCH 1/3] drm/ttm: Make ttm_bo_mem_compat available

2016-07-01 Thread s...@vmware.com
From: Sinclair Yeh There are cases where it is desired to see if a proposed placement is compatible with a buffer object before calling ttm_bo_validate(). Signed-off-by: Sinclair Yeh Reviewed-by: Thomas Hellstrom Cc: --- This is the first of a 3-patch series to fix a black screen issue observ

[PATCH 3/3] drm/vmwgfx: Delay pinning fbdev framebuffer until after mode set

2016-07-01 Thread s...@vmware.com
From: Sinclair Yeh For the Screen Object display unit, we need to reserve a guest-invisible region equal to the size of the framebuffer for the host. This region can only be reserved in VRAM, whereas the guest-visible framebuffer can be reserved in either VRAM or GMR. As such priority should be

[PATCH 2/3] drm/vmwgfx: Check pin count before attempting to move a buffer

2016-07-01 Thread s...@vmware.com
From: Sinclair Yeh In certain scenarios, e.g. when fbdev is enabled, we can get into a situation where a vmw_framebuffer_pin() is called on a buffer that is already pinned. When this happens, ttm_bo_validate() will unintentially remove the TTM_PL_FLAG_NO_EVICT flag, thus unpinning it, and leavin