diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2023-02-21 15:33:46 -0800 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-19 18:29:06 -0500 |
commit | 220d957b5954ee4631fe781adfbfae8592b34811 (patch) | |
tree | 49416b7b7a1c072d885f016154db9befc1dea66f /drivers/gpu/drm/xe/xe_gt_topology.c | |
parent | 3dbec4703ee7b67a8dba47e5f1e668b7b17aeb1b (diff) | |
download | lwn-220d957b5954ee4631fe781adfbfae8592b34811.tar.gz lwn-220d957b5954ee4631fe781adfbfae8592b34811.zip |
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: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_gt_topology.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_gt_topology.c | 25 |
1 files changed, 0 insertions, 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) { |