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 2/3] tests/i915/i915_suspend: Add system-suspend-without-i915 subtest
Date: Mon, 28 Mar 2022 05:53:42 +0000 [thread overview]
Message-ID: <9f44d78980ee4f909b0981044b4b5b80@intel.com> (raw)
In-Reply-To: <fa54b7ba3eea4a5ea5d8f025dae4424a@intel.com>
> -----Original Message-----
> From: Gupta, Anshuman
> Sent: Monday, March 28, 2022 11:22 AM
> To: Tauro, Riana <riana.tauro@intel.com>; igt-dev@lists.freedesktop.org
> Cc: Ewins, Jon <jon.ewins@intel.com>; Dixit, Ashutosh
> <ashutosh.dixit@intel.com>
> Subject: RE: [PATCH i-g-t 2/3] tests/i915/i915_suspend: Add system-suspend-
> without-i915 subtest
>
>
>
> > -----Original Message-----
> > From: Tauro, Riana <riana.tauro@intel.com>
> > Sent: Monday, March 28, 2022 10:47 AM
> > To: igt-dev@lists.freedesktop.org
> > Cc: Tauro, Riana <riana.tauro@intel.com>; Gupta, Anshuman
> > <anshuman.gupta@intel.com>; Ewins, Jon <jon.ewins@intel.com>; Dixit,
> > Ashutosh <ashutosh.dixit@intel.com>
> > Subject: [PATCH i-g-t 2/3] tests/i915/i915_suspend: Add
> > system-suspend-
> > without-i915 subtest
> >
> > From: "Tauro, Riana" <riana.tauro@intel.com>
> >
> > Add a new test system-suspend-without-i915 to exercise suspend/resume
> > cycle without i915 module to know the system wide health of
> > suspend/resume feature.
> > This test will be part of CI fast-feedback test list.
> >
> > Signed-off-by: Tauro, Riana <riana.tauro@intel.com>
> > ---
> > tests/i915/i915_suspend.c | 20 ++++++++++++++++++++
> > 1 file changed, 20 insertions(+)
> >
> > diff --git a/tests/i915/i915_suspend.c b/tests/i915/i915_suspend.c
> > index
> > da27ce09..4660d7a7 100644
> > --- a/tests/i915/i915_suspend.c
> > +++ b/tests/i915/i915_suspend.c
> > @@ -41,6 +41,7 @@
> > #include "i915/gem.h"
> > #include "i915/gem_create.h"
> > #include "igt.h"
> > +#include "igt_kmod.h"
> > #include "igt_device.h"
> >
> > #define OBJECT_SIZE (16*1024*1024)
> > @@ -202,6 +203,22 @@ test_forcewake(int fd, bool hibernate)
> > close (fw_fd);
> > }
> >
> > +static int
> > +test_suspend_without_i915(int fd)
> > +{
> > + close(fd);
> > + fd = -1;
> > + drm_cancel_work_at_exit();
> > + igt_i915_driver_unload();
> > +
> > + igt_system_suspend_autoresume(SUSPEND_STATE_MEM,
> > SUSPEND_TEST_NONE);
> > +
> > + igt_kmsg(KMSG_INFO "Re-loading i915 \n");
> > + igt_assert_eq(igt_i915_driver_load(NULL), 0);
> > + fd = drm_open_driver(DRIVER_INTEL);
> > + return fd;
> > +}
> > +
> > int fd;
> >
> > igt_main
> > @@ -209,6 +226,9 @@ igt_main
> > igt_fixture
> > fd = drm_open_driver(DRIVER_INTEL);
> >
> > + igt_subtest("system-suspend-without-i915")
Need to add a description for test with igt_describe()
Thanks,
Anshuman.
> > + fd = test_suspend_without_i915(fd);
> > +
> Move above code block to above of igt_fixture(), this subtest doesn't need
> igt_fixture.
> With that we don't need to close the fd and reopen it back and forth ?
> This will avoid to call drm_cancel_work_at_exit() ?
> > igt_subtest("fence-restore-tiled2untiled") {
> > gem_require_mappable_ggtt(fd);
> > test_fence_restore(fd, true, false);
> > --
> > 2.25.1
next prev parent reply other threads:[~2022-03-28 5:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-28 5:17 [igt-dev] [PATCH i-g-t 0/3] Basic Suspend/Resume with i915 unload Riana Tauro
2022-03-28 5:17 ` [igt-dev] [PATCH i-g-t 1/3] lib/drmtest : add function to call exit handler to unload i915 module Riana Tauro
2022-03-28 5:42 ` Gupta, Anshuman
2022-03-28 5:17 ` [igt-dev] [PATCH i-g-t 2/3] tests/i915/i915_suspend: Add system-suspend-without-i915 subtest Riana Tauro
2022-03-28 5:51 ` Gupta, Anshuman
2022-03-28 5:53 ` Gupta, Anshuman [this message]
2022-03-28 5:17 ` [igt-dev] [PATCH i-g-t 3/3] tests/intel-ci/fast-feedback: Add system-suspend-without-i915 into fast-feedback list Riana Tauro
2022-03-28 5:52 ` Gupta, Anshuman
2022-03-28 5:50 ` [igt-dev] ✓ Fi.CI.BAT: success for Basic Suspend/Resume with i915 unload (rev2) Patchwork
2022-03-28 6:41 ` [igt-dev] ✓ Fi.CI.IGT: " 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=9f44d78980ee4f909b0981044b4b5b80@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