SWDEV-505833 - Provide functionality to avoid L2 flush for CPX mode for dispatch packets

- Added DEBUG_CLR_SKIP_RELEASE_SCOPE flag to force release scope to
   SCOPE_NONE in AQL packet header

Change-Id: Ife02cddb9d5cd4749103ce585d3d5fe9024c6868
Este cometimento está contido em:
Pengda Xie criou e Pengda Xie cometeu 2025-01-03 17:28:21 -05:00
1 ascendente 7e152bb0f3
cometimento 8155943c5f
2 ficheiros modificados
+8

Não existem ficheiros que correspondam à sua pesquisa

+6
Ver ficheiro
@@ -906,6 +906,12 @@ bool VirtualGPU::dispatchGenericAqlPacket(
addSystemScope_ = false;
}
if (DEBUG_CLR_SKIP_RELEASE_SCOPE) {
header &= ~(HSA_FENCE_SCOPE_AGENT << HSA_PACKET_HEADER_SCRELEASE_FENCE_SCOPE |
HSA_FENCE_SCOPE_SYSTEM << HSA_PACKET_HEADER_SCRELEASE_FENCE_SCOPE);
header |= (HSA_FENCE_SCOPE_NONE << HSA_PACKET_HEADER_SCRELEASE_FENCE_SCOPE);
}
auto expected_fence_state = extractAqlBits(header, HSA_PACKET_HEADER_SCRELEASE_FENCE_SCOPE,
HSA_PACKET_HEADER_WIDTH_SCRELEASE_FENCE_SCOPE);