Skip to content

Commit 6f22587

Browse files
vsbelgaumjohnharr-intel
authored andcommitted
drm/i915/guc/slpc: Disable rps_boost debugfs
rps_boost debugfs shows host turbo related info. This is not valid when SLPC is enabled. guc_slpc_info already shows the number of boosts. Add num_waiters there as well and disable rps_boost when SLPC is enabled. v2: Replace Bug with Link to resolve checkpatch warning Link: https://gitlab.freedesktop.org/drm/intel/-/issues/7632 Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com> Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230516154905.1048006-1-vinay.belgaumkar@intel.com
1 parent f6eeea8 commit 6f22587

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,10 @@ static bool rps_eval(void *data)
539539
{
540540
struct intel_gt *gt = data;
541541

542-
return HAS_RPS(gt->i915);
542+
if (intel_guc_slpc_is_used(&gt->uc.guc))
543+
return false;
544+
else
545+
return HAS_RPS(gt->i915);
543546
}
544547

545548
DEFINE_INTEL_GT_DEBUGFS_ATTRIBUTE(rps_boost);

drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,8 @@ int intel_guc_slpc_print_info(struct intel_guc_slpc *slpc, struct drm_printer *p
837837
slpc_decode_min_freq(slpc));
838838
drm_printf(p, "\twaitboosts: %u\n",
839839
slpc->num_boosts);
840+
drm_printf(p, "\tBoosts outstanding: %u\n",
841+
atomic_read(&slpc->num_waiters));
840842
}
841843
}
842844

0 commit comments

Comments
 (0)