diff options
author | 2023-02-03 15:33:44 -0800 | |
---|---|---|
committer | 2023-02-06 20:10:56 +0300 | |
commit | 8f20660f053cefd4693e69cfff9cf58f4f7c4929 (patch) | |
tree | fb41c2678fefd55e0322d26fac74f8b7bd7dabe6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/amdgpu: fix memory leak in amdgpu_cs_sync_rings (diff) | |
download | wireguard-linux-8f20660f053cefd4693e69cfff9cf58f4f7c4929.tar.xz wireguard-linux-8f20660f053cefd4693e69cfff9cf58f4f7c4929.zip |
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: 2cd7b6f08bc4 ("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
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions