All of lore.kernel.org
 help / color / mirror / Atom feed
* sysfs: i915_cur_delayinfo is always twice as gt_cur_freq_mhz in 3.8.13.4?
@ 2013-08-26  9:45 Cui, Dexuan
  2013-10-05 23:25 ` Ben Widawsky
  0 siblings, 1 reply; 2+ messages in thread
From: Cui, Dexuan @ 2013-08-26  9:45 UTC (permalink / raw)
  To: Intel Graphics Development; +Cc: Zanoni, Paulo R

Hi all, I'm using haswell with linux-3.8.13.4:
http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=commitdiff;h=d1baa1360260b5a01938674fc518109a4e5a148d
and I find the CAGF showed by i915_cur_delayinfo is always twice as gt_cur_freq_mhz, e.g., when the system is idle, I can get the below log:

----------------------------- Log begins
# cat /sys/kernel/debug/dri/0/i915_cur_delayinfo; echo;  cat /sys/devices/pci0000:00/0000:00:02.0/drm/card0/gt_cur_freq_mhz; echo ;
GT_PERF_STATUS: 0x00000800
RPSTAT1: 0x00040400
Render p-state ratio: 8
Render p-state VID: 0
Render p-state limit: 255
CAGF: 400MHz
RP CUR UP EI: 55890us
RP CUR UP: 276us
RP PREV UP: 0us
RP CUR DOWN EI: 94295us
RP CUR DOWN: 389us
RP PREV DOWN: 0us
Lowest (RPN) frequency: 200MHz
Nominal (RP1) frequency: 400MHz
Max non-overclocked (RP0) frequency: 1200MHz

200
----------------------------- Log ends. 

But with the latest 3.10.0, both values are 200, as expected.

I guess there is a fix in 3.10.0 I can pick for my 3.8.13.4?

Thanks,
-- Dexuan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: sysfs: i915_cur_delayinfo is always twice as gt_cur_freq_mhz in 3.8.13.4?
  2013-08-26  9:45 sysfs: i915_cur_delayinfo is always twice as gt_cur_freq_mhz in 3.8.13.4? Cui, Dexuan
@ 2013-10-05 23:25 ` Ben Widawsky
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Widawsky @ 2013-10-05 23:25 UTC (permalink / raw)
  To: Cui, Dexuan; +Cc: Intel Graphics Development, Zanoni, Paulo R

On Mon, Aug 26, 2013 at 09:45:50AM +0000, Cui, Dexuan wrote:
> Hi all, I'm using haswell with linux-3.8.13.4:
> http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=commitdiff;h=d1baa1360260b5a01938674fc518109a4e5a148d
> and I find the CAGF showed by i915_cur_delayinfo is always twice as gt_cur_freq_mhz, e.g., when the system is idle, I can get the below log:
> 
> ----------------------------- Log begins
> # cat /sys/kernel/debug/dri/0/i915_cur_delayinfo; echo;  cat /sys/devices/pci0000:00/0000:00:02.0/drm/card0/gt_cur_freq_mhz; echo ;
> GT_PERF_STATUS: 0x00000800
> RPSTAT1: 0x00040400
> Render p-state ratio: 8
> Render p-state VID: 0
> Render p-state limit: 255
> CAGF: 400MHz
> RP CUR UP EI: 55890us
> RP CUR UP: 276us
> RP PREV UP: 0us
> RP CUR DOWN EI: 94295us
> RP CUR DOWN: 389us
> RP PREV DOWN: 0us
> Lowest (RPN) frequency: 200MHz
> Nominal (RP1) frequency: 400MHz
> Max non-overclocked (RP0) frequency: 1200MHz
> 
> 200
> ----------------------------- Log ends. 
> 
> But with the latest 3.10.0, both values are 200, as expected.
> 
> I guess there is a fix in 3.10.0 I can pick for my 3.8.13.4?
> 
> Thanks,
> -- Dexuan
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx


Please don't use i915_cur_delayinfo unless you have good reason.
However, this is likely what you need:

commit f82855d342b6c8483c56e6d2e200a71731509a39
Author: Ben Widawsky <ben@bwidawsk.net>
Date:   Tue Jan 29 12:00:15 2013 -0800

    drm/i915: Fix CAGF for HSW


-- 
Ben Widawsky, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-05 23:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-26  9:45 sysfs: i915_cur_delayinfo is always twice as gt_cur_freq_mhz in 3.8.13.4? Cui, Dexuan
2013-10-05 23:25 ` Ben Widawsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.