]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Identify active VM for batchbuffer capture
authorBen Widawsky <benjamin.widawsky@intel.com>
Fri, 6 Dec 2013 22:10:54 +0000 (14:10 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Dec 2013 14:27:48 +0000 (15:27 +0100)
commita2aab41e2564cc3412ac191443d3070b4c633a25
treed670a4d9a32b3e4bbddb05d4b39adab754dc4b33
parentde86f7f520af16d3781d35ed084d47cc184cdaa2
drm/i915: Identify active VM for batchbuffer capture

Using the current state of the page directory registers, we can
determine which of our address spaces was active when the hang occurred.
This allows us to scan through all the address spaces to identify the
"active" one during error capture.

v2: Rebased for BDW error detection. BDW error detection is similar
except instead of PP_DIR_BASE, we can use the PDP registers.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
[danvet: Add FIXME about global gtt misuse.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gpu_error.c