]> git.itanic.dy.fi Git - linux-stable/commit
drm/xe: Set default MOCS value for copy cs instructions
authorJosé Roberto de Souza <jose.souza@intel.com>
Sat, 15 Apr 2023 03:50:33 +0000 (20:50 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:33:13 +0000 (18:33 -0500)
commitbb95a4f9f5c2e9b0a43590958ba1430519592909
tree97727746c4533c88ae22fbb9620a878b5fbe8178
parente3ec5e75911b04b5e9ce67907024d7c5d9a6cb99
drm/xe: Set default MOCS value for copy cs instructions

copy cs instructions that dont have a explict MOCS field will use this
default MOCS value.

v2:
- move to xe_hw_engine.c
- remove BLIT_CCTL auxiliary macros
- removed MASKED_REG

v3:
- rebased

v4:
- process workaround in hwe->reg_lrc

v5:
- add a new function and call it from xe_gt_record_default_lrcs()
because hwe->reg_lrc is initialized later

BSpec: 45807
Cc: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-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/xe_gt.c
drivers/gpu/drm/xe/xe_hw_engine.c
drivers/gpu/drm/xe/xe_hw_engine.h