drm/i915: report correct frequencies on SNB
Subsystems (2)
PATCH 1/1 drm/i915: report correct frequencies on SNB
Fix up the debug file to report the right frequencies. On SNB, we program the PCU with a frequency ratio, which is multiplied by 100MHz on the CPU side. But GFX only runs at half that, so report it as such to avoid confusion.
--- drivers/gpu/drm/i915/i915_debugfs.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_debugfs.c +4 -4
@@ -892,7 +892,7 @@ static int i915_cur_delayinfo(struct seq_file *m, void *unused)seq_printf (m,"Render p-state limit: %d\n" , rp_state_limits &0xff );seq_printf (m,"CAGF: %dMHz\n" , ((rpstat &GEN6_CAGF_MASK ) >> -GEN6_CAGF_SHIFT ) *100 ); +GEN6_CAGF_SHIFT ) *50 );seq_printf (m,"RP CUR UP EI: %dus\n" , rpupei &GEN6_CURICONT_MASK ); seq_printf(m, "RP CUR UP: %dus\n", rpcurup &
@@ -908,15 +908,15 @@ static int i915_cur_delayinfo(struct seq_file *m, void *unused) max_freq = (rp_state_cap &0xff0000 ) >>16 ;seq_printf (m,"Lowest (RPN) frequency: %dMHz\n" , - max_freq *100 ); + max_freq *50 ); max_freq = (rp_state_cap &0xff00 ) >>8 ;seq_printf (m,"Nominal (RP1) frequency: %dMHz\n" , - max_freq *100 ); + max_freq *50 ); max_freq = rp_state_cap &0xff ;seq_printf (m,"Max non-overclocked (RP0) frequency: %dMHz\n" , - max_freq *100 ); + max_freq *50 );__gen6_gt_force_wake_put (dev_priv); }else {
Signature · 1 line
1.7.1
Quoted 4 lines · Jesse Barnes
Fix up the debug file to report the right frequencies. On SNB, we program the PCU with a frequency ratio, which is multiplied by 100MHz on the CPU side. But GFX only runs at half that, so report it as such to avoid confusion.
Jesse, you said you had a patch that superseded this one? -Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
Quoted 7 lines · On Fri, 18 Mar 2011 12:14:33 +0000 Chris Wilson <[email protected]>…
Quoted 4 lines · Jesse Barnes
Fix up the debug file to report the right frequencies. On SNB, we program the PCU with a frequency ratio, which is multiplied by 100MHz on the CPU side. But GFX only runs at half that, so report it as such to avoid confusion.
Jesse, you said you had a patch that superseded this one?
Yeah, need to update the DRM_DEBUG in intel_display.c as well, if overclocking is detected. I can send a new patch unless you want to fix it up at apply time.
Thanks,
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center