drm/i915: Stop getting the fault address from RING_FAULT_REG
authorOscar Mateo <oscar.mateo@intel.com>
Fri, 22 Dec 2017 22:38:49 +0000 (14:38 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 10 Jan 2018 19:06:32 +0000 (19:06 +0000)
commit5a3f58dfd1420347be838546e00a4a9e847bda30
tree984ce252f772aa1b5f5129d7401852d069362b8e
parentda943b5ab071584fcb9cfa896dc8c643d376f362
drm/i915: Stop getting the fault address from RING_FAULT_REG

This register does not contain it. Instead, we have to look into FAULT_TLB_DATA0 & 1
(where, by the way, we can also get the address space).

v2: Right formatting
v3:
  - Use 12 (as per the register format) instead of PAGE_SIZE (Chris)
  - s/BITS_44_TO_47/HIGHBITS (Chris)
  - Right formatting, this time for real

Fixes: b03ec3d67ab8 ("drm/i915: There is only one fault register from GEN8 onwards")
Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/1513982329-32191-1-git-send-email-oscar.mateo@intel.com
Reviewed-by: Michel Thierry <michel.thierry@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_reg.h