Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Belgaumkar, Vinay" <vinay.belgaumkar@intel.com>
To: Riana Tauro <riana.tauro@intel.com>, <intel-gfx@lists.freedesktop.org>
Subject: Re: [Intel-gfx] [PATCH 1/3] drm/i915/guc/slpc: Run SLPC selftests on all tiles
Date: Mon, 26 Sep 2022 09:02:56 -0700	[thread overview]
Message-ID: <1ca7d0f3-081d-583b-ce27-36e3158e12e8@intel.com> (raw)
In-Reply-To: <20220923110043.789178-2-riana.tauro@intel.com>


On 9/23/2022 4:00 AM, Riana Tauro wrote:
> Run slpc selftests on all tiles
>
> Signed-off-by: Riana Tauro <riana.tauro@intel.com>

LGTM,

Reviewed-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>

> ---
>   drivers/gpu/drm/i915/gt/selftest_slpc.c | 45 ++++++++++++++++++++-----
>   1 file changed, 37 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/gt/selftest_slpc.c b/drivers/gpu/drm/i915/gt/selftest_slpc.c
> index f8a1d27df272..928f74718881 100644
> --- a/drivers/gpu/drm/i915/gt/selftest_slpc.c
> +++ b/drivers/gpu/drm/i915/gt/selftest_slpc.c
> @@ -270,26 +270,50 @@ static int run_test(struct intel_gt *gt, int test_type)
>   static int live_slpc_vary_min(void *arg)
>   {
>   	struct drm_i915_private *i915 = arg;
> -	struct intel_gt *gt = to_gt(i915);
> +	struct intel_gt *gt;
> +	unsigned int i;
> +	int ret;
> +
> +	for_each_gt(gt, i915, i) {
> +		ret = run_test(gt, VARY_MIN);
> +		if (ret)
> +			return ret;
> +	}
>   
> -	return run_test(gt, VARY_MIN);
> +	return ret;
>   }
>   
>   static int live_slpc_vary_max(void *arg)
>   {
>   	struct drm_i915_private *i915 = arg;
> -	struct intel_gt *gt = to_gt(i915);
> +	struct intel_gt *gt;
> +	unsigned int i;
> +	int ret;
> +
> +	for_each_gt(gt, i915, i) {
> +		ret = run_test(gt, VARY_MAX);
> +		if (ret)
> +			return ret;
> +	}
>   
> -	return run_test(gt, VARY_MAX);
> +	return ret;
>   }
>   
>   /* check if pcode can grant RP0 */
>   static int live_slpc_max_granted(void *arg)
>   {
>   	struct drm_i915_private *i915 = arg;
> -	struct intel_gt *gt = to_gt(i915);
> +	struct intel_gt *gt;
> +	unsigned int i;
> +	int ret;
> +
> +	for_each_gt(gt, i915, i) {
> +		ret = run_test(gt, MAX_GRANTED);
> +		if (ret)
> +			return ret;
> +	}
>   
> -	return run_test(gt, MAX_GRANTED);
> +	return ret;
>   }
>   
>   int intel_slpc_live_selftests(struct drm_i915_private *i915)
> @@ -300,8 +324,13 @@ int intel_slpc_live_selftests(struct drm_i915_private *i915)
>   		SUBTEST(live_slpc_max_granted),
>   	};
>   
> -	if (intel_gt_is_wedged(to_gt(i915)))
> -		return 0;
> +	struct intel_gt *gt;
> +	unsigned int i;
> +
> +	for_each_gt(gt, i915, i) {
> +		if (intel_gt_is_wedged(gt))
> +			return 0;
> +	}
>   
>   	return i915_live_subtests(tests, i915);
>   }

  reply	other threads:[~2022-09-26 16:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-23 11:00 [Intel-gfx] [PATCH 0/3] Add SLPC selftest live_slpc_power Riana Tauro
2022-09-23 11:00 ` [Intel-gfx] [PATCH 1/3] drm/i915/guc/slpc: Run SLPC selftests on all tiles Riana Tauro
2022-09-26 16:02   ` Belgaumkar, Vinay [this message]
2022-09-23 11:00 ` [Intel-gfx] [PATCH 2/3] drm/i915/selftests: Add helper function measure_power Riana Tauro
2022-09-26 15:57   ` Belgaumkar, Vinay
2022-09-23 11:00 ` [Intel-gfx] [PATCH 3/3] drm/i915/guc/slpc: Add SLPC selftest live_slpc_power Riana Tauro
2022-09-26 16:04   ` Belgaumkar, Vinay
2022-09-27 11:12     ` Gupta, Anshuman
2022-09-28  5:57       ` Tauro, Riana
2022-09-29  5:46         ` Gupta, Anshuman
2022-09-23 13:44 ` [Intel-gfx] ✓ Fi.CI.BAT: success for Add SLPC selftest live_slpc_power (rev2) Patchwork
2022-09-24  2:01 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2022-09-29  7:16   ` Gupta, Anshuman

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=1ca7d0f3-081d-583b-ce27-36e3158e12e8@intel.com \
    --to=vinay.belgaumkar@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