Commit 220d957b authored by Lucas De Marchi's avatar Lucas De Marchi Committed by Rodrigo Vivi
Browse files

drm/xe: Remove unused functions



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: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 3dbec470
Loading
Loading
Loading
Loading
+0 −25
Original line number Diff line number Diff line
@@ -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)
{