public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Nilawar, Badal" <badal.nilawar@intel.com>
To: Ashutosh Dixit <ashutosh.dixit@intel.com>,
	<igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t] i915/i915_pm_rps: Actual freq can be 0 when idle or in RC6
Date: Thu, 10 Nov 2022 20:27:11 +0530	[thread overview]
Message-ID: <9b3c4cab-8d91-0c4f-5c9f-49b6849b4835@intel.com> (raw)
In-Reply-To: <20220927062839.2718582-1-ashutosh.dixit@intel.com>



On 27-09-2022 11:58, Ashutosh Dixit wrote:
> From: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
> 
> Actual freq read from sysfs can be 0, i.e. less than RPn, in certain
> situations. For example when the device is idle (without the runtime PM
> wakeref) actual freq read from sysfs will be 0. Also on Gen12+ actual freq
> read from HW will be 0 in RC6. Therefore modify checks comparing actual
> freq with RPn.
> 
> Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
> Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Badal Nilawar <badal.nilawar@intel.com>
> ---
>   tests/i915/i915_pm_rps.c | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/i915/i915_pm_rps.c b/tests/i915/i915_pm_rps.c
> index db39ec69865c..4865ed1f0042 100644
> --- a/tests/i915/i915_pm_rps.c
> +++ b/tests/i915/i915_pm_rps.c
> @@ -483,14 +483,15 @@ static void idle_check(void)
>   		read_freqs(freqs);
>   		dump(freqs);
>   		check_freq_constraints(freqs);
> -		if (freqs[ACT] == freqs[RPn])
> +		if (freqs[ACT] <= freqs[RPn])
>   			break;
>   		usleep(1000 * IDLE_WAIT_TIMESTEP_MSEC);
>   		wait += IDLE_WAIT_TIMESTEP_MSEC;
>   	} while (wait < IDLE_WAIT_TIMEOUT_MSEC);
>   
>   	igt_debugfs_dump(drm_fd, "i915_rps_boost_info");
> -	igt_assert_eq(freqs[ACT], freqs[RPn]);
> +	/* Actual freq may be 0 when idle or in RC6 */
> +	igt_assert_lte(freqs[ACT], freqs[RPn]);
>   	igt_debug("Required %d msec to reach cur=idle\n", wait);
>   }
>   

      parent reply	other threads:[~2022-11-10 14:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-27  6:28 [igt-dev] [PATCH i-g-t] i915/i915_pm_rps: Actual freq can be 0 when idle or in RC6 Ashutosh Dixit
2022-09-27  7:03 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-09-27 17:24 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-11-11 15:26   ` Gupta, Anshuman
2022-11-11 15:34     ` Nilawar, Badal
2022-11-10 14:57 ` Nilawar, Badal [this message]

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=9b3c4cab-8d91-0c4f-5c9f-49b6849b4835@intel.com \
    --to=badal.nilawar@intel.com \
    --cc=ashutosh.dixit@intel.com \
    --cc=igt-dev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox