Skip to content

Commit a8c94b3

Browse files
vsbelgaumdceraolo
authored andcommitted
drm/i915/guc: Dump perf_limit_reasons for debug
GuC load takes longer sometimes due to GT frequency not ramping up. Add perf_limit_reasons to the existing warn print to see if frequency is being throttled. v2: Review comments (Ashutosh) Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230627191336.319381-1-vinay.belgaumkar@intel.com
1 parent ed6dd32 commit a8c94b3

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,11 @@ static int guc_wait_ucode(struct intel_guc *guc)
251251
if (ret == 0)
252252
ret = -ENXIO;
253253
} else if (delta_ms > 200) {
254-
guc_warn(guc, "excessive init time: %lldms! [freq = %dMHz, before = %dMHz, status = 0x%08X, count = %d, ret = %d]\n",
255-
delta_ms, intel_rps_read_actual_frequency(&uncore->gt->rps),
256-
before_freq, status, count, ret);
254+
guc_warn(guc, "excessive init time: %lldms! [status = 0x%08X, count = %d, ret = %d]\n",
255+
delta_ms, status, count, ret);
256+
guc_warn(guc, "excessive init time: [freq = %dMHz, before = %dMHz, perf_limit_reasons = 0x%08X]\n",
257+
intel_rps_read_actual_frequency(&uncore->gt->rps), before_freq,
258+
intel_uncore_read(uncore, intel_gt_perf_limit_reasons_reg(gt)));
257259
} else {
258260
guc_dbg(guc, "init took %lldms, freq = %dMHz, before = %dMHz, status = 0x%08X, count = %d, ret = %d\n",
259261
delta_ms, intel_rps_read_actual_frequency(&uncore->gt->rps),

0 commit comments

Comments
 (0)