mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 06:38:03 +02:00
intel: Retry pin ioctl on -EINTR.
This commit is contained in:
parent
e3822ea4ca
commit
2206db89ed
1 changed files with 4 additions and 1 deletions
|
|
@ -1007,7 +1007,10 @@ drm_intel_gem_bo_pin(drm_intel_bo *bo, uint32_t alignment)
|
|||
pin.handle = bo_gem->gem_handle;
|
||||
pin.alignment = alignment;
|
||||
|
||||
ret = ioctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_PIN, &pin);
|
||||
do {
|
||||
ret = ioctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_PIN, &pin);
|
||||
} while (ret == -1 && errno == EINTR);
|
||||
|
||||
if (ret != 0)
|
||||
return -errno;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue