For execlists backend, current implementation of Wa_22011802037 is to stop the CS before doing a reset of the engine. This WA was further extended to wait for any pending MI FORCE WAKEUPs before issuing a reset. Add the extended steps in the execlist path of reset.
Subsystems (2)
PATCH 1/1 For execlists backend, current implementation of Wa_22011802037 is to stop the CS before doing a reset of the engine. This WA was further extended to wait for any pending MI FORCE WAKEUPs before issuing a reset. Add the extended steps in the execlist path of reset.
From: Umesh Nerlige Ramappa <[email protected]>
In addition, extend the WA to gen11.
v2: (Tvrtko)
- Clarify comments, commit message, fix typos
- Use IS_GRAPHICS_VER for gen 11/12 checks
v3: (Daneile)
- Drop changes to intel_ring_submission since WA does not apply to it
- Log an error if MSG IDLE is not defined for an engine
--- drivers/gpu/drm/i915/gt/intel_engine.h | 2 + drivers/gpu/drm/i915/gt/intel_engine_cs.c | 88 ++++++++++++++++++- .../drm/i915/gt/intel_execlists_submission.c | 7 ++ drivers/gpu/drm/i915/gt/uc/intel_guc.c | 4 +- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 81 ++--------------- 5 files changed, 103 insertions(+), 79 deletions(-)
drivers/gpu/drm/i915/gt/intel_engine.h +2 -0
@@ -201,6 +201,8 @@ int intel_ring_submission_setup(struct intel_engine_cs *engine);int intel_engine_stop_cs (struct intel_engine_cs *engine);void intel_engine_cancel_stop_cs (struct intel_engine_cs *engine); +void intel_engine_wait_for_pending_mi_fw (struct intel_engine_cs *engine); +void intel_engine_set_hwsp_writemask (struct intel_engine_cs *engine,u32 mask);u64 intel_engine_get_active_head (const struct intel_engine_cs *engine);
drivers/gpu/drm/i915/gt/intel_engine_cs.c +86 -2
108 lines not on this page · raw message
drivers/gpu/drm/i915/gt/intel_execlists_submission.c +7 -0
@@ -2968,6 +2968,13 @@ static void execlists_reset_prepare(struct intel_engine_cs *engine)ring_set_paused (engine,1 );intel_engine_stop_cs (engine); +/* +* Wa_22011802037:gen11/gen12: In addition to stopping the cs, we need +* to wait for any pending mi force wakeups +*/ +if (IS_GRAPHICS_VER (engine->i915,11 ,12 )) +intel_engine_wait_for_pending_mi_fw (engine); + engine->execlists.reset_ccid =active_ccid (engine); }
drivers/gpu/drm/i915/gt/uc/intel_guc.c +2 -2
@@ -310,8 +310,8 @@ static u32 guc_ctl_wa_flags(struct intel_guc *guc)if (IS_DG2 (gt->i915)) flags |=GUC_WA_DUAL_QUEUE ; -/* Wa_22011802037: graphics version 12 */ -if (GRAPHICS_VER (gt->i915) ==12 ) +/* Wa_22011802037: graphics version 11/12 */ +if (IS_GRAPHICS_VER (gt->i915,11 ,12 )) flags |=GUC_WA_PRE_PARSER ;/* Wa_16011777198:dg2 */
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +6 -75
93 lines not on this page · raw message
Signature · 1 line
2.35.3
Commit title messed up, please ignore this one.
Umesh
Quoted 16 lines · Umesh
From: Umesh Nerlige Ramappa <[email protected]>
In addition, extend the WA to gen11.
v2: (Tvrtko)
- Clarify comments, commit message, fix typos
- UseIS_GRAPHICS_VERfor gen 11/12 checksv3: (Daneile)
- Drop changes tointel_ring_submissionsince WA does not apply to it
- Log an error if MSG IDLE is not defined for an engineSigned-off-by Umesh Nerlige Ramappa <[email protected]>Fixes f6aa0d713c88 ("drm/i915: Add Wa_22011802037 force cs halt")Acked-by Tvrtko Ursulin <[email protected]>Reviewed-by Daniele Ceraolo Spurio <[email protected]>