public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Ben Widawsky <ben@bwidawsk.net>
To: "Cui, Dexuan" <dexuan.cui@intel.com>
Cc: Intel Graphics Development <intel-gfx@lists.freedesktop.org>,
	"Zanoni, Paulo R" <paulo.r.zanoni@intel.com>
Subject: Re: sysfs: i915_cur_delayinfo is always twice as gt_cur_freq_mhz in 3.8.13.4?
Date: Sat, 5 Oct 2013 16:25:45 -0700	[thread overview]
Message-ID: <20131005232544.GA24481@bwidawsk.net> (raw)
In-Reply-To: <A25F549E4D43CD42B4C02DF47A19132310EFF882@SHSMSX103.ccr.corp.intel.com>

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

      reply	other threads:[~2013-10-05 23:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131005232544.GA24481@bwidawsk.net \
    --to=ben@bwidawsk.net \
    --cc=dexuan.cui@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=paulo.r.zanoni@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox