[Intel-xe] [PATCH 4/6] drm/xe: Remove unused functions
Lucas De Marchi
lucas.demarchi at intel.com
Tue Feb 21 23:33:46 UTC 2023
xe_gt_topology_dss_group_mask and xe_gt_topology_count_dss are probably
leftover from initial implementation - they are not called from
anywhere. Remove those functions.
Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
---
drivers/gpu/drm/xe/xe_gt_topology.c | 25 -------------------------
1 file changed, 25 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_gt_topology.c b/drivers/gpu/drm/xe/xe_gt_topology.c
index 8e02e362ba27..3dd7cbbff071 100644
--- a/drivers/gpu/drm/xe/xe_gt_topology.c
+++ b/drivers/gpu/drm/xe/xe_gt_topology.c
@@ -94,31 +94,6 @@ xe_gt_topology_init(struct xe_gt *gt)
xe_gt_topology_dump(gt, &p);
}
-unsigned int
-xe_gt_topology_count_dss(xe_dss_mask_t mask)
-{
- return bitmap_weight(mask, XE_MAX_DSS_FUSE_BITS);
-}
-
-u64
-xe_gt_topology_dss_group_mask(xe_dss_mask_t mask, int grpsize)
-{
- xe_dss_mask_t per_dss_mask = {};
- u64 grpmask = 0;
-
- WARN_ON(DIV_ROUND_UP(XE_MAX_DSS_FUSE_BITS, grpsize) > BITS_PER_TYPE(grpmask));
-
- bitmap_fill(per_dss_mask, grpsize);
- for (int i = 0; !bitmap_empty(mask, XE_MAX_DSS_FUSE_BITS); i++) {
- if (bitmap_intersects(mask, per_dss_mask, grpsize))
- grpmask |= BIT(i);
-
- bitmap_shift_right(mask, mask, grpsize, XE_MAX_DSS_FUSE_BITS);
- }
-
- return grpmask;
-}
-
void
xe_gt_topology_dump(struct xe_gt *gt, struct drm_printer *p)
{
--
2.39.0
More information about the Intel-xe
mailing list