Re: [Intel-gfx] [PATCH] drm/i915/rps: Add frequency translation helpers

2019-12-04 Thread Andi Shyti
Hi Chris, > > @@ -1633,21 +1633,11 @@ static int i915_rps_boost_info(struct seq_file *m, > > void *data) > > { > > struct drm_i915_private *dev_priv = node_to_i915(m->private); > > struct intel_rps *rps = _priv->gt.rps; > > - u32 act_freq = rps->cur_freq; > > + u32

Re: [Intel-gfx] [PATCH] drm/i915/rps: Add frequency translation helpers

2019-12-04 Thread Chris Wilson
Quoting Andi Shyti (2019-12-04 10:30:14) > Add two helpers that for reading the actual GT's frequency. The > two helpers are: > > - intel_cagf_read: reads the frequency and returns it not >normalized > > - intel_cagf_freq_read: provides the frequency in Hz. > > Use the above helpers in

[Intel-gfx] [PATCH] drm/i915/rps: Add frequency translation helpers

2019-12-04 Thread Andi Shyti
Add two helpers that for reading the actual GT's frequency. The two helpers are: - intel_cagf_read: reads the frequency and returns it not normalized - intel_cagf_freq_read: provides the frequency in Hz. Use the above helpers in sysfs and debugfs. Signed-off-by: Andi Shyti ---