OSDN Git Service

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)
commit81a00960d3fa83bbff9939ff52e89f0b74801937
tree5351b4a0fabb6b93fca9d839b206c43254419efa
parentd3bd37f587b4438d47751d0f1d5aaae3d39bd416
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