summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorMukul Joshi <mukul.joshi@amd.com>2026-09-14 18:09:31 -0400
committerAlex Deucher <alexander.deucher@amd.com>2026-09-17 11:38:28 -0400
commitb2adbdf861e35a8e774f98b3c46dfa9e8dff9196 (patch)
tree1c14253fafe84054cdff42d7f45bfc4e143bd93b /tools/perf/scripts/python/bin/stackcollapse-record
parent5119c2114595b7aadf77649c2b909088a37a86ad (diff)
downloadlinux-b2adbdf861e35a8e774f98b3c46dfa9e8dff9196.tar.gz
linux-b2adbdf861e35a8e774f98b3c46dfa9e8dff9196.zip
drm/amdkfd: set CP_HQD_PQ_CONTROL.SCOPE to SYSTEM for GFX 12.1
On GFX 12.1, ring buffers may be mapped with a non-coherently cached memory type. In that case the queue fetch can observe stale packets, since the packet producers (CPU or other GPUs) do not keep the device-side cache coherent. Set CP_HQD_PQ_CONTROL.SCOPE=3 (SYSTEM) so the queue fetches use system scope and pick up the latest packets. Apply this to compute queue MQDs and to MES-managed queues. Without this, the queue can consume stale packets for long periods, causing severe slowdowns and, in the worst case, application hangs. Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com> Signed-off-by: Joseph Greathouse <joseph.greathouse@amd.com> Signed-off-by: Mukul Joshi <mukul.joshi@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions