All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Hiatt, Don" <don.hiatt@intel.com>
To: "Latvala, Petri" <petri.latvala@intel.com>,
	"Sundaresan, Sujaritha" <sujaritha.sundaresan@intel.com>
Cc: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t] lib/aux: Ensure swap space prior to suspend to disk
Date: Tue, 26 Nov 2019 17:05:31 +0000	[thread overview]
Message-ID: <97654A90DB924C44A3AE6C902A3FEAC15F99F292@ORSMSX106.amr.corp.intel.com> (raw)
In-Reply-To: <20191126095259.GM25209@platvala-desk.ger.corp.intel.com>

> From: Latvala, Petri <petri.latvala@intel.com>
> Sent: Tuesday, November 26, 2019 1:53 AM
> To: Sundaresan, Sujaritha <sujaritha.sundaresan@intel.com>
> Cc: Hiatt, Don <don.hiatt@intel.com>; igt-dev@lists.freedesktop.org
> Subject: Re: [igt-dev] [PATCH i-g-t] lib/aux: Ensure swap space prior to suspend
> to disk
> 
> On Mon, Nov 25, 2019 at 04:49:47PM -0800, Sujaritha wrote:
> >
> > On 11/21/19 5:10 PM, don.hiatt@intel.com wrote:
> > > From: Don Hiatt <don.hiatt@intel.com>
> > >
> > > Suspending to disk requires swap space, make sure it exists
> > > before attempting to suspend to disk.
> > >
> > > v2: Use igt_skip() [Thanks, Chris!]
> > > v3: Use igt_skip_on_f()
> > >
> > > Cc: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
> > > Cc: Chris Wilson <chris@chris-wilson.co.uk>
> > > Signed-off-by: Don Hiatt <don.hiatt@intel.com>
> > > ---
> > >   lib/igt_aux.c | 4 ++++
> > >   1 file changed, 4 insertions(+)
> > >
> > > diff --git a/lib/igt_aux.c b/lib/igt_aux.c
> > > index 578f857933f0..a6b114ed7e65 100644
> > > --- a/lib/igt_aux.c
> > > +++ b/lib/igt_aux.c
> > > @@ -864,6 +864,10 @@ void igt_system_suspend_autoresume(enum
> igt_suspend_state state,
> > >   	igt_require(test == SUSPEND_TEST_NONE ||
> > >   		    faccessat(power_dir, "pm_test", R_OK | W_OK, 0) == 0);
> > > +	igt_skip_on_f(state == SUSPEND_STATE_DISK &&
> > > +		      !intel_get_total_swap_mb(),
> > > +		      "Suspend to disk requires swap space.\n");
> > > +
> > >   	orig_test = get_suspend_test(power_dir);
> > >   	set_suspend_test(power_dir, test);
> >
> >
> > This should help fix part of the reason for the suspend tests failing on CI.
> 
> 
> If your goal is to enable s4 tests on CI, you still have quite a bit
> of work ahead of you.
> 
> CI uses swap _files_. Suspending to swap files does work, if your
> system is configured for the location of the swap space within the
> block device (the resume_offset command line parameter). That hasn't
> been configured at this time.
> 
> Possible further complications can arise from CI not using an initrd,
> which presumably rules out using uswsusp to automate a lot of the
> resume setup.
> 
> 

Hi Petri,

That's not the current goal. I mostly want the warning on systems (e.g. RIL) that
don't have any swap at all setup as I keep getting stung by it. 😊

Thanks!

don


> --
> Petri Latvala
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2019-11-26 17:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-22  1:10 [igt-dev] [PATCH i-g-t] lib/aux: Ensure swap space prior to suspend to disk don.hiatt
2019-11-22  1:54 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/aux: Ensure swap space prior to suspend to disk (rev3) Patchwork
2019-11-23  8:55 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2019-11-26  0:49 ` [igt-dev] [PATCH i-g-t] lib/aux: Ensure swap space prior to suspend to disk Sujaritha
2019-11-26  9:52   ` Petri Latvala
2019-11-26 17:05     ` Hiatt, Don [this message]
2019-11-28 13:30   ` Petri Latvala
  -- strict thread matches above, loose matches on Subject: below --
2019-11-22  1:08 don.hiatt
2019-11-22  0:43 don.hiatt
2019-11-22  0:36 ` Chris Wilson
2019-11-22  0:40   ` Hiatt, Don
2019-11-22  0:52     ` Hiatt, Don
2019-11-22  0:55       ` Chris Wilson

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=97654A90DB924C44A3AE6C902A3FEAC15F99F292@ORSMSX106.amr.corp.intel.com \
    --to=don.hiatt@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=petri.latvala@intel.com \
    --cc=sujaritha.sundaresan@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.