[Intel-xe] [PATCH] drm/xe/pt: limit PS64 where supported
Matthew Auld
matthew.auld at intel.com
Tue Jun 6 11:58:39 UTC 2023
In theory shouldn't matter since BIT(8) appears to be ignored by older
HW, however seems odd to search for a suitable 64K chunk and enable PS64
when it is not supported by HW.
Signed-off-by: Matthew Auld <matthew.auld at intel.com>
Cc: Thomas Hellström <thomas.hellstrom at linux.intel.com>
---
drivers/gpu/drm/xe/xe_pt.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_pt.c b/drivers/gpu/drm/xe/xe_pt.c
index bef265715000..86fafdb8d2d5 100644
--- a/drivers/gpu/drm/xe/xe_pt.c
+++ b/drivers/gpu/drm/xe/xe_pt.c
@@ -603,6 +603,9 @@ xe_pt_scan_64K(u64 addr, u64 next, struct xe_pt_stage_bind_walk *xe_walk)
static bool
xe_pt_is_pte_ps64K(u64 addr, u64 next, struct xe_pt_stage_bind_walk *xe_walk)
{
+ if (GRAPHICS_VERx100(tile_to_xe(xe_walk->tile)) < 1250)
+ return false;
+
/* Address is within an already found 64k region */
if (xe_walk->found_64K && addr - xe_walk->addr_64K < SZ_64K)
return true;
--
2.40.1
More information about the Intel-xe
mailing list