Merge v5.6-rc2 into drm-misc-next
Lyude needs some patches in 5.6-rc2 and we didn't bring drm-misc-next forward yet, so it looks like a good occasion. Signed-off-by: Maxime Ripard <maxime@cerno.tech>
This commit is contained in:
@@ -469,6 +469,12 @@ static void vlv_free_s0ix_state(struct drm_i915_private *i915)
|
||||
i915->vlv_s0ix_state = NULL;
|
||||
}
|
||||
|
||||
static void sanitize_gpu(struct drm_i915_private *i915)
|
||||
{
|
||||
if (!INTEL_INFO(i915)->gpu_reset_clobbers_display)
|
||||
__intel_gt_reset(&i915->gt, ALL_ENGINES);
|
||||
}
|
||||
|
||||
/**
|
||||
* i915_driver_early_probe - setup state not requiring device access
|
||||
* @dev_priv: device private
|
||||
@@ -602,6 +608,9 @@ static int i915_driver_mmio_probe(struct drm_i915_private *dev_priv)
|
||||
if (ret)
|
||||
goto err_uncore;
|
||||
|
||||
/* As early as possible, scrub existing GPU state before clobbering */
|
||||
sanitize_gpu(dev_priv);
|
||||
|
||||
return 0;
|
||||
|
||||
err_uncore:
|
||||
@@ -1817,7 +1826,7 @@ static int i915_drm_resume(struct drm_device *dev)
|
||||
|
||||
disable_rpm_wakeref_asserts(&dev_priv->runtime_pm);
|
||||
|
||||
intel_gt_sanitize(&dev_priv->gt, true);
|
||||
sanitize_gpu(dev_priv);
|
||||
|
||||
ret = i915_ggtt_enable_hw(dev_priv);
|
||||
if (ret)
|
||||
|
Reference in New Issue
Block a user