All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gupta, Anshuman" <anshuman.gupta@intel.com>
To: "Tauro, Riana" <riana.tauro@intel.com>,
	"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t v5 2/3] tests/i915/i915_suspend: Add s2idle and s3 subtests without i915
Date: Thu, 12 May 2022 10:37:44 +0000	[thread overview]
Message-ID: <cb9f3ddbe20c4892a6a6b728427ae484@intel.com> (raw)
In-Reply-To: <20220512053427.2754986-3-riana.tauro@intel.com>



> -----Original Message-----
> From: Tauro, Riana <riana.tauro@intel.com>
> Sent: Thursday, May 12, 2022 11:04 AM
> To: igt-dev@lists.freedesktop.org
> Cc: Tauro, Riana <riana.tauro@intel.com>; Gupta, Anshuman
> <anshuman.gupta@intel.com>
> Subject: [PATCH i-g-t v5 2/3] tests/i915/i915_suspend: Add s2idle and s3
> subtests without i915
> 
> From: "Tauro, Riana" <riana.tauro@intel.com>
> 
> Add new tests basic-s2idle-without-i915 and basic-s3-without-i915 to exercise
> s2idle and s3 cycles to know the system wide health of suspend/resume
> 
> v2: rebase
> v3: rebase
> v4: skip s3 when platform default state is s2idle to reduce
>     CI time (Anshuman)
Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com>
> 
> Signed-off-by: Tauro, Riana <riana.tauro@intel.com>
> ---
>  tests/i915/i915_suspend.c | 16 +++++++++++-----
>  1 file changed, 11 insertions(+), 5 deletions(-)
> 
> diff --git a/tests/i915/i915_suspend.c b/tests/i915/i915_suspend.c index
> d34b7a5d..cb33d83e 100644
> --- a/tests/i915/i915_suspend.c
> +++ b/tests/i915/i915_suspend.c
> @@ -204,12 +204,14 @@ test_forcewake(int fd, bool hibernate)  }
> 
>  static void
> -test_suspend_without_i915(void)
> +test_suspend_without_i915(int state)
>  {
>  	igt_kmsg(KMSG_INFO "Unloading i915\n");
>  	igt_assert_eq(igt_i915_driver_unload(),0);
> 
> -	igt_system_suspend_autoresume(SUSPEND_STATE_MEM,
> SUSPEND_TEST_NONE);
> +	igt_skip_on_f(igt_get_memsleep_state() == MEM_SLEEP_FREEZE &&
> state > SUSPEND_STATE_FREEZE,
> +		      "Platform default state is s2idle\n");
> +	igt_system_suspend_autoresume(state, SUSPEND_TEST_NONE);
> 
>  	igt_kmsg(KMSG_INFO "Re-loading i915 \n");
>  	igt_assert_eq(igt_i915_driver_load(NULL), 0); @@ -219,9 +221,13 @@
> int fd;
> 
>  igt_main
>  {
> -	igt_describe("Validate system suspend cycle without i915 module");
> -	igt_subtest("system-suspend-without-i915")
> -		test_suspend_without_i915();
> +	igt_describe("Validate suspend-to-idle without i915 module");
> +	igt_subtest("basic-s2idle-without-i915")
> +		test_suspend_without_i915(SUSPEND_STATE_FREEZE);
> +
> +	igt_describe("Validate S3 without i915 module");
> +	igt_subtest("basic-s3-without-i915")
> +		test_suspend_without_i915(SUSPEND_STATE_MEM);
> 
>  	igt_fixture
>  		fd = drm_open_driver(DRIVER_INTEL);
> --
> 2.25.1

  reply	other threads:[~2022-05-12 10:37 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-12  5:34 [igt-dev] [PATCH i-g-t v5 0/3] Extend system-suspend-without-i915 Riana Tauro
2022-05-12  5:34 ` [igt-dev] [PATCH i-g-t v5 1/3] lib/igt_aux: add library function to read current selected state of mem_sleep Riana Tauro
2022-05-12 10:39   ` Gupta, Anshuman
2022-05-12  5:34 ` [igt-dev] [PATCH i-g-t v5 2/3] tests/i915/i915_suspend: Add s2idle and s3 subtests without i915 Riana Tauro
2022-05-12 10:37   ` Gupta, Anshuman [this message]
2022-05-12  5:34 ` [igt-dev] [PATCH i-g-t v5 3/3] tests/intel-ci/fast-feedback: Add suspend tests without i915 to fast-feedback list Riana Tauro
2022-05-12  5:50 ` [igt-dev] ✗ GitLab.Pipeline: warning for Extend system-suspend-without-i915 (rev6) Patchwork
2022-05-12  6:15 ` [igt-dev] ✗ Fi.CI.BAT: failure " Patchwork
2022-05-13  5:41   ` Tauro, Riana
2022-05-13 15:47     ` Vudum, Lakshminarayana
2022-05-12 14:00 ` [igt-dev] ✗ Fi.CI.BAT: failure for Extend system-suspend-without-i915 (rev7) Patchwork
2022-05-13 15:23 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2022-05-13 15:25 ` Patchwork
2022-05-13 18:04 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-05-16  5:14   ` Tauro, Riana
2022-05-16  6:33     ` Vudum, Lakshminarayana
2022-05-16  6:14 ` [igt-dev] ✓ Fi.CI.IGT: success " 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=cb9f3ddbe20c4892a6a6b728427ae484@intel.com \
    --to=anshuman.gupta@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 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.