drm/i915/gt: Use a mmio read of the CSB in case of failure
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 15 Sep 2020 13:49:23 +0000 (14:49 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 15 Sep 2020 14:33:54 +0000 (15:33 +0100)
commit4ff64bcfe2b11be52a3fceb6b5c23d7be7916362
treef9f65a982ef92ae41a7184e9b096c9a8c18f7b26
parent884c40741234c12533caf344997c895ee1c37d60
drm/i915/gt: Use a mmio read of the CSB in case of failure

If we find the GPU didn't update the CSB within 50us, we currently fail
and eventually reset the GPU. Lets report the value from the mmio space
as a last resort, it may just stave off an unnecessary GPU reset.

References: HSDES#22011327657
Suggested-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200915134923.30088-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/gt/intel_lrc_reg.h