Add MTL Wa_14017066071, Wa_14017654203 and Wa_22015279794
Subsystems (2)
cover Add MTL Wa_14017066071, Wa_14017654203 and Wa_22015279794
Add some GT workarounds for MTL. Note that Wa_14017066071 and Wa_14017654203 require the same implementation and have the same platform and stepping bounds, so there is a single patch for them.
Radhakrishna Sripada (2):
drm/i915/mtl: Add workarounds Wa_14017066071 and Wa_14017654203 drm/i915/mtl: Add Wa_22015279794
drivers/gpu/drm/i915/gt/intel_gt_regs.h | 7 +++++++ drivers/gpu/drm/i915/gt/intel_workarounds.c | 17 +++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-)
Signature · 1 line
2.40.0
PATCH 1/2 drm/i915/mtl: Add workarounds Wa_14017066071 and Wa_14017654203
From: Radhakrishna Sripada <[email protected]>
Both workarounds require the same implementation and apply to MTL P and M from stepping A0 to B0 (exclusive).
--- drivers/gpu/drm/i915/gt/intel_gt_regs.h | 1 + drivers/gpu/drm/i915/gt/intel_workarounds.c | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/gt/intel_gt_regs.h +1 -0
@@ -1144,6 +1144,7 @@#define ENABLE_SMALLPL REG_BIT(15)#define SC_DISABLE_POWER_OPTIMIZATION_EBB REG_BIT(9)#define GEN11_SAMPLER_ENABLE_HEADLESS_MSG REG_BIT(5) +#define MTL_DISABLE_SAMPLER_SC_OOO REG_BIT(3)#define GEN9_HALF_SLICE_CHICKEN7 MCR_REG(0xe194)#define DG2_DISABLE_ROUND_ENABLE_ALLOW_FOR_SSLA REG_BIT(15)
drivers/gpu/drm/i915/gt/intel_workarounds.c +10 -2
@@ -2388,11 +2388,10 @@ rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal)struct drm_i915_private *i915 = engine->i915;if (IS_MTL_GRAPHICS_STEP (i915,M ,STEP_A0 ,STEP_B0 ) || -IS_MTL_GRAPHICS_STEP (i915,P ,STEP_A0 ,STEP_B0 )) { +IS_MTL_GRAPHICS_STEP (i915,P ,STEP_A0 ,STEP_B0 ))/* Wa_22014600077 */ wa_mcr_masked_en (wal,GEN10_CACHE_MODE_SS ,ENABLE_EU_COUNT_FOR_TDL_FLUSH ); - } if (IS_MTL_GRAPHICS_STEP(i915, M, STEP_A0, STEP_B0) || IS_MTL_GRAPHICS_STEP(i915, P, STEP_A0, STEP_B0) ||
@@ -2971,6 +2970,15 @@ general_render_compute_wa_init(struct intel_engine_cs *engine, struct i915_wa_liadd_render_compute_tuning_settings (i915, wal); +if (IS_MTL_GRAPHICS_STEP (i915,M ,STEP_A0 ,STEP_B0 ) || +IS_MTL_GRAPHICS_STEP (i915,P ,STEP_A0 ,STEP_B0 )) +/* +* Wa_14017066071 +* Wa_14017654203 +*/ +wa_mcr_masked_en (wal,GEN10_SAMPLER_MODE , +MTL_DISABLE_SAMPLER_SC_OOO ); + if (IS_MTL_GRAPHICS_STEP(i915, M, STEP_A0, STEP_B0) || IS_MTL_GRAPHICS_STEP(i915, P, STEP_A0, STEP_B0) || IS_DG2_GRAPHICS_STEP(i915, G10, STEP_B0, STEP_FOREVER) ||
Signature · 1 line
2.40.0
Re: [Intel-gfx] [PATCH 1/2] drm/i915/mtl: Add workarounds Wa_14017066071 and Wa_14017654203
Quoted 29 lines · Gustavo Sousa
From: Radhakrishna Sripada <[email protected]>
Both workarounds require the same implementation and apply to MTL P and M from stepping A0 to B0 (exclusive).
Signed-off-by Radhakrishna Sripada <[email protected]>Signed-off-by Gustavo Sousa <[email protected]>--- drivers/gpu/drm/i915/gt/intel_gt_regs.h | 1 + drivers/gpu/drm/i915/gt/intel_workarounds.c | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/gt/intel_gt_regs.h +1
-0@@ -1144,6 +1144,7 @@#define ENABLE_SMALLPL REG_BIT(15)#define SC_DISABLE_POWER_OPTIMIZATION_EBB REG_BIT(9)#define GEN11_SAMPLER_ENABLE_HEADLESS_MSG REG_BIT(5) +#define MTL_DISABLE_SAMPLER_SC_OOO REG_BIT(3)#define GEN9_HALF_SLICE_CHICKEN7 MCR_REG(0xe194)#define DG2_DISABLE_ROUND_ENABLE_ALLOW_FOR_SSLA REG_BIT(15)drivers/gpu/drm/i915/gt/intel_workarounds.c +0
-0
drivers/gpu/drm/i915/gt/intel_workarounds.c rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal) · line 2395
Quoted 9 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +1
-2@@ -2388,11 +2388,10 @@ rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal)struct drm_i915_private *i915 = engine->i915;if (IS_MTL_GRAPHICS_STEP (i915,M ,STEP_A0 ,STEP_B0 ) || -IS_MTL_GRAPHICS_STEP (i915,P ,STEP_A0 ,STEP_B0 )) { +IS_MTL_GRAPHICS_STEP (i915,P ,STEP_A0 ,STEP_B0 ))/* Wa_22014600077 */ wa_mcr_masked_en (wal,GEN10_CACHE_MODE_SS ,ENABLE_EU_COUNT_FOR_TDL_FLUSH ); - }
The brace removal here doesn't seem to be related to this patch.
Aside from that, the actual workaround addition below is
Quoted 22 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +9
-0if (IS_MTL_GRAPHICS_STEP(i915, M, STEP_A0, STEP_B0) || IS_MTL_GRAPHICS_STEP(i915, P, STEP_A0, STEP_B0) ||@@ -2971,6 +2970,15 @@ general_render_compute_wa_init(struct intel_engine_cs *engine, struct i915_wa_liadd_render_compute_tuning_settings (i915, wal); +if (IS_MTL_GRAPHICS_STEP (i915,M ,STEP_A0 ,STEP_B0 ) || +IS_MTL_GRAPHICS_STEP (i915,P ,STEP_A0 ,STEP_B0 )) +/* +* Wa_14017066071 +* Wa_14017654203 +*/ +wa_mcr_masked_en (wal,GEN10_SAMPLER_MODE , +MTL_DISABLE_SAMPLER_SC_OOO ); + if (IS_MTL_GRAPHICS_STEP(i915, M, STEP_A0, STEP_B0) || IS_MTL_GRAPHICS_STEP(i915, P, STEP_A0, STEP_B0) || IS_DG2_GRAPHICS_STEP(i915, G10, STEP_B0, STEP_FOREVER) ||Signature · 1 line
2.40.0
Signature · 4 lines
Matt Roper Graphics Software Engineer Linux GPU Platform Enablement Intel Corporation
PATCH 2/2 drm/i915/mtl: Add Wa_22015279794
In reply to Gustavo SousaFrom: Radhakrishna Sripada <[email protected]>
Wa_22015279794 applies to MTL P from stepping A0 to B0 (exclusive).
--- drivers/gpu/drm/i915/gt/intel_gt_regs.h | 6 ++++++ drivers/gpu/drm/i915/gt/intel_workarounds.c | 5 +++++ 2 files changed, 11 insertions(+)
drivers/gpu/drm/i915/gt/intel_gt_regs.h +6 -0
@@ -1156,7 +1156,13 @@#define ENABLE_EU_COUNT_FOR_TDL_FLUSH REG_BIT(10)#define DISABLE_ECC REG_BIT(5)#define FLOAT_BLEND_OPTIMIZATION_ENABLE REG_BIT(4) +/* +* We have both ENABLE and DISABLE defines below using the same bit because the +* meaning depends on the target platform. There are no platform prefix for them +* because different steppings of DG2 pick one or the other semantics. +*/ #define ENABLE_PREFETCH_INTO_IC REG_BIT(3) +#define DISABLE_PREFETCH_INTO_IC REG_BIT(3)#define EU_PERF_CNTL0 PERF_REG(0xe458)#define EU_PERF_CNTL4 PERF_REG(0xe45c)
drivers/gpu/drm/i915/gt/intel_workarounds.c +5 -0
@@ -2979,6 +2979,11 @@ general_render_compute_wa_init(struct intel_engine_cs *engine, struct i915_wa_liwa_mcr_masked_en (wal,GEN10_SAMPLER_MODE ,MTL_DISABLE_SAMPLER_SC_OOO ); +if (IS_MTL_GRAPHICS_STEP (i915,P ,STEP_A0 ,STEP_B0 )) +/* Wa_22015279794 */ +wa_mcr_masked_en (wal,GEN10_CACHE_MODE_SS , +DISABLE_PREFETCH_INTO_IC ); + if (IS_MTL_GRAPHICS_STEP(i915, M, STEP_A0, STEP_B0) || IS_MTL_GRAPHICS_STEP(i915, P, STEP_A0, STEP_B0) || IS_DG2_GRAPHICS_STEP(i915, G10, STEP_B0, STEP_FOREVER) ||
Signature · 1 line
2.40.0
Re: [Intel-gfx] [PATCH 2/2] drm/i915/mtl: Add Wa_22015279794
Quoted 6 lines · Gustavo Sousa
From: Radhakrishna Sripada <[email protected]>
Wa_22015279794applies to MTL P from stepping A0 to B0 (exclusive).Signed-off-by Radhakrishna Sripada <[email protected]>Signed-off-by Gustavo Sousa <[email protected]>
Quoted 42 lines
--- drivers/gpu/drm/i915/gt/intel_gt_regs.h | 6 ++++++ drivers/gpu/drm/i915/gt/intel_workarounds.c | 5 +++++ 2 files changed, 11 insertions(+)drivers/gpu/drm/i915/gt/intel_gt_regs.h +6
-0@@ -1156,7 +1156,13 @@#define ENABLE_EU_COUNT_FOR_TDL_FLUSH REG_BIT(10)#define DISABLE_ECC REG_BIT(5)#define FLOAT_BLEND_OPTIMIZATION_ENABLE REG_BIT(4) +/* +* We have both ENABLE and DISABLE defines below using the same bit because the +* meaning depends on the target platform. There are no platform prefix for them +* because different steppings of DG2 pick one or the other semantics. +*/ #define ENABLE_PREFETCH_INTO_IC REG_BIT(3) +#define DISABLE_PREFETCH_INTO_IC REG_BIT(3)#define EU_PERF_CNTL0 PERF_REG(0xe458)#define EU_PERF_CNTL4 PERF_REG(0xe45c)drivers/gpu/drm/i915/gt/intel_workarounds.c +5
-0@@ -2979,6 +2979,11 @@ general_render_compute_wa_init(struct intel_engine_cs *engine, struct i915_wa_liwa_mcr_masked_en (wal,GEN10_SAMPLER_MODE ,MTL_DISABLE_SAMPLER_SC_OOO ); +if (IS_MTL_GRAPHICS_STEP (i915,P ,STEP_A0 ,STEP_B0 )) +/* Wa_22015279794 */ +wa_mcr_masked_en (wal,GEN10_CACHE_MODE_SS , +DISABLE_PREFETCH_INTO_IC ); + if (IS_MTL_GRAPHICS_STEP(i915, M, STEP_A0, STEP_B0) || IS_MTL_GRAPHICS_STEP(i915, P, STEP_A0, STEP_B0) || IS_DG2_GRAPHICS_STEP(i915, G10, STEP_B0, STEP_FOREVER) ||Signature · 1 line
2.40.0
Signature · 4 lines
Matt Roper Graphics Software Engineer Linux GPU Platform Enablement Intel Corporation