Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Nilawar, Badal" <badal.nilawar@intel.com>
To: Riana Tauro <riana.tauro@intel.com>, <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t v4 2/3] tests/xe: Validate GT is in C6 on idle
Date: Fri, 14 Jul 2023 15:51:39 +0530	[thread overview]
Message-ID: <64a482ba-442e-0a4a-0e9b-49c5db92bd6e@intel.com> (raw)
In-Reply-To: <20230714094121.1446298-3-riana.tauro@intel.com>



On 14-07-2023 15:11, Riana Tauro wrote:
> Add a test that validates if GT is in C6 on idle.
> 
> v2:
>     - fix cosmetic review comments (Kamil)
>     - replace assert with igt_assert_f
>     - fix cosmetic review comments (Anshuman)
> 
> v3:
>     - use tile sysfs library functions
> 
> v4:
>     - fix cosmetic review comments (Badal, Kamil)
> 
> Signed-off-by: Riana Tauro <riana.tauro@intel.com>
> Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com>
> ---
>   tests/xe/xe_pm_residency.c | 10 ++++++++++
>   1 file changed, 10 insertions(+)
> 
> diff --git a/tests/xe/xe_pm_residency.c b/tests/xe/xe_pm_residency.c
> index 4fd374933..a20c4449c 100644
> --- a/tests/xe/xe_pm_residency.c
> +++ b/tests/xe/xe_pm_residency.c
> @@ -45,6 +45,11 @@ static unsigned int measured_usleep(unsigned int usec)
>   	return igt_nsec_elapsed(&ts) / 1000;
>   }
>   
> +/**
> + * SUBTEST: gt-c6-on-idle
> + * Description: Validate GT C6 state on idle
> + * Run type: BAT
> + */
>   static bool is_gt_in_c6(int fd, int gt)
>   {
>   	char gt_c_state[16];
> @@ -102,6 +107,11 @@ igt_main
>   		igt_require(!IS_PONTEVECCHIO(xe_dev_id(fd)));
>   	}
>   
> +	igt_describe("Validate GT C6 on idle");
> +	igt_subtest("gt-c6-on-idle")
> +		xe_for_each_gt(fd, gt)
> +			igt_assert_f(igt_wait(is_gt_in_c6(fd, gt), 1000, 1), "GT not in C6\n");
Acked-by: Badal Nilawar <badal.nilawar@intel.com>
> +
>   	igt_describe("Validate idle residency measured over a time interval is within the tolerance");
>   	igt_subtest("idle-residency")
>   		xe_for_each_gt(fd, gt)

  reply	other threads:[~2023-07-14 10:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-14  9:41 [igt-dev] [PATCH i-g-t v4 0/3] Test for gtidle properties Riana Tauro
2023-07-14  9:41 ` [igt-dev] [PATCH i-g-t v4 1/3] tests/xe: Add basic idle residency test Riana Tauro
2023-07-14 10:22   ` Nilawar, Badal
2023-07-14  9:41 ` [igt-dev] [PATCH i-g-t v4 2/3] tests/xe: Validate GT is in C6 on idle Riana Tauro
2023-07-14 10:21   ` Nilawar, Badal [this message]
2023-07-14  9:41 ` [igt-dev] [PATCH i-g-t v4 3/3] xe-fast-feedback.testlist: Add gt-c6-on-idle to BAT Riana Tauro
2023-07-14 11:10   ` Gupta, Anshuman
2023-07-14 11:28   ` Nilawar, Badal
2023-07-14 12:03     ` Gupta, Anshuman
2023-07-14 10:19 ` [igt-dev] ○ CI.xeBAT: info for Test for gtidle properties (rev5) Patchwork
2023-07-14 10:19 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2023-07-14 12:11 ` [igt-dev] ✗ Fi.CI.IGT: failure " 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=64a482ba-442e-0a4a-0e9b-49c5db92bd6e@intel.com \
    --to=badal.nilawar@intel.com \
    --cc=igt-dev@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