]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/lrc: Use a temporary buffer for WA BB
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 4 Jun 2025 15:03:05 +0000 (08:03 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 11 Jun 2025 22:03:05 +0000 (15:03 -0700)
commitef48715b2d3df17c060e23b9aa636af3d95652f8
treeda0225a20187350243e2258d8eb57145730b970e
parent26ff87d2e776e10eb720138c5b5d334bceffc99f
drm/xe/lrc: Use a temporary buffer for WA BB

In case the BO is in iomem, we can't simply take the vaddr and write to
it. Instead, prepare a separate buffer that is later copied into io
memory. Right now it's just a few words that could be using
xe_map_write32(), but the intention is to grow the WA BB for other
uses.

Fixes: 82b98cadb01f ("drm/xe: Add WA BB to capture active context utilization")
Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Link: https://lore.kernel.org/r/20250604-wa-bb-fix-v1-1-0dfc5dafcef0@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_lrc.c