]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe: Avoid unconditional VRAM reads in H2G path
authorMatthew Brost <matthew.brost@intel.com>
Wed, 18 Feb 2026 04:33:18 +0000 (20:33 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 26 Feb 2026 18:16:45 +0000 (10:16 -0800)
commit74bbd87dcc5c102147e24058e8db97a228d6ee03
treef67d88286decd9916da049a8a4ab7606286f66b8
parentaf3de6cf06f9497a60510b87bf77e8fb4124ba9f
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
drivers/gpu/drm/xe/xe_guc_ct.c