Commit 770576f1 authored by Balasubramani Vivekanandan's avatar Balasubramani Vivekanandan Committed by Rodrigo Vivi

drm/xe/lnl: Hook up MOCS table

LNL uses the Xe2 MOCS table introduced in an earlier patch.

Bspec: 71582
Cc: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: default avatarBalasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 943c01b7
...@@ -395,6 +395,14 @@ static unsigned int get_mocs_settings(struct xe_device *xe, ...@@ -395,6 +395,14 @@ static unsigned int get_mocs_settings(struct xe_device *xe,
memset(info, 0, sizeof(struct xe_mocs_info)); memset(info, 0, sizeof(struct xe_mocs_info));
switch (xe->info.platform) { switch (xe->info.platform) {
case XE_LUNARLAKE:
info->size = ARRAY_SIZE(xe2_mocs_table);
info->table = xe2_mocs_table;
info->n_entries = XE2_NUM_MOCS_ENTRIES;
info->uc_index = 3;
info->wb_index = 1;
info->unused_entries_index = 1;
break;
case XE_PVC: case XE_PVC:
info->size = ARRAY_SIZE(pvc_mocs_desc); info->size = ARRAY_SIZE(pvc_mocs_desc);
info->table = pvc_mocs_desc; info->table = pvc_mocs_desc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment