drm/i915: Use correct index for backtracking HUNG semaphores
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 3 Oct 2016 12:45:16 +0000 (13:45 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 3 Oct 2016 19:59:55 +0000 (20:59 +0100)
commit348b9b1192144e13b779f8f9be301d492bebaff2
treeb5f0c4d12cf9e08b16b939e0a034a3a40fc1f930
parent5f12b80a0b42da253691ca03828033014bb786eb
drm/i915: Use correct index for backtracking HUNG semaphores

When decoding the semaphores inside hangcheck, we need to use the hw-id
and not the local array index.

Fixes: de1add360522 ("drm/i915: Decouple execbuf uAPI ...")
Testcase: igt/gem_exec_whisper/hang # gen6-7
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: stable@vger.kernel.org
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161003124516.12388-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_irq.c