diff --git a/drivers/gpu/drm/i915/gt/intel_workarounds.c b/drivers/gpu/drm/i915/gt/intel_workarounds.c index 927d178cdae1..441036840e69 100644 --- a/drivers/gpu/drm/i915/gt/intel_workarounds.c +++ b/drivers/gpu/drm/i915/gt/intel_workarounds.c @@ -1731,7 +1731,7 @@ wa_verify(struct intel_gt *gt, const struct i915_wa *wa, u32 cur, static void wa_list_apply(const struct i915_wa_list *wal) { struct intel_gt *gt = wal->gt; - struct intel_uncore *uncore = gt->uncore; + struct intel_uncore *uncore; enum forcewake_domains fw; unsigned long flags; struct i915_wa *wa; @@ -1740,6 +1740,8 @@ static void wa_list_apply(const struct i915_wa_list *wal) if (!wal->count) return; + uncore = gt->uncore; + fw = wal_get_fw_for_rmw(uncore, wal); intel_gt_mcr_lock(gt, &flags);