[27/29] drm/i915/guc: Disable global reset

Submitted by Chris Wilson on Dec. 6, 2018, 9:15 p.m.


Message ID 20181206211532.31217-27-chris@chris-wilson.co.uk
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Intel GFX - Try Bot

Not browsing as part of any series.

Commit Message

Chris Wilson Dec. 6, 2018, 9:15 p.m.
The guc (and huc) currently inexcruitably depend on struct_mutex for
device reinitialisation from inside the reset, and indeed taking any
mutex here is verboten (as we must be able to reset from underneath any
of our mutexes). That makes recovering the guc unviable without, for
example, reserving contiguous vma space and pages for it to use.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
 drivers/gpu/drm/i915/i915_reset.c | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/i915/i915_reset.c b/drivers/gpu/drm/i915/i915_reset.c
index 7d10c702d10e..e9316705950b 100644
--- a/drivers/gpu/drm/i915/i915_reset.c
+++ b/drivers/gpu/drm/i915/i915_reset.c
@@ -590,6 +590,9 @@  int intel_gpu_reset(struct drm_i915_private *i915, unsigned int engine_mask)
 bool intel_has_gpu_reset(struct drm_i915_private *i915)
+	if (USES_GUC(i915))
+		return false;
 	return intel_get_gpu_reset(i915);