From ebbc358db556f8ecf9061a35248daef1a9a674dd Mon Sep 17 00:00:00 2001 From: Sagar Ghuge Date: Thu, 7 Aug 2025 18:18:47 -0700 Subject: [PATCH] blorp: Emit state cache invalidation after every compute dispatch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implement HSD 16028171704/14025112257: LSC state cache livelock:- Once state cache entries are full, subsequent walker dispatches with two threads per thread group maybe gets stuck infinitely because of state cache live lock. One thread continuously stuck in loop doing UGM fence + evict and UGM read is waiting on UGM read to have certain value. while other thread supposed to update the value that first thread is waiting for. But since entries are full in state cache, there is second thread never make progress. Closes: #12352 Signed-off-by: Sagar Ghuge Reviewed-by: Tapani Pälli Part-of: --- src/intel/blorp/blorp_genX_exec_brw.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/intel/blorp/blorp_genX_exec_brw.h b/src/intel/blorp/blorp_genX_exec_brw.h index 2c054040ead..9c930706582 100644 --- a/src/intel/blorp/blorp_genX_exec_brw.h +++ b/src/intel/blorp/blorp_genX_exec_brw.h @@ -1818,6 +1818,15 @@ blorp_exec_compute(struct blorp_batch *batch, const struct blorp_params *params) cw.body = body; } + /* + * TDOD: Add INTEL_NEEDS_WA_14025112257 check once HSD is propogated for all + * other impacted platforms. + */ + if (devinfo->ver >= 20) { + blorp_emit(batch, GENX(PIPE_CONTROL), pc) { + pc.StateCacheInvalidationEnable = true; + } + } #else /* The MEDIA_VFE_STATE documentation for Gfx8+ says: