From: Andrey Borzenkov <arvidjaar@mail.ru>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: linux-acpi@vger.kernel.org, linux-pm@lists.osdl.org,
linux-kernel@vger.kernel.org
Subject: Re: 2.6.19: ACPI reports AC not present after resume from STD
Date: Sun, 25 Feb 2007 13:37:07 +0300 [thread overview]
Message-ID: <200702251337.08914.arvidjaar@mail.ru> (raw)
In-Reply-To: <200702251117.30462.rjw@sisk.pl>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Воскресенье 25 февраля 2007, Rafael J. Wysocki wrote:
> On Sunday, 25 February 2007 00:26, Andrey Borzenkov wrote:
> > On Суббота 24 февраля 2007, Rafael J. Wysocki wrote:
> > > Hi,
> > >
> > > On Saturday, 24 February 2007 10:55, Andrey Borzenkov wrote:
> > > > On Вторник 13 февраля 2007, Andrey Borzenkov wrote:
> > > > > On Четверг 07 декабря 2006, Lebedev, Vladimir P wrote:
> > > > > > Please register new bug, attach acpidump and dmesg.
> > > > >
> > > > > http://bugzilla.kernel.org/show_bug.cgi?id=7995
> > > > >
> > > > > regards
> > > >
> > > > Well, this starts looking like ACPI is not at fault.
> > > >
> > > > When reporting AC state ACPI just reads contents of system memory (I
> > > > presume it gets updated by BIOS/ACPI when AC state changes). It looks
> > > > like this memory area is restored during resume from STD. I updated
> > > > mentioned bug report with more detailed description. Now if someone
> > > > could suggest a way to catch if specific physical address gets
> > > > saved/restored this would finally explain it.
> > >
> > > First, if you want the reserved memory areas to be left alone by
> > > swsusp, you need to mark them as 'nosave'. On x86_64 this is done by
> > > the function e820_mark_nosave_range() in arch/x86_64/kernel/e820.c that
> > > can be ported to i386 with no problems. However, we haven't found that
> > > very useful, so far, since no one has ever reported any problems with
> > > the current approach, which is to save and restore them.
> >
> > Well, the following proof of concept patch fixes this issue for me.
> > Please notice that original version of e820_mark_nosave_range() could
> > fail to exclude some areas due to alignment issues (exactly what happened
> > to me on first try) so it still can explain your problem too.
>
> Great job, thanks for the patch! It looks good, so I'm going to forward it
> for merging.
>
Please no; I'm currently testing slightly more polished version; I will send
it later.
Could anybody explain (or give pointer to) what happens which region that is
not page-aligned? In particular, the very first one:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
Will the kernel allocate partial page (how?) or will the kernel ignore last
(first) incomplete page? In the former case how those incomplete pages can be
detected?
- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFF4WbUR6LMutpd94wRAoOVAKDNZxeHKRJ+8IVVpR2zZZF5dTYEDACg0hKi
7dffkAFBZnBSQ/3VkNP6tFU=
=nezM
-----END PGP SIGNATURE-----
_______________________________________________
linux-pm mailing list
linux-pm@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/linux-pm
next prev parent reply other threads:[~2007-02-25 10:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <8E389A5F2FEABA4CB1DEC35A25CB39CE82FE9F@mssmsx411>
[not found] ` <200702132116.05404.arvidjaar@mail.ru>
2007-02-24 9:55 ` 2.6.19: ACPI reports AC not present after resume from STD Andrey Borzenkov
2007-02-24 19:46 ` Rafael J. Wysocki
2007-02-24 23:26 ` Andrey Borzenkov
2007-02-25 10:17 ` Rafael J. Wysocki
2007-02-25 10:37 ` Andrey Borzenkov [this message]
2007-02-25 10:51 ` Rafael J. Wysocki
2007-02-25 17:14 ` Andrey Borzenkov
2007-02-25 18:58 ` Rafael J. Wysocki
2007-02-26 20:35 ` Andrey Borzenkov
2007-02-26 21:23 ` 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=200702251337.08914.arvidjaar@mail.ru \
--to=arvidjaar@mail.ru \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.osdl.org \
--cc=rjw@sisk.pl \
/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