Message ID | 1461222221-23849-1-git-send-email-akash.goel@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Thu, Apr 21, 2016 at 12:33:40PM +0530, akash.goel@intel.com wrote: > From: Akash Goel <akash.goel@intel.com> > > There are certain registers, which captures the time elapsed in the > in current Up/Down EI, for how long GT has been Idle/Busy/Avg in the > current Up/Down EI and also in the previous Up/Down EI. > These register values are reported by the i915_frequency_info debugfs > interface. The Driver prints the 'us' suffix after the values, albeit > they are actually in raw form & not in microsecond units. > This patch removes the 'us' suffix so that its clear to User that values > are indeed in raw form. Or whilst you are here presenting them as both the raw value and as microseconds? -Chris
On 4/21/2016 12:24 PM, Chris Wilson wrote: > On Thu, Apr 21, 2016 at 12:33:40PM +0530, akash.goel@intel.com wrote: >> From: Akash Goel <akash.goel@intel.com> >> >> There are certain registers, which captures the time elapsed in the >> in current Up/Down EI, for how long GT has been Idle/Busy/Avg in the >> current Up/Down EI and also in the previous Up/Down EI. >> These register values are reported by the i915_frequency_info debugfs >> interface. The Driver prints the 'us' suffix after the values, albeit >> they are actually in raw form & not in microsecond units. >> This patch removes the 'us' suffix so that its clear to User that values >> are indeed in raw form. > > Or whilst you are here presenting them as both the raw value and as > microseconds? Ok, so need to present them in microseconds unit also (after platform specific conversion) apart from raw form. Best Regards Akash > -Chris >
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 931dc60..10d095a 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -1291,20 +1291,20 @@ static int i915_frequency_info(struct seq_file *m, void *unused) seq_printf(m, "RPDECLIMIT: 0x%08x\n", rpdeclimit); seq_printf(m, "RPNSWREQ: %dMHz\n", reqf); seq_printf(m, "CAGF: %dMHz\n", cagf); - seq_printf(m, "RP CUR UP EI: %dus\n", rpupei & + seq_printf(m, "RP CUR UP EI: %d\n", rpupei & GEN6_CURICONT_MASK); - seq_printf(m, "RP CUR UP: %dus\n", rpcurup & + seq_printf(m, "RP CUR UP: %d\n", rpcurup & GEN6_CURBSYTAVG_MASK); - seq_printf(m, "RP PREV UP: %dus\n", rpprevup & + seq_printf(m, "RP PREV UP: %d\n", rpprevup & GEN6_CURBSYTAVG_MASK); seq_printf(m, "Up threshold: %d%%\n", dev_priv->rps.up_threshold); - seq_printf(m, "RP CUR DOWN EI: %dus\n", rpdownei & + seq_printf(m, "RP CUR DOWN EI: %d\n", rpdownei & GEN6_CURIAVG_MASK); - seq_printf(m, "RP CUR DOWN: %dus\n", rpcurdown & + seq_printf(m, "RP CUR DOWN: %d\n", rpcurdown & GEN6_CURBSYTAVG_MASK); - seq_printf(m, "RP PREV DOWN: %dus\n", rpprevdown & + seq_printf(m, "RP PREV DOWN: %d\n", rpprevdown & GEN6_CURBSYTAVG_MASK); seq_printf(m, "Down threshold: %d%%\n", dev_priv->rps.down_threshold);