]> 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)
commit0a2d6e4ca260c17f5d5ef184508b7d41378b8209
treed670a4d9a32b3e4bbddb05d4b39adab754dc4b33
parent06f536ea41d737fa67a723b95a995fbf43790e32
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