mirror of
https://github.com/torvalds/linux.git
synced 2026-05-04 14:32:27 -04:00
drm/virtio: blob prep: make CPU responses more generic
RESOURCE_MAP_BLOB / RESOURCE_UNMAP_BLOB can use this. Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org> Acked-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Link: http://patchwork.freedesktop.org/patch/msgid/20200924003214.662-2-gurchetansingh@chromium.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
committed by
Gerd Hoffmann
parent
30172efbfb
commit
0ce0729656
@@ -34,8 +34,8 @@ static int virtgpu_virtio_get_uuid(struct dma_buf *buf,
|
||||
struct virtio_gpu_object *bo = gem_to_virtio_gpu_obj(obj);
|
||||
struct virtio_gpu_device *vgdev = obj->dev->dev_private;
|
||||
|
||||
wait_event(vgdev->resp_wq, bo->uuid_state != UUID_INITIALIZING);
|
||||
if (bo->uuid_state != UUID_INITIALIZED)
|
||||
wait_event(vgdev->resp_wq, bo->uuid_state != STATE_INITIALIZING);
|
||||
if (bo->uuid_state != STATE_OK)
|
||||
return -ENODEV;
|
||||
|
||||
uuid_copy(uuid, &bo->uuid);
|
||||
@@ -81,7 +81,7 @@ struct dma_buf *virtgpu_gem_prime_export(struct drm_gem_object *obj,
|
||||
return ERR_PTR(ret);
|
||||
virtio_gpu_notify(vgdev);
|
||||
} else {
|
||||
bo->uuid_state = UUID_INITIALIZATION_FAILED;
|
||||
bo->uuid_state = STATE_ERR;
|
||||
}
|
||||
|
||||
exp_info.ops = &virtgpu_dmabuf_ops.ops;
|
||||
|
||||
Reference in New Issue
Block a user