Skip to content

Commit 3653727

Browse files
committed
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: Tvrtko Ursulin <[email protected]> Cc: Andrzej Hajda <[email protected]> Reviewed-by: Mika Kuoppala <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 8f70f1e commit 3653727

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/gpu/drm/i915/gt/intel_workarounds.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,9 +1717,9 @@ wa_verify(struct intel_gt *gt, const struct i915_wa *wa, u32 cur,
17171717
return true;
17181718
}
17191719

1720-
static void
1721-
wa_list_apply(struct intel_gt *gt, const struct i915_wa_list *wal)
1720+
static void wa_list_apply(const struct i915_wa_list *wal)
17221721
{
1722+
struct intel_gt *gt = wal->gt;
17231723
struct intel_uncore *uncore = gt->uncore;
17241724
enum forcewake_domains fw;
17251725
unsigned long flags;
@@ -1755,7 +1755,7 @@ wa_list_apply(struct intel_gt *gt, const struct i915_wa_list *wal)
17551755
intel_gt_mcr_read_any_fw(gt, wa->mcr_reg) :
17561756
intel_uncore_read_fw(uncore, wa->reg);
17571757

1758-
wa_verify(wal->gt, wa, val, wal->name, "application");
1758+
wa_verify(gt, wa, val, wal->name, "application");
17591759
}
17601760
}
17611761

@@ -1765,7 +1765,7 @@ wa_list_apply(struct intel_gt *gt, const struct i915_wa_list *wal)
17651765

17661766
void intel_gt_apply_workarounds(struct intel_gt *gt)
17671767
{
1768-
wa_list_apply(gt, &gt->wa_list);
1768+
wa_list_apply(&gt->wa_list);
17691769
}
17701770

17711771
static bool wa_list_verify(struct intel_gt *gt,
@@ -3025,7 +3025,7 @@ void intel_engine_init_workarounds(struct intel_engine_cs *engine)
30253025

30263026
void intel_engine_apply_workarounds(struct intel_engine_cs *engine)
30273027
{
3028-
wa_list_apply(engine->gt, &engine->wa_list);
3028+
wa_list_apply(&engine->wa_list);
30293029
}
30303030

30313031
static const struct i915_range mcr_ranges_gen8[] = {

0 commit comments

Comments
 (0)