anv/xe: return failure in case waiting for the vm_bind syncobj fails

Don't hide failures, we have xe.ko bugs related to that, such as:
    https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/496

The bind ioctl may fail if the application does something wrong, but
the wait really should never fail.

v2: Don't print an error message (Lionel).

Reviewed-by: José Roberto de Souza <jose.souza@intel.com> (v1)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24681>
This commit is contained in:
Paulo Zanoni 2023-08-08 17:14:49 -07:00 committed by Marge Bot
parent 935a1d2c8f
commit 9a7c6ae32c

View file

@ -176,7 +176,7 @@ xe_vm_bind_op(struct anv_device *device, int num_binds,
.first_signaled = 0,
.pad = 0,
};
intel_ioctl(device->fd, DRM_IOCTL_SYNCOBJ_WAIT, &wait);
ret = intel_ioctl(device->fd, DRM_IOCTL_SYNCOBJ_WAIT, &wait);
bind_error:
STACK_ARRAY_FINISH(xe_binds_stackarray);