drm/vmwgfx: Implement an infrastructure for read-coherent resources
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 28 Mar 2019 10:36:25 +0000 (11:36 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 6 Nov 2019 12:30:27 +0000 (13:30 +0100)
commitfb80edb0d7662d8a9453f693055cce4c656142a9
treee6b0a5b67e00a5f1519dd574c782cd8e5d3b755f
parent61335d7a5a2d26173160198f5257bea072dfe086
drm/vmwgfx: Implement an infrastructure for read-coherent resources

Similar to write-coherent resources, make sure that from the user-space
point of view, GPU rendered contents is automatically available for
reading by the CPU.

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/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h
drivers/gpu/drm/vmwgfx/vmwgfx_validation.c