diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2023-10-04 08:03:17 -0700 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 11:42:09 -0500 |
commit | 5708a1080a2e455ca9f35e372f107d0c030358de (patch) | |
tree | c83c5f72ee9d6779bff671266cdb1ec4fdb6cee2 /drivers/gpu/drm/xe/xe_mocs.c | |
parent | a8e2e0d7fab79b83cdc3bb2dd192c94564fa4298 (diff) | |
download | lwn-5708a1080a2e455ca9f35e372f107d0c030358de.tar.gz lwn-5708a1080a2e455ca9f35e372f107d0c030358de.zip |
drm/xe/xe2: Add missing mocs entry
Add index 4 so WB on both L3 and L4 can be used by userspace.
Bspec: 71582
Link: https://lore.kernel.org/all/7oqovb356dx2hm5muop3xjqr4kv7m5fzjisch3vmsmxm33ygtv@eib4jielia35/
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20231004150317.3473731-1-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_mocs.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_mocs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_mocs.c b/drivers/gpu/drm/xe/xe_mocs.c index ada3114be4fa..19a8146ded9a 100644 --- a/drivers/gpu/drm/xe/xe_mocs.c +++ b/drivers/gpu/drm/xe/xe_mocs.c @@ -385,6 +385,8 @@ static const struct xe_mocs_entry xe2_mocs_table[] = { MOCS_ENTRY(2, IG_PAT | XE2_L3_3_UC | L4_0_WB, 0), /* Uncached L3 + L4 */ MOCS_ENTRY(3, IG_PAT | XE2_L3_3_UC | L4_3_UC, 0), + /* Cached L3 + L4 */ + MOCS_ENTRY(4, IG_PAT | XE2_L3_0_WB | L4_0_WB, 0), }; static unsigned int get_mocs_settings(struct xe_device *xe, |