linux/include/uapi/drm
Ryan Neph 8f20660f05 drm/virtio: exbuf->fence_fd unmodified on interrupted wait
An interrupted dma_fence_wait() becomes an -ERESTARTSYS returned
to userspace ioctl(DRM_IOCTL_VIRTGPU_EXECBUFFER) calls, prompting to
retry the ioctl(), but the passed exbuf->fence_fd has been reset to -1,
making the retry attempt fail at sync_file_get_fence().

The uapi for DRM_IOCTL_VIRTGPU_EXECBUFFER is changed to retain the
passed value for exbuf->fence_fd when returning anything besides a
successful result from the ioctl.

Fixes: 2cd7b6f08b ("drm/virtio: add in/out fence support for explicit synchronization")
Signed-off-by: Ryan Neph <ryanneph@chromium.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230203233345.2477767-1-ryanneph@chromium.org
2023-02-06 20:10:56 +03:00
..
amdgpu_drm.h drm/amdgpu: Set MTYPE in PTE based on BO flags 2022-11-09 17:41:42 -05:00
armada_drm.h
drm.h
drm_fourcc.h drm/fourcc: add Vivante tile status modifiers 2022-10-06 19:04:20 +02:00
drm_mode.h drm: document uAPI page-flip flags 2022-10-04 14:47:35 +02:00
drm_sarea.h
etnaviv_drm.h
exynos_drm.h
i810_drm.h
i915_drm.h drm/i915/perf: Apply Wa_18013179988 2022-10-27 12:36:53 -07:00
lima_drm.h
mga_drm.h
msm_drm.h drm/msm: Add MSM_INFO_GET_FLAGS 2022-11-02 19:08:13 +03:00
nouveau_drm.h
omap_drm.h
panfrost_drm.h drm/panfrost: Remove type name from internal struct again 2022-11-07 15:35:43 +00:00
qxl_drm.h
r128_drm.h
radeon_drm.h
savage_drm.h
sis_drm.h
tegra_drm.h
v3d_drm.h
vc4_drm.h
vgem_drm.h
via_drm.h
virtgpu_drm.h drm/virtio: exbuf->fence_fd unmodified on interrupted wait 2023-02-06 20:10:56 +03:00
vmwgfx_drm.h