All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 5/6] drm/i915: Use ktime to calculate rc0 residency
Date: Wed, 15 Mar 2017 15:57:38 +0000	[thread overview]
Message-ID: <20170315155738.GF2118@nuc-i3427.alporthouse.com> (raw)
In-Reply-To: <1489592584-10422-5-git-send-email-mika.kuoppala@intel.com>

On Wed, Mar 15, 2017 at 05:43:03PM +0200, Mika Kuoppala wrote:
> We have used cz timestamp register to gain a reference time wrt
> to residency calculations. The residency counts are in cz clk ticks
> (333Mhz clock) but for some reason the cz timestamp register gives
> 100us units. Perhaps for some other usage, the base-ten based values
> are easier, but in residency calculations raw units would have been
> the easiest.
> 
> As there is not much advantage of using base-ten clock through
> a more costly punit access, take our reference times directly from
> kernel clock.
> 
> v2: use ktime (Chris, Ville)
> 
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-03-15 15:58 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-15 15:42 [PATCH 1/6] drm/i915: Move residency calculation into intel_pm.c Mika Kuoppala
2017-03-15 15:43 ` [PATCH 2/6] drm/i915: Return residency as microseconds Mika Kuoppala
2017-03-15 15:58   ` Chris Wilson
2017-03-15 15:43 ` [PATCH 3/6] drm/i915: Extend vlv/chv residency resolution Mika Kuoppala
2017-03-15 15:52   ` Chris Wilson
2017-03-15 16:07     ` Mika Kuoppala
2017-03-15 15:43 ` [PATCH 4/6] drm/i915: Convert debugfs to use generic residency calculator Mika Kuoppala
2017-03-15 15:56   ` Chris Wilson
2017-03-15 15:43 ` [PATCH 5/6] drm/i915: Use ktime to calculate rc0 residency Mika Kuoppala
2017-03-15 15:57   ` Chris Wilson [this message]
2017-03-15 15:43 ` [PATCH 6/6] drm/i915: Use coarse grained residency counter with byt Mika Kuoppala
2017-03-15 15:56   ` Chris Wilson
2017-03-15 16:12     ` Mika Kuoppala
2017-03-15 15:58 ` [PATCH 1/6] drm/i915: Move residency calculation into intel_pm.c Chris Wilson
2017-03-16 10:52   ` Mika Kuoppala
2017-03-15 17:50 ` ✓ Fi.CI.BAT: success for series starting with [1/6] drm/i915: Move residency calculation into intel_pm.c (rev3) Patchwork

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=20170315155738.GF2118@nuc-i3427.alporthouse.com \
    --to=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=mika.kuoppala@linux.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 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.