projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f8bcc7
)
drm/atomic: Convert atomic ioctl locking to interruptible.
author
Maarten Lankhorst
<
[email protected]
>
Tue, 12 Sep 2017 13:37:45 +0000
(15:37 +0200)
committer
Maarten Lankhorst
<
[email protected]
>
Wed, 13 Sep 2017 07:51:18 +0000
(09:51 +0200)
Pass DRM_MODESET_ACQUIRE_INTERRUPTIBLE to acquire_init, and
handle drm_modeset_backoff which can now fail by returning the error.
Signed-off-by: Maarten Lankhorst <
[email protected]
>
Reviewed-by: Daniel Vetter <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Emil Velikov <
[email protected]
>
drivers/gpu/drm/drm_atomic.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_atomic.c
b/drivers/gpu/drm/drm_atomic.c
index 98f42397c529d29821786a5c86f2723268a44f33..9e787621b4f511e188fdc4c340488059e0cb8d09 100644
(file)
--- a/
drivers/gpu/drm/drm_atomic.c
+++ b/
drivers/gpu/drm/drm_atomic.c
@@
-2231,7
+2231,7
@@
int drm_mode_atomic_ioctl(struct drm_device *dev,
(arg->flags & DRM_MODE_PAGE_FLIP_EVENT))
return -EINVAL;
- drm_modeset_acquire_init(&ctx,
0
);
+ drm_modeset_acquire_init(&ctx,
DRM_MODESET_ACQUIRE_INTERRUPTIBLE
);
state = drm_atomic_state_alloc(dev);
if (!state)
@@
-2342,8
+2342,9
@@
out:
if (ret == -EDEADLK) {
drm_atomic_state_clear(state);
- drm_modeset_backoff(&ctx);
- goto retry;
+ ret = drm_modeset_backoff(&ctx);
+ if (!ret)
+ goto retry;
}
drm_atomic_state_put(state);