udmabuf: implement begin_cpu_access/end_cpu_access hooks
authorGurchetan Singh <gurchetansingh@chromium.org>
Tue, 3 Dec 2019 01:36:27 +0000 (17:36 -0800)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 5 Dec 2019 07:57:45 +0000 (08:57 +0100)
commit284562e1f34874e267d4f499362c3816f8f6bc3f
tree9970190cb3f23208551dc56e764753988dbd57fb
parent17a7ce203490459cff14fb1c8f9a15d65fd1c544
udmabuf: implement begin_cpu_access/end_cpu_access hooks

With the misc device, we should end up using the result of
get_arch_dma_ops(..) or dma-direct ops.

This can allow us to have WC mappings in the guest after
synchronization.

Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20191203013627.85991-4-gurchetansingh@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/dma-buf/udmabuf.c