Commit e6d14f97 authored by Chia-I Wu's avatar Chia-I Wu Committed by Jason Macnak
Browse files

UPSTREAM: drm/virtio: make sure context is created in gem open



[ Upstream commit 8aeef9d4f48917ce85710949b079548974b4a638 ]

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

Fixes: 72b48ae800da ("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: default avatarChia-I Wu <olvaffe@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20210107210726.269584-1-olvaffe@gmail.com


Reviewed-by: default avatarGurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>

Bug: b/184893782
Test: `launch_cvd --gpu_mode=gfxstream`
Change-Id: Id6d70eb8429e9f25474aa8c6d6d0626b88e77d34
(cherry picked from commit 5f2c65e6)
parent 8a0987a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment