]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf1cc23474db76fe93c642a69c6c6a7f1eaa6e3d9
treed397c5439ca5715a0062170d46fc1cedf6e4715f
parentada92f648597336a4f67f16584669cb8365367dc
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