Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-xe] [CI 1/2] drm/xe/pat: trim the xelp PAT table
@ 2023-10-06  8:46 Matthew Auld
  2023-10-06  8:46 ` [Intel-xe] [CI 2/2] drm/xe: directly use pat_index for pte_encode Matthew Auld
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Matthew Auld @ 2023-10-06  8:46 UTC (permalink / raw)
  To: intel-xe; +Cc: Lucas De Marchi, Matt Roper

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 <matthew.d.roper@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Pallavi Mishra <pallavi.mishra@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
---
 drivers/gpu/drm/xe/xe_pat.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_pat.c b/drivers/gpu/drm/xe/xe_pat.c
index 869aee64641f..36b79d675e54 100644
--- a/drivers/gpu/drm/xe/xe_pat.c
+++ b/drivers/gpu/drm/xe/xe_pat.c
@@ -42,10 +42,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[] = {
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-10-06 11:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-06  8:46 [Intel-xe] [CI 1/2] drm/xe/pat: trim the xelp PAT table Matthew Auld
2023-10-06  8:46 ` [Intel-xe] [CI 2/2] drm/xe: directly use pat_index for pte_encode Matthew Auld
2023-10-06 10:48 ` [Intel-xe] ✓ CI.Patch_applied: success for series starting with [CI,1/2] drm/xe/pat: trim the xelp PAT table Patchwork
2023-10-06 10:48 ` [Intel-xe] ✓ CI.checkpatch: " Patchwork
2023-10-06 10:49 ` [Intel-xe] ✓ CI.KUnit: " Patchwork
2023-10-06 10:57 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-10-06 10:57 ` [Intel-xe] ✓ CI.Hooks: " Patchwork
2023-10-06 10:58 ` [Intel-xe] ✓ CI.checksparse: " Patchwork
2023-10-06 11:35 ` [Intel-xe] ✓ CI.BAT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox