]> 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)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Thu, 12 Jun 2025 16:09:50 +0000 (18:09 +0200)
commit9c7632faad434c98f1f2cc06f3647a5a5d05ddbf
treea3caa0de2c8e91d4ea9a0d961155677db97d2de2
parentd6fb4f01736a1d18cc981eb04fa2907a7121fc27
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: 617d824c5323 ("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>
(cherry picked from commit ef48715b2d3df17c060e23b9aa636af3d95652f8)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
drivers/gpu/drm/xe/xe_lrc.c