]> 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)
commit700346e3784713de77000f80dcd21a3d8940f178
treed397c5439ca5715a0062170d46fc1cedf6e4715f
parent8873ce9ae5984e75c3d481a7fb5533021a5fa71e
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