summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMatthew Brost <matthew.brost@intel.com>2026-02-17 20:33:18 -0800
committerMatthew Brost <matthew.brost@intel.com>2026-02-26 10:16:45 -0800
commit74bbd87dcc5c102147e24058e8db97a228d6ee03 (patch)
treef67d88286decd9916da049a8a4ab7606286f66b8 /tools/perf/scripts/python
parentaf3de6cf06f9497a60510b87bf77e8fb4124ba9f (diff)
drm/xe: Avoid unconditional VRAM reads in H2G path
desc_read() issues an VRAM read which serializes the CPU and drains posted writes on dGPU platforms. The H2G tracepoint evaluated its arguments unconditionally, so even with tracing disabled the submission path paid the full VRAM readf latency. Guard the tracepoint with trace_xe_guc_ctb_h2g_enabled(). Adso move the descriptor status verification under CONFIG_DRM_XE_DEBUG. This removes another unnecessary VRAM read in non-debug builfds. This results in ~10× faster H2G submission and significantly reduces lock contention across the driver. Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Stuart Summers <stuart.summers@intel.com> Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Link: https://patch.msgid.link/20260218043319.809548-3-matthew.brost@intel.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions