drm/vgem: fix cache synchronization on arm/arm64
authorRob Clark <robdclark@chromium.org>
Wed, 17 Jul 2019 21:15:37 +0000 (14:15 -0700)
committerSean Paul <seanpaul@chromium.org>
Wed, 31 Jul 2019 18:29:20 +0000 (14:29 -0400)
commit7e9e5ead55beacc11116b3fb90b0de6e7cf55a69
tree7e865e3d963c0ef275bc6a47169a19a8ca8fa025
parentdc25ace66c74ca148c393952bd2ce0856029c692
drm/vgem: fix cache synchronization on arm/arm64

drm_cflush_pages() is no-op on arm/arm64.  But instead we can use
dma_sync API.

Fixes failures w/ vgem_test.

Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190717211542.30482-1-robdclark@gmail.com
drivers/gpu/drm/vgem/vgem_drv.c