Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358017
b: refs/heads/master
c: 7db0ba2
h: refs/heads/master
i:
  358015: 9459af7
v: v3
  • Loading branch information
Daniel Vetter committed Jan 21, 2013
1 parent 1b4c11b commit 02cb65c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f69061bedd6ea63f271fe97914364def2f33fc6b
refs/heads/master: 7db0ba242b3a7ddcfc1450bc50eb3102c68f0244
15 changes: 13 additions & 2 deletions trunk/drivers/gpu/drm/i915/i915_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -875,9 +875,20 @@ static void i915_error_work_func(struct work_struct *work)

kobject_uevent_env(&dev->primary->kdev.kobj, KOBJ_CHANGE, error_event);

if (i915_reset_in_progress(error)) {
/*
* Note that there's only one work item which does gpu resets, so we
* need not worry about concurrent gpu resets potentially incrementing
* error->reset_counter twice. We only need to take care of another
* racing irq/hangcheck declaring the gpu dead for a second time. A
* quick check for that is good enough: schedule_work ensures the
* correct ordering between hang detection and this work item, and since
* the reset in-progress bit is only ever set by code outside of this
* work we don't need to worry about any other races.
*/
if (i915_reset_in_progress(error) && !i915_terminally_wedged(error)) {
DRM_DEBUG_DRIVER("resetting chip\n");
kobject_uevent_env(&dev->primary->kdev.kobj, KOBJ_CHANGE, reset_event);
kobject_uevent_env(&dev->primary->kdev.kobj, KOBJ_CHANGE,
reset_event);

ret = i915_reset(dev);

Expand Down

0 comments on commit 02cb65c

Please sign in to comment.