Skip to content

Commit 34734ab

Browse files
committed
drm/i915/dg2: Add Wa_16011777198
Coarse power gating for render should not be enabled on some DG2 steppings. Bspec: 52698 Signed-off-by: Matt Roper <[email protected]> Reviewed-by: Clint Taylor <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 96b1c45 commit 34734ab

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,17 @@ static void gen11_rc6_enable(struct intel_rc6 *rc6)
117117
GEN6_RC_CTL_RC6_ENABLE |
118118
GEN6_RC_CTL_EI_MODE(1);
119119

120-
pg_enable =
121-
GEN9_RENDER_PG_ENABLE |
122-
GEN9_MEDIA_PG_ENABLE |
123-
GEN11_MEDIA_SAMPLER_PG_ENABLE;
120+
/* Wa_16011777198 - Render powergating must remain disabled */
121+
if (IS_DG2_GRAPHICS_STEP(gt->i915, G10, STEP_A0, STEP_C0) ||
122+
IS_DG2_GRAPHICS_STEP(gt->i915, G11, STEP_A0, STEP_B0))
123+
pg_enable =
124+
GEN9_MEDIA_PG_ENABLE |
125+
GEN11_MEDIA_SAMPLER_PG_ENABLE;
126+
else
127+
pg_enable =
128+
GEN9_RENDER_PG_ENABLE |
129+
GEN9_MEDIA_PG_ENABLE |
130+
GEN11_MEDIA_SAMPLER_PG_ENABLE;
124131

125132
if (GRAPHICS_VER(gt->i915) >= 12) {
126133
for (i = 0; i < I915_MAX_VCS; i++)

0 commit comments

Comments
 (0)