From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Alexey Starikovskiy <astarikovskiy@suse.de>,
KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
linux-pm@lists.linux-foundation.org,
LKML <linux-kernel@vger.kernel.org>,
linux-mm <linux-mm@kvack.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [Update][PATCH] MM / PM: Force GFP_NOIO during suspend/hibernation and resume
Date: Sat, 30 Jan 2010 21:53:52 +0100 [thread overview]
Message-ID: <201001302153.53016.rjw@sisk.pl> (raw)
In-Reply-To: <1264884140.13861.7.camel@maxim-laptop>
On Saturday 30 January 2010, Maxim Levitsky wrote:
> On Sat, 2010-01-30 at 19:56 +0100, Rafael J. Wysocki wrote:
> > On Monday 25 January 2010, Alexey Starikovskiy wrote:
> > > Rafael J. Wysocki пишет:
> > > > On Saturday 23 January 2010, Maxim Levitsky wrote:
> > > >> On Fri, 2010-01-22 at 22:19 +0100, Rafael J. Wysocki wrote:
> > > >>> On Friday 22 January 2010, Maxim Levitsky wrote:
> > > >>>> On Fri, 2010-01-22 at 10:42 +0900, KOSAKI Motohiro wrote:
> > > >>>>>>>> Probably we have multiple option. but I don't think GFP_NOIO is good
> > > >>>>>>>> option. It assume the system have lots non-dirty cache memory and it isn't
> > > >>>>>>>> guranteed.
> > > >>>>>>> Basically nothing is guaranteed in this case. However, does it actually make
> > > >>>>>>> things _worse_?
> > > >>>>>> Hmm..
> > > >>>>>> Do you mean we don't need to prevent accidental suspend failure?
> > > >>>>>> Perhaps, I did misunderstand your intention. If you think your patch solve
> > > >>>>>> this this issue, I still disagree. but If you think your patch mitigate
> > > >>>>>> the pain of this issue, I agree it. I don't have any reason to oppose your
> > > >>>>>> first patch.
> > > >>>>> One question. Have anyone tested Rafael's $subject patch?
> > > >>>>> Please post test result. if the issue disapper by the patch, we can
> > > >>>>> suppose the slowness is caused by i/o layer.
> > > >>>> I did.
> > > >>>>
> > > >>>> As far as I could see, patch does solve the problem I described.
> > > >>>>
> > > >>>> Does it affect speed of suspend? I can't say for sure. It seems to be
> > > >>>> the same.
> > > >>> Thanks for testing.
> > > >> I'll test that too, soon.
> > > >> Just to note that I left my hibernate loop run overnight, and now I am
> > > >> posting from my notebook after it did 590 hibernate cycles.
> > > >
> > > > Did you have a chance to test it?
> > > >
> > > >> Offtopic, but Note that to achieve that I had to stop using global acpi
> > > >> hardware lock. I tried all kinds of things, but for now it just hands
> > > >> from time to time.
> > > >> See http://bugzilla.kernel.org/show_bug.cgi?id=14668
> > > >
> > > > I'm going to look at that later this week, although I'm not sure I can do more
> > > > than Alex about that.
> > > >
> > > > Rafael
> > > Rafael,
> > > If you can point to where one may insert callback to be called just before handing control to resume kernel,
> > > it may help...
> >
> > Generally speaking, I'd do that in a .suspend() callback of one of devices.
> >
> > If that's inconvenient, you can also place it in the .pre_restore() platform
> > hibernate callback (drivers/acpi/sleep.c). It only disables GPEs right now,
> > it might release the global lock as well.
> >
> > The .pre_restore() callback is executed after all devices have been suspended,
> > so there's no danger any driver would re-acquire the global lock after that.
>
>
> Well, I did that very late, very close to image restore.
> Still, it didn't work (It hung after the resume, in the kernel that was
> just restored, on access to the hardware lock, or in other words in same
> way)
>
> Here is what I did:
I saw the patch in the bug entry
(http://bugzilla.kernel.org/show_bug.cgi?id=14668).
Please see the comments in there.
Please also test the patch I attached and let's use the bug entry for the
tracking of this issue from now on.
Rafael
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2010-01-30 20:53 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1263549544.3112.10.camel@maxim-laptop>
[not found] ` <1263678289.4276.4.camel@maxim-laptop>
[not found] ` <201001162317.39940.rjw@sisk.pl>
2010-01-17 0:38 ` [RFC][PATCH] PM: Force GFP_NOIO during suspend/resume (was: Re: [linux-pm] Memory allocations in .suspend became very unreliable) Rafael J. Wysocki
2010-01-17 1:24 ` Oliver Neukum
2010-01-17 13:27 ` Rafael J. Wysocki
2010-01-17 13:36 ` Rafael J. Wysocki
2010-01-17 18:58 ` Benjamin Herrenschmidt
2010-01-17 23:00 ` Rafael J. Wysocki
2010-01-18 7:53 ` Oliver Neukum
2010-01-18 16:17 ` [linux-pm] [RFC][PATCH] PM: Force GFP_NOIO during suspend/resume (was: " Alan Stern
2010-01-18 20:59 ` Rafael J. Wysocki
2010-01-19 15:13 ` Alan Stern
2010-01-18 20:56 ` [RFC][PATCH] PM: Force GFP_NOIO during suspend/resume (was: Re: [linux-pm] " Rafael J. Wysocki
2010-01-18 21:55 ` Benjamin Herrenschmidt
2010-01-18 23:33 ` Rafael J. Wysocki
2010-01-17 13:55 ` Rafael J. Wysocki
2010-01-17 16:21 ` [linux-pm] [RFC][PATCH] PM: Force GFP_NOIO during suspend/resume (was: " Minchan Kim
2010-01-17 16:23 ` Minchan Kim
2010-01-18 0:25 ` Rafael J. Wysocki
2010-01-18 2:20 ` KOSAKI Motohiro
2010-01-18 21:06 ` Rafael J. Wysocki
2010-01-19 9:15 ` Oliver Neukum
2010-01-19 20:34 ` Rafael J. Wysocki
2010-01-18 17:00 ` [RFC][PATCH] PM: Force GFP_NOIO during suspend/resume (was: Re: [linux-pm] " Oliver Neukum
2010-01-18 20:41 ` Rafael J. Wysocki
2010-01-19 9:25 ` Oliver Neukum
2010-01-19 20:37 ` Rafael J. Wysocki
2010-01-20 14:05 ` Oliver Neukum
2010-01-20 21:13 ` Rafael J. Wysocki
2010-01-18 2:16 ` KOSAKI Motohiro
2010-01-18 20:55 ` Rafael J. Wysocki
2010-01-19 1:19 ` KOSAKI Motohiro
2010-01-19 3:19 ` Benjamin Herrenschmidt
2010-01-19 9:04 ` Bastien ROUCARIES
2010-01-19 23:17 ` Benjamin Herrenschmidt
2010-01-20 11:31 ` Oliver Neukum
2010-01-20 21:11 ` Benjamin Herrenschmidt
2010-01-20 21:12 ` Rafael J. Wysocki
2010-01-19 20:47 ` Rafael J. Wysocki
2010-01-20 0:33 ` KOSAKI Motohiro
2010-01-20 21:21 ` Rafael J. Wysocki
2010-01-21 0:47 ` KOSAKI Motohiro
2010-01-21 20:21 ` Rafael J. Wysocki
2010-01-21 20:42 ` [linux-pm] [RFC][PATCH] PM: Force GFP_NOIO during suspend/resume (was: " Nigel Cunningham
2010-01-21 21:38 ` Rafael J. Wysocki
2010-01-22 1:31 ` [RFC][PATCH] PM: Force GFP_NOIO during suspend/resume (was: Re: [linux-pm] " KOSAKI Motohiro
2010-01-22 1:42 ` KOSAKI Motohiro
2010-01-22 10:11 ` Maxim Levitsky
2010-01-22 21:19 ` [Update][PATCH] MM / PM: Force GFP_NOIO during suspend/hibernation and resume Rafael J. Wysocki
2010-01-23 9:29 ` Maxim Levitsky
2010-01-25 21:49 ` Rafael J. Wysocki
2010-01-25 21:52 ` Alexey Starikovskiy
2010-01-30 18:56 ` Rafael J. Wysocki
2010-01-30 20:42 ` Maxim Levitsky
2010-01-30 20:53 ` Rafael J. Wysocki [this message]
2010-01-22 20:58 ` [RFC][PATCH] PM: Force GFP_NOIO during suspend/resume (was: Re: [linux-pm] Memory allocations in .suspend became very unreliable) Rafael J. Wysocki
2010-01-30 15:46 ` Maxim Levitsky
2010-01-30 18:47 ` Rafael J. Wysocki
2010-01-30 20:37 ` Maxim Levitsky
2010-02-01 19:51 ` Maxim Levitsky
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=201001302153.53016.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=akpm@linux-foundation.org \
--cc=astarikovskiy@suse.de \
--cc=benh@kernel.crashing.org \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=maximlevitsky@gmail.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;
as well as URLs for NNTP newsgroup(s).