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:
4add75c
)
drm/i915: Be paranoid and bail on resetting if we can't take the lock.
author
Chris Wilson
<chris@chris-wilson.co.uk>
Sat, 4 Dec 2010 18:17:15 +0000
(18:17 +0000)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Sun, 5 Dec 2010 00:37:38 +0000
(
00:37
+0000)
This will declare the machine wedged, but is better than truly wedging
the machine.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_drv.c
b/drivers/gpu/drm/i915/i915_drv.c
index 1a15b7886b8c0ee0ade77d5493b3578b903d7ecf..64844e2e9f8668de80760079a06f7401bf9efa08 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_drv.c
+++ b/
drivers/gpu/drm/i915/i915_drv.c
@@
-440,7
+440,8
@@
int i915_reset(struct drm_device *dev, u8 flags)
bool need_display = true;
int ret;
- mutex_lock(&dev->struct_mutex);
+ if (!mutex_trylock(&dev->struct_mutex))
+ return -EBUSY;
i915_gem_reset(dev);