]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/mcr: Remove unused xe_gt_mcr_steering_info_to_dss_id()
authorShuicheng Lin <shuicheng.lin@intel.com>
Wed, 22 Apr 2026 15:50:25 +0000 (15:50 +0000)
committerShuicheng Lin <shuicheng.lin@intel.com>
Wed, 29 Apr 2026 18:38:04 +0000 (11:38 -0700)
The function xe_gt_mcr_steering_info_to_dss_id() has had no callers
since commit fa597710be6e ("drm/xe/guc: Cache DSS info when creating
capture register list") which removed the only call site in
xe_guc_capture.c. Remove the dead function and its declaration.

No functional change.

Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://patch.msgid.link/20260422155025.3660484-1-shuicheng.lin@intel.com
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
drivers/gpu/drm/xe/xe_gt_mcr.c
drivers/gpu/drm/xe/xe_gt_mcr.h

index 89e105cee09b3f8e68a513485134b276b2e339a8..df281688c617c407fc9db7887e0f2500e02f606c 100644 (file)
@@ -428,19 +428,6 @@ void xe_gt_mcr_get_dss_steering(const struct xe_gt *gt, unsigned int dss, u16 *g
        *instance = dss % gt->steering_dss_per_grp;
 }
 
-/**
- * xe_gt_mcr_steering_info_to_dss_id - Get DSS ID from group/instance steering
- * @gt: GT structure
- * @group: steering group ID
- * @instance: steering instance ID
- *
- * Return: the converted DSS id.
- */
-u32 xe_gt_mcr_steering_info_to_dss_id(struct xe_gt *gt, u16 group, u16 instance)
-{
-       return group * dss_per_group(gt) + instance;
-}
-
 static void init_steering_dss(struct xe_gt *gt)
 {
        gt->steering_dss_per_grp = dss_per_group(gt);
index 283a1c9770e2dd88e252ff1a6347f1ea769f9ea3..2be9419b8acc5704779a792c74b31ec3f84b6470 100644 (file)
@@ -33,7 +33,6 @@ bool xe_gt_mcr_get_nonterminated_steering(struct xe_gt *gt,
 void xe_gt_mcr_steering_dump(struct xe_gt *gt, struct drm_printer *p);
 void xe_gt_mcr_get_dss_steering(const struct xe_gt *gt,
                                unsigned int dss, u16 *group, u16 *instance);
-u32 xe_gt_mcr_steering_info_to_dss_id(struct xe_gt *gt, u16 group, u16 instance);
 
 /*
  * Loop over each DSS and determine the group and instance IDs that