drm/i915: Make Gen6/7 RING_FAULT_REG access engine centric
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 7 Jun 2019 10:15:35 +0000 (11:15 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 7 Jun 2019 11:47:39 +0000 (12:47 +0100)
commit77a302e04312118067ae790b6fc7e51eff403d86
treed94ab605c2cbae4a757e29a03c743f2a4e9c2356
parent7c53c48d01a3401724ae1d58c6e707562f5437b1
drm/i915: Make Gen6/7 RING_FAULT_REG access engine centric

Similar to earlier conversions, eliminate the implicit dev_priv by
introducing some helpers which take the engine parameter (since the
register itself is per engine).

v2:
 * Always use parentheses in macro arguments.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190607101535.767-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/gt/intel_engine.h
drivers/gpu/drm/i915/gt/intel_reset.c
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gpu_error.c