Commit 2fa772f3 authored by Chris Wilson's avatar Chris Wilson

drm/i915: Only print 'generating error event' if we actually are

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent dc96e9b8
......@@ -396,7 +396,6 @@ static void i915_error_work_func(struct work_struct *work)
char *reset_event[] = { "RESET=1", NULL };
char *reset_done_event[] = { "ERROR=0", NULL };
DRM_DEBUG_DRIVER("generating error event\n");
kobject_uevent_env(&dev->primary->kdev.kobj, KOBJ_CHANGE, error_event);
if (atomic_read(&dev_priv->mm.wedged)) {
......@@ -574,6 +573,8 @@ static void i915_capture_error_state(struct drm_device *dev)
return;
}
DRM_DEBUG_DRIVER("generating error event\n");
error->seqno =
dev_priv->render_ring.get_seqno(dev, &dev_priv->render_ring);
error->eir = I915_READ(EIR);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment