]> git.itanic.dy.fi Git - linux-stable/commit
drm/xe: Set default MOCS value for cs instructions
authorJosé Roberto de Souza <jose.souza@intel.com>
Fri, 14 Apr 2023 22:08:33 +0000 (15:08 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:33:13 +0000 (18:33 -0500)
commite3ec5e75911b04b5e9ce67907024d7c5d9a6cb99
treed61c8e49a09b31874c092d25ca76456ec83673cc
parent9bc252522dbb0e6c34e9e0e26a599fa28555d907
drm/xe: Set default MOCS value for cs instructions

CS instructions that dont have a explicit MOCS field will use this
default MOCS value.

To do this, it was necessary to initialize part of the mocs earlier
and add new function that loads another array of rtp entries set
during run-time.

This is still missing to handle of mocs read for platforms with
HAS_L3_CCS_READ(aka PVC).

v2:
- move to xe_hw_engine.c
- remove CMD_CCTL auxiliary macros

v3:
- rebased

Bspec: 45826
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_mocs.c
drivers/gpu/drm/xe/xe_mocs.h