summaryrefslogtreecommitdiff
path: root/shared-core/i915_drv.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-06-23 10:16:35 -0700
committerKeith Packard <keithp@keithp.com>2008-06-23 10:16:35 -0700
commit626e9ba494b46f6e8352c9e461227187f335e229 (patch)
treec136ab45c0c34287ffd817ed489490b6261e83a3 /shared-core/i915_drv.h
parent1c2dd9826793579d5ef6f51fb9f5470c4af95548 (diff)
[intel-gem] Recover resources from wedged hardware.
Clean up queues, free objects. On the next entervt, unmark the hardware to let the user try again (presumably after resetting the chip). Someday we'll automatically recover...
Diffstat (limited to 'shared-core/i915_drv.h')
-rw-r--r--shared-core/i915_drv.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/shared-core/i915_drv.h b/shared-core/i915_drv.h
index 82d2c50c..a8d5b91e 100644
--- a/shared-core/i915_drv.h
+++ b/shared-core/i915_drv.h
@@ -309,6 +309,15 @@ typedef struct drm_i915_private {
* transitioned away from for kernel modesetting.
*/
int suspended;
+
+ /**
+ * Flag if the hardware appears to be wedged.
+ *
+ * This is set when attempts to idle the device timeout.
+ * It prevents command submission from occuring and makes
+ * every pending request fail
+ */
+ int wedged;
} mm;
} drm_i915_private_t;