]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Always use the GTT for error capture
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Oct 2016 09:05:20 +0000 (10:05 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Oct 2016 11:00:32 +0000 (12:00 +0100)
commit04d48a2694e3ab3df7ebf1ddf771dd349fba9b18
treed6d1d48c2976983e9a9ab4a26f81b7800ca18322
parenteb87c8538895e830fe44202026d84b8dc5c0a4e7
drm/i915: Always use the GTT for error capture

Since the GTT provides universal access to any GPU page, we can use it
to reduce our plethora of read methods to just one. It also has the
important characteristic of being exactly what the GPU sees - if there
are incoherency problems, seeing the batch as executed (rather than as
trapped inside the cpu cache) is important.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161012090522.367-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h
drivers/gpu/drm/i915/i915_gpu_error.c