drm/i915/gt: Avoid using the GPU before initialisation
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 29 Dec 2019 18:31:49 +0000 (18:31 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Dec 2019 14:04:57 +0000 (14:04 +0000)
commit45b152f752ea81935ff1f68d28b1914b8cfbe759
tree9b5e35cf78d697d57f40d98fb49695128f211ca7
parent7b02b23e5dd0ddd01cc7845d67eae281d52523a1
drm/i915/gt: Avoid using the GPU before initialisation

Mark the GT as wedged so that we are not tempted to use it prior to
initialisation.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Andi Shyti <andi.shyti@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191229183153.3719869-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine_pm.c
drivers/gpu/drm/i915/gt/intel_gt_pm.c
drivers/gpu/drm/i915/gt/intel_reset.c
drivers/gpu/drm/i915/selftests/mock_gem_device.c