]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Always test execution status on closing the context
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 28 Sep 2020 22:15:10 +0000 (23:15 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Sep 2020 08:03:17 +0000 (09:03 +0100)
commitf8fe77b0cc92124e7d7cf17c0ae958936ae377ee
tree48223944b56c3e32a45c1b4570b4bbf5e03a267f
parent7e585df0d6914f5405b61b89df0f60a96c57d508
drm/i915/gem: Always test execution status on closing the context

Verify that if a context is active at the time it is closed, that it is
either persistent and preemptible (with hangcheck running) or it shall
be removed from execution.

Fixes: aafd5a9f6737 ("drm/i915/gt: Expose heartbeat interval via sysfs")
Testcase: igt/gem_ctx_persistence/heartbeat-close
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: <stable@vger.kernel.org> # v5.7+
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Acked-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200928221510.26044-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_context.c