]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: make sure context is created in gem open
authorChia-I Wu <olvaffe@gmail.com>
Thu, 7 Jan 2021 21:07:26 +0000 (13:07 -0800)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 11 Jan 2021 07:49:48 +0000 (08:49 +0100)
commite55ebc39dea61c4385bf053734a6bee2e4e440f1
tree4109a76f14046f59e2e6761056be26f3cda58cbe
parent1ee63fa1c171de6fff5fb651b2c374147b353411
drm/virtio: make sure context is created in gem open

The context might still be missing when DRM_IOCTL_PRIME_FD_TO_HANDLE is
the first ioctl on the drm_file.

Fixes: ec15ca83305a ("drm/virtio: enqueue virtio_gpu_create_context after the first 3D ioctl")
Cc: Gurchetan Singh <gurchetansingh@chromium.org>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20210107210726.269584-1-olvaffe@gmail.com
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_gem.c