drm/vmwgfx: Stop using surface dma commands on most configurations
authorZack Rusin <zackr@vmware.com>
Wed, 2 Mar 2022 15:24:26 +0000 (10:24 -0500)
committerZack Rusin <zackr@vmware.com>
Fri, 11 Mar 2022 18:29:38 +0000 (13:29 -0500)
commitb861de246912e10c5bda32cb100bff429a5e1ec4
treed397c5439ca5715a0062170d46fc1cedf6e4715f
parent32160e6a98f33cd96fde52cd56b9b758b59d3603
drm/vmwgfx: Stop using surface dma commands on most configurations

Initial version of guest backed objects in the host had some performance
issues that made using surface-dma's instead of direct copies faster.
Surface dma's force a migration to vram which at best is slow and at
worst is impossible (e.g. on svga3 where there's not enough vram
to migrate fb's to it).

Slowly migrate away from surface dma's to direct copies by limiting
their usage to systems with more than 32MB of vram.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Maaz Mombasawala <mombasawalam@vmware.com>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220302152426.885214-9-zack@kde.org
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c