[Intel-gfx] [PATCH 2/2] drm/i915: Verify the engine setup after recording the defaults

Chris Wilson chris at chris-wilson.co.uk
Sat Aug 10 09:03:29 UTC 2019


Check that the engine w/a persist after we performed a context switch
and record those w/a into the default context state.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Andi Shyti <andi.shyti at intel.com>
---
 drivers/gpu/drm/i915/i915_gem.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 6ff01a404346..aff9885e443f 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -1486,11 +1486,11 @@ int i915_gem_init(struct drm_i915_private *dev_priv)
 	 */
 	intel_init_clock_gating(dev_priv);
 
-	ret = intel_engines_verify_workarounds(dev_priv);
+	ret = __intel_engines_record_defaults(dev_priv);
 	if (ret)
 		goto err_gt;
 
-	ret = __intel_engines_record_defaults(dev_priv);
+	ret = intel_engines_verify_workarounds(dev_priv);
 	if (ret)
 		goto err_gt;
 
-- 
2.23.0.rc1



More information about the Intel-gfx mailing list