From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Takashi Iwai <tiwai@suse.de>
Cc: Yinghai Lu <yinghai.lu@oracle.com>,
linux-kernel@vger.kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
oneukum@suse.de, x86@kernel.org,
Linux PM mailing list <linux-pm@lists.linux-foundation.org>,
Ingo Molnar <mingo@redhat.com>
Subject: Re: S4 resume broken since 2.6.39 (3.1, too)
Date: Wed, 28 Sep 2011 16:45:48 +0200 [thread overview]
Message-ID: <201109281645.48474.rjw@sisk.pl> (raw)
In-Reply-To: <s5hhb3wbv0e.wl%tiwai@suse.de>
On Wednesday, September 28, 2011, Takashi Iwai wrote:
> At Wed, 28 Sep 2011 15:28:12 +0200,
> Takashi Iwai wrote:
> >
> > At Wed, 28 Sep 2011 15:26:19 +0200,
> > Rafael J. Wysocki wrote:
> > >
> > > On Wednesday, September 28, 2011, Takashi Iwai wrote:
> > > > At Tue, 27 Sep 2011 18:56:44 +0200,
> > > > Rafael J. Wysocki wrote:
> > > > >
> > > > > On Tuesday, September 27, 2011, Takashi Iwai wrote:
> > > > > > At Mon, 26 Sep 2011 19:26:44 -0700,
> > > > > > Yinghai Lu wrote:
> > > > > > >
> > > > > > > On 09/22/2011 11:11 AM, Takashi Iwai wrote:
> > > > > > >
> > > > > > > > At Thu, 22 Sep 2011 07:33:17 -0700,
> > > > > > > > Yinghai Lu wrote:
> > > > > > > >>
> > > > > > > >> On Wed, Sep 21, 2011 at 11:48 AM, Rafael J. Wysocki <rjw@sisk.pl> wrote:
> > > > > > > >>> It looks like init_memory_mapping() is sometimes called with "end"
> > > > > > > >>> beyond the last mapped PFN and it explodes when we try to write stuff to
> > > > > > > >>> that address during image restoration.
> > > > > > > >>>
> > > > > > > >>> IOW, the Yinghai's assumption that init_memory_mapping() would always be
> > > > > > > >>> called with a "good end" on x86_64 was overomptimistic.
> > > > > > > >>
> > > > > > > >> for 64bit x86, kernel_physical_mapping_init() will use
> > > > > > > >> map_low_page()/call early_memmap() to access ram for page_table that is above
> > > > > > > >> rather last mapped PFN.
> > > > > > > >>
> > > > > > > >> the point is:
> > > > > > > >> on system with 64g, usable ram will be [0,2048m), [4g, 64g)
> > > > > > > >> init_memory_mapping will be called two times for them.
> > > > > > > >> before putting page_table high,
> > > > > > > >> page table will be two parts: one is just below 512M, and one below 2048m.
> > > > > > > >> after putting page_table high,
> > > > > > > >> page table will be two parts: one is just below 2048M, and one below 64G.
> > > > > > > >
> > > > > > > > So, how can this change break S4 resume?
> > > > > > >
> > > > > > >
> > > > > > > not sure.
> > > > > > >
> > > > > > > seems resume has it's own page table during transition...
> > > > > > >
> > > > > > >
> > > > > > > > Any hint for further debugging?
> > > > > > >
> > > > > > >
> > > > > > > you may try to insert dead loop in arch/x86/power/hibernate_asm_64.S::restore_image or core_restore_code
> > > > > > >
> > > > > > > to see which part cause reset.
> > > > > >
> > > > > > That's the answer I was afraid of :)
> > > > >
> > > > > I wonder. Does hibernation work on the machine in question with
> > > > > acpi_sleep=nonvs and if so, is the problem reproducible with this
> > > > > setting?
> > > >
> > > > It still shows the same problem. Reboots after a few S4 cycles.
> > > > I'll test kernel S4.
> > >
> > > This most likely means that NVS is not involved.
> >
> > Indeed, kernel S4 also failed both with and without acpi_sleep=nonvs.
> >
> > > Have you tried to revert commit d1ee433 (x86, trampoline: Use the unified
> > > trampoline setup for ACPI wakeup)?
> >
> > Not yet. I'll check it later.
>
> Unfortunately the commit can't be reverted cleanly.
> The commits around it seem mixed up together.
>
> If you have a patch applicable to 3.0 or 3.1 kernel, let me know.
No, I don't, but can you simply go back to that commit and see
if the issue is reproducible with HEAD = d1ee433, and if it is,
see if it still will be reproducible after going one commit back from there?
Rafael
next prev parent reply other threads:[~2011-09-28 14:43 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-20 16:12 S4 resume broken since 2.6.39 (3.1, too) Takashi Iwai
2011-09-21 18:48 ` Rafael J. Wysocki
2011-09-22 9:49 ` Takashi Iwai
2011-09-22 14:33 ` Yinghai Lu
2011-09-22 18:11 ` Takashi Iwai
2011-09-27 2:26 ` Yinghai Lu
2011-09-27 16:38 ` Takashi Iwai
2011-09-27 16:54 ` Yinghai Lu
2011-09-28 10:08 ` Takashi Iwai
2011-09-27 16:56 ` Rafael J. Wysocki
2011-09-28 10:09 ` Takashi Iwai
2011-09-28 13:26 ` Rafael J. Wysocki
2011-09-28 13:28 ` Takashi Iwai
2011-09-28 14:29 ` Takashi Iwai
2011-09-28 14:45 ` Rafael J. Wysocki [this message]
2011-09-28 14:45 ` Takashi Iwai
2011-09-28 16:19 ` Takashi Iwai
2011-09-28 18:05 ` Takashi Iwai
2011-09-28 19:30 ` Rafael J. Wysocki
2011-09-26 22:24 ` Rafael J. Wysocki
2011-09-26 22:47 ` Linus Torvalds
2011-09-27 2:48 ` Yinghai Lu
2011-09-27 2:34 ` Yinghai Lu
2011-09-27 17:03 ` Rafael J. Wysocki
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=201109281645.48474.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=mingo@redhat.com \
--cc=oneukum@suse.de \
--cc=tiwai@suse.de \
--cc=x86@kernel.org \
--cc=yinghai.lu@oracle.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