drm/vmwgfx: Add surface dirty-tracking callbacks
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 19 Mar 2019 12:27:50 +0000 (13:27 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 6 Nov 2019 14:45:32 +0000 (15:45 +0100)
commit9ca7d19ff8ba6207bccab46536814fe4839df80a
tree61e4efb29e4ffdd537e65037f7ed8177b8ca0a82
parentfb80edb0d7662d8a9453f693055cce4c656142a9
drm/vmwgfx: Add surface dirty-tracking callbacks

Add the callbacks necessary to implement emulated coherent memory for
surfaces. Add a flag to the gb_surface_create ioctl to indicate that
surface memory should be coherent.
Also bump the drm minor version to signal the availability of coherent
surfaces.

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@surriel.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Huang Ying <ying.huang@intel.com>
Cc: Jérôme Glisse <jglisse@redhat.com>
Cc: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
drivers/gpu/drm/vmwgfx/device_include/svga3d_surfacedefs.h
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
include/uapi/drm/vmwgfx_drm.h