Commit 36537275 authored by Tvrtko Ursulin's avatar Tvrtko Ursulin

drm/i915: Simplify internal helper function signature

Since we are now storing the GT backpointer in the wa list we can drop the
explicit struct intel_gt * argument to wa_list_apply.
Signed-off-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Andrzej Hajda <andrzej.hajda@intel.com>
Reviewed-by: default avatarMika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221110124633.3135026-1-tvrtko.ursulin@linux.intel.com
parent 8f70f1ec
...@@ -1717,9 +1717,9 @@ wa_verify(struct intel_gt *gt, const struct i915_wa *wa, u32 cur, ...@@ -1717,9 +1717,9 @@ wa_verify(struct intel_gt *gt, const struct i915_wa *wa, u32 cur,
return true; return true;
} }
static void static void wa_list_apply(const struct i915_wa_list *wal)
wa_list_apply(struct intel_gt *gt, const struct i915_wa_list *wal)
{ {
struct intel_gt *gt = wal->gt;
struct intel_uncore *uncore = gt->uncore; struct intel_uncore *uncore = gt->uncore;
enum forcewake_domains fw; enum forcewake_domains fw;
unsigned long flags; unsigned long flags;
...@@ -1755,7 +1755,7 @@ wa_list_apply(struct intel_gt *gt, const struct i915_wa_list *wal) ...@@ -1755,7 +1755,7 @@ wa_list_apply(struct intel_gt *gt, const struct i915_wa_list *wal)
intel_gt_mcr_read_any_fw(gt, wa->mcr_reg) : intel_gt_mcr_read_any_fw(gt, wa->mcr_reg) :
intel_uncore_read_fw(uncore, wa->reg); intel_uncore_read_fw(uncore, wa->reg);
wa_verify(wal->gt, wa, val, wal->name, "application"); wa_verify(gt, wa, val, wal->name, "application");
} }
} }
...@@ -1765,7 +1765,7 @@ wa_list_apply(struct intel_gt *gt, const struct i915_wa_list *wal) ...@@ -1765,7 +1765,7 @@ wa_list_apply(struct intel_gt *gt, const struct i915_wa_list *wal)
void intel_gt_apply_workarounds(struct intel_gt *gt) void intel_gt_apply_workarounds(struct intel_gt *gt)
{ {
wa_list_apply(gt, &gt->wa_list); wa_list_apply(&gt->wa_list);
} }
static bool wa_list_verify(struct intel_gt *gt, static bool wa_list_verify(struct intel_gt *gt,
...@@ -3025,7 +3025,7 @@ void intel_engine_init_workarounds(struct intel_engine_cs *engine) ...@@ -3025,7 +3025,7 @@ void intel_engine_init_workarounds(struct intel_engine_cs *engine)
void intel_engine_apply_workarounds(struct intel_engine_cs *engine) void intel_engine_apply_workarounds(struct intel_engine_cs *engine)
{ {
wa_list_apply(engine->gt, &engine->wa_list); wa_list_apply(&engine->wa_list);
} }
static const struct i915_range mcr_ranges_gen8[] = { static const struct i915_range mcr_ranges_gen8[] = {
......
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