Commit 7f63aa23 authored by Tvrtko Ursulin's avatar Tvrtko Ursulin Committed by Chris Wilson

drm/i915: Pass intel_gt to intel_engines_verify_workarounds

Engines belong to the GT so make it indicative in the API.
Signed-off-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191022094726.3001-7-tvrtko.ursulin@linux.intel.com
parent 7841fcbd
...@@ -1198,7 +1198,7 @@ static int __intel_engines_record_defaults(struct drm_i915_private *i915) ...@@ -1198,7 +1198,7 @@ static int __intel_engines_record_defaults(struct drm_i915_private *i915)
return err; return err;
} }
static int intel_engines_verify_workarounds(struct drm_i915_private *i915) static int intel_engines_verify_workarounds(struct intel_gt *gt)
{ {
struct intel_engine_cs *engine; struct intel_engine_cs *engine;
enum intel_engine_id id; enum intel_engine_id id;
...@@ -1207,7 +1207,7 @@ static int intel_engines_verify_workarounds(struct drm_i915_private *i915) ...@@ -1207,7 +1207,7 @@ static int intel_engines_verify_workarounds(struct drm_i915_private *i915)
if (!IS_ENABLED(CONFIG_DRM_I915_DEBUG_GEM)) if (!IS_ENABLED(CONFIG_DRM_I915_DEBUG_GEM))
return 0; return 0;
for_each_engine(engine, i915, id) { for_each_engine(engine, gt, id) {
if (intel_engine_verify_workarounds(engine, "load")) if (intel_engine_verify_workarounds(engine, "load"))
err = -EIO; err = -EIO;
} }
...@@ -1291,7 +1291,7 @@ int i915_gem_init(struct drm_i915_private *dev_priv) ...@@ -1291,7 +1291,7 @@ int i915_gem_init(struct drm_i915_private *dev_priv)
*/ */
intel_init_clock_gating(dev_priv); intel_init_clock_gating(dev_priv);
ret = intel_engines_verify_workarounds(dev_priv); ret = intel_engines_verify_workarounds(&dev_priv->gt);
if (ret) if (ret)
goto err_gt; goto err_gt;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment