drm/udl: add cache flags definitions for udl_gem_object
authorHaixia Shi <hshi@chromium.org>
Thu, 13 Nov 2014 02:33:52 +0000 (18:33 -0800)
committerDave Airlie <airlied@redhat.com>
Thu, 20 Nov 2014 01:41:32 +0000 (11:41 +1000)
commit09a58da052111263e31f0050ad775b62166fafba
tree3e15a161229e32126ee289799ad2168078edcb3d
parenta7ca52e108e549669940b11779bb491a931f8c65
drm/udl: add cache flags definitions for udl_gem_object

By default set udl_gem_object as cacheable, but set WC flag when attaching
dmabuf. In udl_gem_mmap() update cache attributes based on the flags, similar
to exynos_drm_gem_mmap().

Signed-off-by: Haixia Shi <hshi@chromium.org>
Reviewed-by: Sonny Rao <sonnyrao@chromium.org>
Reviewed-by: Olof Johansson <olofj@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/udl/udl_drv.h
drivers/gpu/drm/udl/udl_gem.c