drm/xe: Move some per-engine register definitions to the engine header
authorMatt Roper <matthew.d.roper@intel.com>
Thu, 14 Dec 2023 18:47:02 +0000 (10:47 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:46:16 +0000 (11:46 -0500)
commit5ea7fe65fb1cf95d9b48fcc3c7c806ce417357c2
treeb5d0ff32680e0d5deddf6c061c6424347c90d950
parentbc17ec0b201ec7b8576576aa0785787671b4afe7
drm/xe: Move some per-engine register definitions to the engine header

Although we only work with the RCS instances today, the
FF_SLICE_CS_CHICKEN1[1,2] CS_DEBUG_MODE1, CS_CHICKEN1, and
FF_THREAD_MODE registers all have instances on both the RCS and CCS
engines.  Convert these to parameterized macros and move them to the
engine register header.

Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20231214184659.2249559-12-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/regs/xe_engine_regs.h
drivers/gpu/drm/xe/regs/xe_gt_regs.h
drivers/gpu/drm/xe/regs/xe_regs.h
drivers/gpu/drm/xe/xe_wa.c