All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH] drm/i915/selftests: Skip RPS tests on Ironlake (only IPS)
Date: Fri, 23 Oct 2020 01:38:16 +0300	[thread overview]
Message-ID: <20201022223816.GT6112@intel.com> (raw)
In-Reply-To: <20201022210814.23004-1-chris@chris-wilson.co.uk>

On Thu, Oct 22, 2020 at 10:08:14PM +0100, Chris Wilson wrote:
> Since Ironlake uses intel_ips.ko for its dynamic frequency adjustment,
> we do not have direct control over the frequency management so such
> tests are defunct.

We could just ignore what ips is saying, but maybe we don't want to.

> Similarly, we can't check the gen6+ RPS registers on
> Ironlake.

I can definitely get behind that one.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

> 
> Hopefully this catches all the invalid tests now that Ironlake has
> rejoined the dynamic GPU frequency club.
> 
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> ---
>  drivers/gpu/drm/i915/gt/selftest_rps.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/gt/selftest_rps.c b/drivers/gpu/drm/i915/gt/selftest_rps.c
> index 3540ba9bd459..aa5675ecb5cc 100644
> --- a/drivers/gpu/drm/i915/gt/selftest_rps.c
> +++ b/drivers/gpu/drm/i915/gt/selftest_rps.c
> @@ -219,7 +219,7 @@ int live_rps_clock_interval(void *arg)
>  	struct igt_spinner spin;
>  	int err = 0;
>  
> -	if (!intel_rps_is_enabled(rps))
> +	if (!intel_rps_is_enabled(rps) || INTEL_GEN(gt->i915) < 6)
>  		return 0;
>  
>  	if (igt_spinner_init(&spin, gt))
> @@ -1028,7 +1028,7 @@ int live_rps_interrupt(void *arg)
>  	 * First, let's check whether or not we are receiving interrupts.
>  	 */
>  
> -	if (!intel_rps_has_interrupts(rps))
> +	if (!intel_rps_has_interrupts(rps) || INTEL_GEN(gt->i915) < 6)
>  		return 0;
>  
>  	intel_gt_pm_get(gt);
> @@ -1133,7 +1133,7 @@ int live_rps_power(void *arg)
>  	 * that theory.
>  	 */
>  
> -	if (!intel_rps_is_enabled(rps))
> +	if (!intel_rps_is_enabled(rps) || INTEL_GEN(gt->i915) < 6)
>  		return 0;
>  
>  	if (!librapl_energy_uJ())
> @@ -1237,7 +1237,7 @@ int live_rps_dynamic(void *arg)
>  	 * moving parts into dynamic reclocking based on load.
>  	 */
>  
> -	if (!intel_rps_is_enabled(rps))
> +	if (!intel_rps_is_enabled(rps) || INTEL_GEN(gt->i915) < 6)
>  		return 0;
>  
>  	if (igt_spinner_init(&spin, gt))
> -- 
> 2.20.1
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2020-10-22 22:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-22 21:08 [Intel-gfx] [PATCH] drm/i915/selftests: Skip RPS tests on Ironlake (only IPS) Chris Wilson
2020-10-22 21:46 ` [Intel-gfx] ✓ Fi.CI.BAT: success for " Patchwork
2020-10-22 22:38 ` Ville Syrjälä [this message]
2020-10-22 23:07   ` [Intel-gfx] [PATCH] " Chris Wilson
2020-10-23  0:11 ` [Intel-gfx] ✗ Fi.CI.IGT: failure for " 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=20201022223816.GT6112@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=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.