aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Auld <[email protected]>2023-10-06 09:46:15 +0100
committerRodrigo Vivi <[email protected]>2023-12-21 11:42:58 -0500
commit406be3cc186eec67367b87a2af91cb598ff8e239 (patch)
tree817d8f33f33cf22c58ae8b18a87c88d387e4876a
parente3fee3aa7a8911b60776127cb2e1c25ef8584f42 (diff)
drm/xe/pat: trim the xelp PAT table
We don't seem to use the 4-7 pat indexes, even though they are defined by the HW. In a future patch userspace will be able to directly set the pat_index as part of vm_bind and we don't want to allow setting 4-7. Simplest is to just ignore them here. Suggested-by: Matt Roper <[email protected]> Signed-off-by: Matthew Auld <[email protected]> Cc: Pallavi Mishra <[email protected]> Cc: Lucas De Marchi <[email protected]> Reviewed-by: Matt Roper <[email protected]> Reviewed-by: Lucas De Marchi <[email protected]> Reviewed-by: José Roberto de Souza <[email protected]> Signed-off-by: Rodrigo Vivi <[email protected]>
-rw-r--r--drivers/gpu/drm/xe/xe_pat.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/xe/xe_pat.c b/drivers/gpu/drm/xe/xe_pat.c
index 31565ccbb0ec..7c1078707aa0 100644
--- a/drivers/gpu/drm/xe/xe_pat.c
+++ b/drivers/gpu/drm/xe/xe_pat.c
@@ -56,10 +56,6 @@ static const u32 xelp_pat_table[] = {
[1] = XELP_PAT_WC,
[2] = XELP_PAT_WT,
[3] = XELP_PAT_UC,
- [4] = XELP_PAT_WB,
- [5] = XELP_PAT_WB,
- [6] = XELP_PAT_WB,
- [7] = XELP_PAT_WB,
};
static const u32 xehpc_pat_table[] = {