Skip to content

Commit 0f94592

Browse files
mikuintjnikula
authored andcommitted
drm/i915: Fix gpu frequency change tracing
With gen < 9 we have had always 50Mhz units as our hw ratio. With gen >= 9 the hw ratio changed to 16.667Mhz (50/3). The result was that our gpu frequency tracing started to output values 3 times larger than expected due to hardcoded scaling value. Fix this by using Use intel_gpu_freq() when generating Mhz value from ratio for 'intel_gpu_freq_change' trace event. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92591 Cc: [email protected] # v4.3+ Reported-by: Eero Tamminen <[email protected]> Signed-off-by: Mika Kuoppala <[email protected]> Reviewed-by: Ville Syrjälä <[email protected]> Signed-off-by: Jani Nikula <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 76dc376 commit 0f94592

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/intel_pm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4449,7 +4449,7 @@ static void gen6_set_rps(struct drm_device *dev, u8 val)
44494449
POSTING_READ(GEN6_RPNSWREQ);
44504450

44514451
dev_priv->rps.cur_freq = val;
4452-
trace_intel_gpu_freq_change(val * 50);
4452+
trace_intel_gpu_freq_change(intel_gpu_freq(dev_priv, val));
44534453
}
44544454

44554455
static void valleyview_set_rps(struct drm_device *dev, u8 val)

0 commit comments

Comments
 (0)