/* * Pre-Xe_HP platforms inverted the bit meaning (disable instead * of enable).
*/ if (GRAPHICS_VERx100(xe) < 1250)
reg_val = ~reg_val & XELP_EU_MASK;
if (GRAPHICS_VERx100(xe) == 1260 || GRAPHICS_VER(xe) >= 20) { /* SIMD16 EUs, one bit == one EU */
*eu_type = XE_GT_EU_TYPE_SIMD16;
val = reg_val;
} else { /* SIMD8 EUs, one bit == 2 EU */
*eu_type = XE_GT_EU_TYPE_SIMD8; for (i = 0; i < fls(reg_val); i++) if (reg_val & BIT(i))
val |= 0x3 << 2 * i;
}
/* * PTL platforms with media version 30.00 do not provide proper values * for the media GT's L3 bank registers. Skip the readout since we * don't have any way to obtain real values. * * This may get re-described as an official workaround in the future, * but there's no tracking number assigned yet so we use a custom * OOB workaround descriptor.
*/ if (XE_WA(gt, no_media_l3)) return;
/* * Register counts returned shouldn't exceed the number of registers * passed as parameters below.
*/
xe_gt_assert(gt, num_geometry_regs <= ARRAY_SIZE(geometry_regs));
xe_gt_assert(gt, num_compute_regs <= ARRAY_SIZE(compute_regs));
drm_printf(p, "L3 bank mask: %*pb\n", XE_MAX_L3_BANK_MASK_BITS,
gt->fuse_topo.l3_bank_mask);
}
/* * Used to obtain the index of the first DSS. Can start searching from the * beginning of a specific dss group (e.g., gslice, cslice, etc.) if * groupsize and groupnum are non-zero.
*/ unsignedint
xe_dss_mask_group_ffs(const xe_dss_mask_t mask, int groupsize, int groupnum)
{ return find_next_bit(mask, XE_MAX_DSS_FUSE_BITS, groupnum * groupsize);
}
/** * xe_gt_topology_has_dss_in_quadrant - check fusing of DSS in GT quadrant * @gt: GT to check * @quad: Which quadrant of the DSS space to check * * Since Xe_HP platforms can have up to four CCS engines, those engines * are each logically associated with a quarter of the possible DSS. If there * are no DSS present in one of the four quadrants of the DSS space, the * corresponding CCS engine is also not available for use. * * Returns false if all DSS in a quadrant of the GT are fused off, else true.
*/ bool xe_gt_topology_has_dss_in_quadrant(struct xe_gt *gt, int quad)
{ struct xe_device *xe = gt_to_xe(gt);
xe_dss_mask_t all_dss; int g_dss_regs, c_dss_regs, dss_per_quad, quad_first;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.