drm/i915/tdr: Prepare error handler to accept mask of hung engines
authorarun.siluvery@linux.intel.com <arun.siluvery@linux.intel.com>
Fri, 18 Mar 2016 20:07:55 +0000 (20:07 +0000)
committerMika Kuoppala <mika.kuoppala@intel.com>
Tue, 22 Mar 2016 12:12:59 +0000 (14:12 +0200)
commit14b730fcb8d9b9c6fed540829548040ef8d2ca2c
tree015984c9c5593310129d8a7f045dd924687ecb28
parentfc0768ceac126ea6ec2ff8bd56bbe4abe11695bc
drm/i915/tdr: Prepare error handler to accept mask of hung engines

In preparation for engine reset, the wedged argument of i915_handle_error()
is extended to reflect as a mask of engines that are hung. This is further
passed down to error state capture functions which are also updated.

Engine reset recovery mechanism uses this mask and schedules recovery work
for those particular engines.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Tomas Elf <tomas.elf@intel.com>
Signed-off-by: Arun Siluvery <arun.siluvery@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1458331676-567-3-git-send-email-arun.siluvery@linux.intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gpu_error.c
drivers/gpu/drm/i915/i915_irq.c