diff options
author | Mika Kuoppala <mika.kuoppala@linux.intel.com> | 2015-01-28 10:03:14 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-01-29 12:03:07 -0500 |
commit | b8d24a06568368076ebd5a858a011699a97bfa42 (patch) | |
tree | cb627b2237cc410389311838260072429541337c /drivers/gpu/drm/i915/i915_dma.c | |
parent | 397f6fa6b1d5150add9043d7ac60e32307eb7c6b (diff) |
drm/i915: Remove nested work in gpu error handling
Now when we declare gpu errors only through our own dedicated
hangcheck workqueue there is no need to have a separate workqueue
for handling the resetting and waking up the clients as the deadlock
concerns are no more.
The only exception is i915_debugfs::i915_set_wedged, which triggers
error handling through process context. However as this is only used through
test harness it is responsibility for test harness not to introduce hangs
through both debug interface and through hangcheck mechanism at the same time.
Remove gpu_error.work and let the hangcheck work do the tasks it used to.
v2: Add a big warning sign into i915_debugfs::i915_set_wedged (Chris)
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_dma.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 6eaf79504b58..1a46787129e7 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c | |||
@@ -945,7 +945,6 @@ int i915_driver_unload(struct drm_device *dev) | |||
945 | 945 | ||
946 | /* Free error state after interrupts are fully disabled. */ | 946 | /* Free error state after interrupts are fully disabled. */ |
947 | cancel_delayed_work_sync(&dev_priv->gpu_error.hangcheck_work); | 947 | cancel_delayed_work_sync(&dev_priv->gpu_error.hangcheck_work); |
948 | cancel_work_sync(&dev_priv->gpu_error.work); | ||
949 | i915_destroy_error_state(dev); | 948 | i915_destroy_error_state(dev); |
950 | 949 | ||
951 | if (dev->pdev->msi_enabled) | 950 | if (dev->pdev->msi_enabled) |