drm/vmwgfx: Use the common gem mmap instead of the custom code
authorZack Rusin <zackr@vmware.com>
Tue, 31 Jan 2023 03:35:35 +0000 (22:35 -0500)
committerZack Rusin <zackr@vmware.com>
Tue, 14 Feb 2023 02:34:13 +0000 (21:34 -0500)
commit9da2957f9f81ed29d0046021f131be352cb2199e
treef272bddd43e8e62716d495db3bff444714ee310e
parentaa8c85affe3facd3842c8912186623415931cc72
drm/vmwgfx: Use the common gem mmap instead of the custom code

Before vmwgfx supported gem it needed to implement the entire mmap logic
explicitly. With GEM support that's not needed and the generic code
can be used by simply setting the vm_ops to vmwgfx specific ones on the
gem object itself.

Removes a lot of code from vmwgfx without any functional difference.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Reviewed-by: Maaz Mombasawala <mombasawalam@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230131033542.953249-2-zack@kde.org
drivers/gpu/drm/vmwgfx/Makefile
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_gem.c
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c [deleted file]