drm/xe/bmg: Add BMG mocs table
authorBalasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Mon, 8 Apr 2024 17:05:38 +0000 (22:35 +0530)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 9 Apr 2024 21:18:48 +0000 (14:18 -0700)
BMG uses the same MOCS table as LNL.

Bpsec: 71582
CC: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240408170545.3769566-5-balasubramani.vivekanandan@intel.com
drivers/gpu/drm/xe/xe_mocs.c

index d16fa64..1e92f8e 100644 (file)
@@ -375,6 +375,7 @@ static unsigned int get_mocs_settings(struct xe_device *xe,
 
        switch (xe->info.platform) {
        case XE_LUNARLAKE:
+       case XE_BATTLEMAGE:
                info->size = ARRAY_SIZE(xe2_mocs_table);
                info->table = xe2_mocs_table;
                info->n_entries = XE2_NUM_MOCS_ENTRIES;