]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/i915/gt: Force the GT reset on shutdown
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 25 May 2020 15:14:59 +0000 (16:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 11:07:44 +0000 (13:07 +0200)
commit5c4f75b93e2263ba5594a3eaa51745786a8565ce
treef209d958c0a943693818e1223bc17b43b7c61978
parentf3b04fa3539b26262c98fdcd5254470d55ffc752
drm/i915/gt: Force the GT reset on shutdown

commit 7c4541a37bbbf83c0f16f779e85eb61d9348ed29 upstream.

Before we return control to the system, and letting it reuse all the
pages being accessed by HW, we must disable the HW. At the moment, we
dare not reset the GPU if it will clobber the display, but once we know
the display has been disabled, we can proceed with the reset as we
shutdown the module. We know the next user must reinitialise the HW for
their purpose.

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/489
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@kernel.org
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200525151459.12083-1-chris@chris-wilson.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/gt/intel_gt.c