drm/virtio: add dma sync for dma mapped virtio gpu framebuffer pages
authorJiandi An <jiandi.an@amd.com>
Wed, 19 Sep 2018 07:09:53 +0000 (07:09 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 19 Sep 2018 11:33:06 +0000 (13:33 +0200)
commit8f44ca223345a7d02e18ed4e70ff95178434e137
treea7c73784d3c2f6782bd0d41f86468795960cb49f
parent3536faefc03d48e97891ed7fc542ff85ce00a4e1
drm/virtio: add dma sync for dma mapped virtio gpu framebuffer pages

With virtio gpu ttm-pages being dma mapped, dma sync is needed when
swiotlb is used as bounce buffers, before TRANSFER_TO_HOST_2D/3D
commands are sent.

Signed-off-by: Jiandi An <jiandi.an@amd.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20180919070931.91168-1-jiandi.an@amd.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/virtio/virtgpu_fb.c
drivers/gpu/drm/virtio/virtgpu_vq.c