[Intel-xe] [PATCH 2/2] drm/xe/xe2: Report number of Xe2 EUs
Lucas De Marchi
lucas.demarchi at intel.com
Wed Sep 20 21:21:03 UTC 2023
With Xe2, one bit in the fuse enables one Xe2 EU. Note that although
Bspec 62564 still refers to 1 bit == a pair of EUs, this is about the
legacy number according to Bspec 70820.
Bspec: 70820, 70821, 62564
Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
---
drivers/gpu/drm/xe/xe_gt_topology.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_gt_topology.c b/drivers/gpu/drm/xe/xe_gt_topology.c
index 011ad7f2325c..878f3ed7bc26 100644
--- a/drivers/gpu/drm/xe/xe_gt_topology.c
+++ b/drivers/gpu/drm/xe/xe_gt_topology.c
@@ -49,8 +49,8 @@ load_eu_mask(struct xe_gt *gt, xe_eu_mask_t mask)
if (GRAPHICS_VERx100(xe) < 1250)
reg_val = ~reg_val & XELP_EU_MASK;
- /* On PVC, one bit = one EU */
- if (GRAPHICS_VERx100(xe) == 1260) {
+ if (GRAPHICS_VERx100(xe) >= 2000 || GRAPHICS_VERx100(xe) == 1260) {
+ /* One bit == one EU */
val = reg_val;
} else {
/* All other platforms, one bit = 2 EU */
--
2.40.1
More information about the Intel-xe
mailing list