diff options
author | José Roberto de Souza <jose.souza@intel.com> | 2023-04-14 15:08:33 -0700 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-19 18:33:13 -0500 |
commit | e3ec5e75911b04b5e9ce67907024d7c5d9a6cb99 (patch) | |
tree | d61c8e49a09b31874c092d25ca76456ec83673cc /drivers/gpu/drm/xe/xe_mocs.h | |
parent | 9bc252522dbb0e6c34e9e0e26a599fa28555d907 (diff) | |
download | lwn-e3ec5e75911b04b5e9ce67907024d7c5d9a6cb99.tar.gz lwn-e3ec5e75911b04b5e9ce67907024d7c5d9a6cb99.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_mocs.h')
-rw-r--r-- | drivers/gpu/drm/xe/xe_mocs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_mocs.h b/drivers/gpu/drm/xe/xe_mocs.h index 63500a1d6660..25f7b35a76da 100644 --- a/drivers/gpu/drm/xe/xe_mocs.h +++ b/drivers/gpu/drm/xe/xe_mocs.h @@ -11,6 +11,7 @@ struct xe_engine; struct xe_gt; +void xe_mocs_init_early(struct xe_gt *gt); void xe_mocs_init(struct xe_gt *gt); /** |