drm/i915: fix crash in error state readout on non-execlist platforms v2
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 15 Sep 2015 17:03:01 +0000 (10:03 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 23 Sep 2015 08:34:44 +0000 (10:34 +0200)
commit3a5a0393ab5de28f8dad100bf604e4ab55550836
tree901ceb5b1a3581617b41abd19d553db5e1a396af
parent9eca6832f7254d49d25494da7d47c0f8a24f7862
drm/i915: fix crash in error state readout on non-execlist platforms v2

Looks like this was introduced in:
commit d1675198ed1f21aec6e036336e4340c40b726497
Author: Alex Dai <yu.dai@intel.com>
Date:   Wed Aug 12 15:43:43 2015 +0100

    drm/i915: Integrate GuC-based command submission

This patch assumed LRC contexts and HWS layout, which is incorrect on
platforms without execlists.  This can lead to a crash in GPU error
state readout on those platforms.

I don't see a bug filed for this, but there may be one that I haven't
found.

v2: fixup offset handling for error capture fix (Dave)

Cc: Alex Dai <yu.dai@intel.com>
Reviewed-by: Dave Gordon <david.s.gordon@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gpu_error.c