All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH] drm/i915/selftests: Measure the energy consumed while in RC6
Date: Tue, 24 Mar 2020 20:56:02 +0000	[thread overview]
Message-ID: <158508336282.27678.728284541964495431@build.alporthouse.com> (raw)
In-Reply-To: <20200324204455.2988-1-chris@chris-wilson.co.uk>

Quoting Chris Wilson (2020-03-24 20:44:55)
> +       dt = ktime_get();
> +       rc0_power = energy_uJ(rc6);
>         res[0] = rc6_residency(rc6);
>         msleep(250);
>         res[1] = rc6_residency(rc6);
> +       rc0_power = div64_u64(energy_uJ(rc6) - rc0_power,
> +                             ktime_to_ns(ktime_sub(ktime_get(), dt)));

Did you forget this was in ns? You did!
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2020-03-24 20:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-24 20:15 [Intel-gfx] [PATCH] drm/i915/selftests: Measure the energy consumed while in RC6 Chris Wilson
2020-03-24 20:44 ` Chris Wilson
2020-03-24 20:56   ` Chris Wilson [this message]
2020-09-28 23:56   ` Lucas De Marchi
2020-09-29  7:59     ` Chris Wilson
2020-03-24 20:58 ` Chris Wilson
2020-03-24 23:48 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/selftests: Measure the energy consumed while in RC6 (rev3) Patchwork
2020-03-25  0:08 ` [Intel-gfx] [PATCH] drm/i915/selftests: Measure the energy consumed while in RC6 Chris Wilson
2020-03-25  0:41 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/selftests: Measure the energy consumed while in RC6 (rev4) Patchwork
2020-03-25  8:10 ` [Intel-gfx] [PATCH] drm/i915/selftests: Measure the energy consumed while in RC6 Chris Wilson
2020-03-25  8:58   ` Andi Shyti
2020-03-25  9:10     ` Chris Wilson
2020-03-25  9:07 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/selftests: Measure the energy consumed while in RC6 (rev5) 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=158508336282.27678.728284541964495431@build.alporthouse.com \
    --to=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    /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.