]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915: Report to userspace if we have a (presumed) working GPU reset
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 15 Jun 2015 11:23:48 +0000 (12:23 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 15 Jun 2015 14:59:58 +0000 (16:59 +0200)
commit49e4d842f0d0892c3d26c93a81b9f22c1467030e
tree31fd97db34a73f45faf7c103257b39b3f8af7c63
parent0d8041842644cff1183f3d0df429792764aecd3f
drm/i915: Report to userspace if we have a (presumed) working GPU reset

In igt, we want to test handling of GPU hangs, both for recovery
purposes and for reporting. However, we don't want to inject a genuine
GPU hang onto a machine that cannot recover and so be permenantly
wedged. Rather than embed heuristics into igt, have the kernel report
exactly when it expects the GPU reset to work.

This can also be usefully extended in future to indicate different
levels of fine-grained resets.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Tim Gore <tim.gore@intel.com>
Cc: Tomas Elf <tomas.elf@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_uncore.c
include/uapi/drm/i915_drm.h