Igt-dev Archive on 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 1/2] tests/i915/i915_suspend: Add s2idle and s3 subtests without i915
Date: Fri, 29 Apr 2022 10:58:38 +0000	[thread overview]
Message-ID: <04bf219640fc40629b3240d8c2f5c05d@intel.com> (raw)
In-Reply-To: <d7cd5e2f83b5476aac55eee134227410@intel.com>



> -----Original Message-----
> From: Gupta, Anshuman
> Sent: Friday, April 29, 2022 10:11 AM
> To: Tauro, Riana <riana.tauro@intel.com>; igt-dev@lists.freedesktop.org
> Subject: RE: [PATCH i-g-t 1/2] tests/i915/i915_suspend: Add s2idle and s3
> subtests without i915
> 
> 
> 
> > -----Original Message-----
> > From: Tauro, Riana <riana.tauro@intel.com>
> > Sent: Monday, April 25, 2022 5:52 PM
> > To: igt-dev@lists.freedesktop.org
> > Cc: Tauro, Riana <riana.tauro@intel.com>; Gupta, Anshuman
> > <anshuman.gupta@intel.com>
> > Subject: [PATCH i-g-t 1/2] 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
> >
> > Signed-off-by: Tauro, Riana <riana.tauro@intel.com>
> > ---
> >  tests/i915/i915_suspend.c | 14 +++++++++-----
> >  1 file changed, 9 insertions(+), 5 deletions(-)
> >
> > diff --git a/tests/i915/i915_suspend.c b/tests/i915/i915_suspend.c
> > index
> > d34b7a5d..8203b806 100644
> > --- a/tests/i915/i915_suspend.c
> > +++ b/tests/i915/i915_suspend.c
> > @@ -204,12 +204,12 @@ 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_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 +219,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);
I think , we can optimize this test.
Please probe /sys/power/mem_sleep sys fs.
It shows the current default suspend state.
[s2idle] deep
In case [s2idle] is default , system will trigger always s2idle despite of SUSPEND_STATE_MEM input.
In case [deep] is default  then only system will trigger S3  upon requesting SUSPEND_STATE_MEM input.
Thanks,
Anshuman Gupta.
> Looks Good to me.
> Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com>
> >
> >  	igt_fixture
> >  		fd = drm_open_driver(DRIVER_INTEL);
> > --
> > 2.25.1

  reply	other threads:[~2022-04-29 10:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-25 12:21 [igt-dev] [PATCH i-g-t 0/2] Extend system-suspend-without-i915 Riana Tauro
2022-04-25 12:21 ` [igt-dev] [PATCH i-g-t 1/2] tests/i915/i915_suspend: Add s2idle and s3 subtests without i915 Riana Tauro
2022-04-29  4:40   ` Gupta, Anshuman
2022-04-29 10:58     ` Gupta, Anshuman [this message]
2022-04-25 12:21 ` [igt-dev] [PATCH i-g-t 2/2] tests/intel-ci/fast-feedback: Add suspend tests without i915 to fast-feedback list Riana Tauro
2022-04-25 13:28   ` [igt-dev] [PATCH i-g-t v2 " Riana Tauro
2022-04-29  4:49     ` Gupta, Anshuman
2022-04-29  9:54     ` [igt-dev] [PATCH i-g-t v3 " Riana Tauro
2022-04-29 10:58       ` Gupta, Anshuman
2022-04-29 11:24         ` Petri Latvala
2022-04-25 12:33 ` [igt-dev] ✗ Fi.CI.BUILD: failure for Extend system-suspend-without-i915 (rev2) Patchwork
2022-04-25 14:17 ` [igt-dev] ✗ Fi.CI.BAT: failure for Extend system-suspend-without-i915 (rev3) Patchwork
2022-04-29 10:55 ` [igt-dev] ✗ Fi.CI.BAT: failure for Extend system-suspend-without-i915 (rev4) 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=04bf219640fc40629b3240d8c2f5c05d@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox