blorp: Emit state cache invalidation after every compute dispatch

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 <sagar.ghuge@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37128>
This commit is contained in:
Sagar Ghuge
2025-08-07 18:18:47 -07:00
committed by Marge Bot
parent 3e0ad0176b
commit ebbc358db5
+9
View File
@@ -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: