]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Fix the refuse_dma mode when using guest-backed objects
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 15 Jan 2020 20:48:19 +0000 (21:48 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 12 Mar 2020 11:00:07 +0000 (12:00 +0100)
commitf92994850aabba930b77bef1e02ba9c1b127b3d2
tree5351b4a0fabb6b93fca9d839b206c43254419efa
parent17bfcc547b5f3994899d34c4bf94ff3a635d3d1c
drm/vmwgfx: Fix the refuse_dma mode when using guest-backed objects

When we refuse DMA from system pages for whatever reason, we don't
handle that correctly when guest-backed objects was enabled.
Since guest-backed objects by definition require DMA to and from
system pages, disable all functionality that relies on them.
That basically amounts to 3D acceleration and screen targets.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c