Unverified Commit e0b0c6d2 authored by Rodrigo Vivi's avatar Rodrigo Vivi
Browse files

drm/i915/guc/slpc: Print more SLPC debug status information



Let's peek on the Balancer and DCC status, now that we
are using the default strategies.

v2: fix identation
v3: fix typo (Vinay)

Reviewed-by: default avatarVinay Belgaumkar <vinay.belgaumkar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250110144640.1032250-2-rodrigo.vivi@intel.com


Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 4f7fad42
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -799,6 +799,23 @@ int intel_guc_slpc_print_info(struct intel_guc_slpc *slpc, struct drm_printer *p
			drm_printf(p, "\tSLPC state: %s\n", slpc_get_state_string(slpc));
			drm_printf(p, "\tGTPERF task active: %s\n",
				   str_yes_no(slpc_tasks->status & SLPC_GTPERF_TASK_ENABLED));
			drm_printf(p, "\tDCC enabled: %s\n",
				   str_yes_no(slpc_tasks->status &
					      SLPC_DCC_TASK_ENABLED));
			drm_printf(p, "\tDCC in: %s\n",
				   str_yes_no(slpc_tasks->status & SLPC_IN_DCC));
			drm_printf(p, "\tBalancer enabled: %s\n",
				   str_yes_no(slpc_tasks->status &
					      SLPC_BALANCER_ENABLED));
			drm_printf(p, "\tIBC enabled: %s\n",
				   str_yes_no(slpc_tasks->status &
					      SLPC_IBC_TASK_ENABLED));
			drm_printf(p, "\tBalancer IA LMT enabled: %s\n",
				   str_yes_no(slpc_tasks->status &
					      SLPC_BALANCER_IA_LMT_ENABLED));
			drm_printf(p, "\tBalancer IA LMT active: %s\n",
				   str_yes_no(slpc_tasks->status &
					      SLPC_BALANCER_IA_LMT_ACTIVE));
			drm_printf(p, "\tMax freq: %u MHz\n",
				   slpc_decode_max_freq(slpc));
			drm_printf(p, "\tMin freq: %u MHz\n",