intel: Add support for GPU reset status query ioctl
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 15 Nov 2013 18:24:43 +0000 (10:24 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 15 Nov 2013 19:31:49 +0000 (11:31 -0800)
commit5a41b025042c42788977e67aea8d1bf3b59baae4
tree1abd805a37014e5dcda2c5d75d7c989c46f66998
parent1a84eea45bf9d3915698a04199c594a63fcca4a2
intel: Add support for GPU reset status query ioctl

I would have just used the drmIoctl interface directly in Mesa, but the
ioctl needs some data from the drm_intel_context that is not exposed
outside libdrm.

This ioctl is in the drm-intel-next tree as b635991.

v2: Update based on Mika's kernel work.

v3: Fix compile failures from last-minute typos.  Sigh.

v4: Import the actual changes from the kernel i915_drm.h.  Only comments
on some fields of drm_i915_reset_stats differed.  There are still some
deltas between the kernel i915_drm.h and the one in libdrm, but those
can be resolved in other patches.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> [v3]
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
include/drm/i915_drm.h
intel/intel_bufmgr.h
intel/intel_bufmgr_gem.c