Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Riana Tauro <riana.tauro@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH v9 4/4] drm/i915/selftests: skip comparison of power for discrete graphics
Date: Wed, 05 Apr 2023 18:02:04 -0700	[thread overview]
Message-ID: <87v8i9omb7.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20230405065930.3576936-5-riana.tauro@intel.com>

On Tue, 04 Apr 2023 23:59:30 -0700, Riana Tauro wrote:
>

Hi Riana,

> Hwmon reads the energy/power consumed by discrete soc,
> i.e. energy/power includes the power drawn from non-gfx discrete
> components
>
> This test uses the power consumed by GT to validate RC6
> power consumption.
> Skip comparison of power for discrete graphics
>
> TODO : measure power of GT in discrete graphics and modify the
> condition
>
> v2: update commit message (Anshuman)
>
> Signed-off-by: Riana Tauro <riana.tauro@intel.com>
> Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com>
> ---
>  drivers/gpu/drm/i915/gt/selftest_rc6.c | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/gt/selftest_rc6.c b/drivers/gpu/drm/i915/gt/selftest_rc6.c
> index 682f2fe67b3a..47165f490449 100644
> --- a/drivers/gpu/drm/i915/gt/selftest_rc6.c
> +++ b/drivers/gpu/drm/i915/gt/selftest_rc6.c
> @@ -107,7 +107,15 @@ int live_rc6_manual(void *arg)
>				      ktime_to_ns(dt));
>		pr_info("GPU consumed %llduW in RC0 and %llduW in RC6\n",
>			rc0_power, rc6_power);
> -		if (2 * rc6_power > rc0_power) {

So this condition is not being met for dGfx?

> +
> +		/*
> +		 * Condition valid for integrated graphics
> +		 * On discrete graphics, hwwmon reads the energy/power from
> +		 * discrete SOC that includes non-gfx components.

On dGfx, is this true even when we have per-gt level energy available? Or
only when we have device level energy but not per-gt level energy (when
total number of gt's is 1 and we only expose device level energy but not gt
level energy)?


> +		 * TODO : Measure power of GT for discrete graphics and
> +		 * modify the condition

If we are adding this TODO, how are we planning to do this?

> +		 */
> +		if (!IS_DGFX(gt->i915) && (2 * rc6_power > rc0_power)) {
>			pr_err("GPU leaked energy while in RC6!\n");
>			err = -EINVAL;
>			goto out_unlock;

Thanks.
--
Ashutosh

  reply	other threads:[~2023-04-06  1:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-05  6:59 [Intel-gfx] [PATCH v9 0/4] Add hwmon support for dgfx selftests Riana Tauro
2023-04-05  6:59 ` [Intel-gfx] [PATCH v9 1/4] drm/i915/selftests: Rename librapl library to libpower Riana Tauro
2023-04-05  6:59 ` [Intel-gfx] [PATCH v9 2/4] drm/i915/hwmon: Add helper function to obtain energy values Riana Tauro
2023-04-05  6:59 ` [Intel-gfx] [PATCH v9 3/4] drm/i915/selftests: Add hwmon support in libpower for dgfx Riana Tauro
2023-04-05  6:59 ` [Intel-gfx] [PATCH v9 4/4] drm/i915/selftests: skip comparison of power for discrete graphics Riana Tauro
2023-04-06  1:02   ` Dixit, Ashutosh [this message]
2023-04-10 15:50     ` Dixit, Ashutosh
2023-04-05 16:59 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Add hwmon support for dgfx selftests (rev9) Patchwork
2023-04-05 16:59 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2023-04-05 17:13 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-04-06  7:28 ` [Intel-gfx] ✓ Fi.CI.IGT: " 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=87v8i9omb7.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=riana.tauro@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