drm/xe/lrc: Prepare WA BB setup for more users
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 4 Jun 2025 15:03:06 +0000 (08:03 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 11 Jun 2025 22:03:05 +0000 (15:03 -0700)
commit0ed4b3c21c5013842b7e661dd1c4aa5b75c9c5db
tree2a88b5ee2ea7a6be8d72b5d96e16b883b9e5d5b7
parentef48715b2d3df17c060e23b9aa636af3d95652f8
drm/xe/lrc: Prepare WA BB setup for more users

The post context restore (WA BB) is a mechanism in HW that may be used
for things other than the utilization setup. Create a new function
called setup_wa_bb() that wraps any function writing useful commands in
the buffer.

Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Link: https://lore.kernel.org/r/20250604-wa-bb-fix-v1-2-0dfc5dafcef0@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_lrc.c