]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: Rework virtio_gpu_object_kmap()
authorEzequiel Garcia <ezequiel@collabora.com>
Tue, 25 Sep 2018 16:16:05 +0000 (18:16 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 26 Sep 2018 06:05:06 +0000 (08:05 +0200)
commite3a00279d2d5ea2b2e44f7e1ce53606b418fe831
treeef61b4923f6927713a5aee08aea495a85c570144
parent2ac90f62f744ffd3aaeb531292a6c3dcc8104922
virtio: Rework virtio_gpu_object_kmap()

Currently, virtio_gpu_object_kmap() is only called by
virtio_gpufb_create(), when a DRM framebuffer is created.

Thus, instead of returning the vmap'ed address, emit a warning
if virtio_gpu_object_kmap is called on an already mapped
object. With this change, kmap/kunmap calls are now balanced.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20180925161606.17980-3-ezequiel@collabora.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_object.c