From: Johannes Berg <johannes@sipsolutions.net>
To: Pavel Machek <pavel@suse.cz>
Cc: linuxppc-dev@ozlabs.org, Torrance <torrance123@gmail.com>,
Michael Buesch <mb@bu3sch.de>,
linux-pm@lists.osdl.org
Subject: Re: [linux-pm] [RFC 3/3] suspend to disk on powermac G5
Date: Tue, 12 Dec 2006 14:33:11 +0100 [thread overview]
Message-ID: <1165930392.22338.31.camel@johannes.berg> (raw)
In-Reply-To: <20061212132023.GD5190@ucw.cz>
[-- Attachment #1.1: Type: text/plain, Size: 2271 bytes --]
Hi,
> Does aoa module load/unload help? Does making it build-in help? Also
> try playing with aumix after resume.
Yeah, I tried all of that except making it built-in. It's rather strange
but I suppose I'm to blame since I wrote aoa :) I'll need to look a bit
further. The odd thing is that everything works, I can play, change
volumes etc. just don't get any sound. I'm thinking something is wrong
with the onyx codec programming but haven't really looked yet. i2sbus
should be fine since it suspends/resume ok on my powerbook.
> > + /* phew. suckers. this 16MB area is left unmapped
> > + * at another place but they don't bother to mark it so */
> > + for (i = 0; i < (1<<24); i+= PAGE_SIZE)
> > + SetPageNosave(virt_to_page((void*)((unsigned long)dart_tablebase + i)));
> > +
>
> Can you move that marking where it belongs?
Where does it belong? The reservation is done so early that
SetPageNosave can't work yet (IIRC, I've been sitting on this code too
long.)
> > + if (dart_tablebase == 0 || dart_tablesize == 0)
> > + return;
> > +
> > + p = alloc_pages(GFP_KERNEL, 9);
> > + BUG_ON(!p);
> > + dart_copy = page_address(p);
> > +}
>
> Not sure how likely is 2MB allocation to succeed. You may need to
> prealocate it... And you definitely will need to handle error here.
Good points. I suppose I'll just preallocate it or try mapping the dart
table after all and not doing anything special with it during
suspend/resume... need to think about it more.
> > --- linux-2.6-git.orig/kernel/power/snapshot.c 2006-12-11 23:34:46.718716759 +0100
> > +++ linux-2.6-git/kernel/power/snapshot.c 2006-12-11 23:38:00.152716759 +0100
> > @@ -707,6 +707,8 @@ static struct page *saveable_page(unsign
> > return NULL;
> > if (PageNosaveFree(page))
> > return NULL;
> > + if (!page_is_ram(pfn))
> > + return NULL;
> >
> > return page;
> > }
>
> Could this get some testing in -mm?
I'd be much happier with it if I knew why it was necessary. On the
powermac we have a 2G memory hole: first 2G memory, then a 2G hole and
then the rest of the memory. It seems like the suspend code doesn't
handle any memory holes at the moment but that seems strange to me.
Thanks for your comments!
johannes
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
[-- Attachment #2: Type: text/plain, Size: 146 bytes --]
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev
next prev parent reply other threads:[~2006-12-12 13:33 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20061211230208.526233000@sipsolutions.net>
2006-12-11 23:02 ` [RFC 1/3] support powermac G5 CPU hotplug Johannes Berg
2006-12-11 23:02 ` Johannes Berg
2006-12-11 23:02 ` [RFC 2/3] windfarm: dont die on suspend thread signal Johannes Berg
2006-12-11 23:02 ` Johannes Berg
2006-12-11 23:02 ` [RFC 3/3] suspend to disk on powermac G5 Johannes Berg
2006-12-11 23:02 ` Johannes Berg
2006-12-12 12:21 ` [RFC 0/3] experimental G5 powermac suspend implementation Johannes Berg
2006-12-12 13:22 ` [linux-pm] " Pavel Machek
2006-12-12 13:36 ` Johannes Berg
2006-12-12 14:07 ` [linux-pm] " Johannes Berg
2006-12-12 17:34 ` Gabriel Paubert
2006-12-13 12:37 ` Johannes Berg
[not found] ` <20061211230754.380263000@sipsolutions.net>
2006-12-12 13:09 ` [RFC 1/3] support powermac G5 CPU hotplug Pavel Machek
2006-12-12 13:18 ` [linux-pm] " Johannes Berg
2006-12-12 13:47 ` Johannes Berg
2006-12-13 13:20 ` Johannes Berg
[not found] ` <20061211230754.979775000@sipsolutions.net>
2006-12-12 13:20 ` [linux-pm] [RFC 3/3] suspend to disk on powermac G5 Pavel Machek
2006-12-12 13:33 ` Johannes Berg [this message]
[not found] ` <20061211230754.679589000@sipsolutions.net>
2006-12-12 13:10 ` [RFC 2/3] windfarm: dont die on suspend thread signal Pavel Machek
2007-01-24 6:32 ` Benjamin Herrenschmidt
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=1165930392.22338.31.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=linux-pm@lists.osdl.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=mb@bu3sch.de \
--cc=pavel@suse.cz \
--cc=torrance123@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