drm/i915/gt: Be paranoid and reset the GPU before release
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Jan 2020 18:03:09 +0000 (18:03 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 18 Jan 2020 08:53:53 +0000 (08:53 +0000)
commitcd69952778aa4fc9325d993eea52dfff796f8e22
tree22c27be2d387a38fc6650b53a0693f6ce57fcdb5
parent8e78871bc1e5efec22c950d3fd24ddb63d4ff28a
drm/i915/gt: Be paranoid and reset the GPU before release

Just in the very unlikely case we have not stopped the GPU before we
return the pages being used by the GPU to the system, force a reset.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200117180309.3249427-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine_cs.c