drm/i915: make reset&hangcheck code VM aware
authorBen Widawsky <ben@bwidawsk.net>
Thu, 1 Aug 2013 00:00:05 +0000 (17:00 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 5 Aug 2013 17:04:13 +0000 (19:04 +0200)
commitd1ccbb5d711ba4994eb36c4aac84e0269b5365fe
treedc857bef41378d61408320d2b3023fee9a59f8b8
parent3e12302705a961cfe86d52155b4a8cbb34214748
drm/i915: make reset&hangcheck code VM aware

Hangcheck, and some of the recent reset code for guilty batches need to
know which address space the object was in at the time of a hangcheck.
This is because we use offsets in the (PP|G)GTT to determine this
information, and those offsets can differ depending on which VM they are
bound into.

Since we still only have 1 VM ever, this code shouldn't yet have any
impact.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c