]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Treat i915_reset_engine() as guilty until proven innocent
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Apr 2018 22:03:53 +0000 (23:03 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Apr 2018 22:43:47 +0000 (23:43 +0100)
commitdf09078d1374fd919b9e0cbcdf4ee042ce2d8627
tree0643eac57745fbd5c143016ec3a395e34b329bfe
parentafff237ff92cfb0c8370308b12e88c29684e6d40
drm/i915: Treat i915_reset_engine() as guilty until proven innocent

If we are resetting just one engine, we know it has stalled. So we can
pass the stalled parameter directly to i915_gem_reset_engine(), which
alleviates the necessity to poke at the generic engine->hangcheck.stalled
magic variable, leaving that under control of hangcheck as its name
implies. Other than simplifying by removing the indirect parameter along
this path, this allows us to introduce new reset mechanisms that run
independently of hangcheck.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Jeff McGee <jeff.mcgee@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Michel Thierry <michel.thierry@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180406220354.18911-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/selftests/intel_hangcheck.c