linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Justin Hibbits <chmeeedalf@gmail.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: PowerMac PMU programming
Date: Mon, 11 Jun 2012 09:03:13 +1000	[thread overview]
Message-ID: <1339369393.24838.101.camel@pasglop> (raw)
In-Reply-To: <20120610092932.38857c77@narn.knownspace>

On Sun, 2012-06-10 at 09:29 -0400, Justin Hibbits wrote:
> Hello,
> 
> I'm working on various PMU bits for FreeBSD (I know, not related to
> Linux), but running into some problems, which the Linux crowd may be
> able to help with, as it's already solved for Linux.  I've managed to
> get it to sleep for performing the sleep operation and for the CPU speed
> switch on MPC7455-based machines, but it goes catatonic, not waking
> up.  I've installed the reset vector pointer at 0x0080, which both OS X
> and Linux do, and flush the caches, but no luck.  During development of
> the Linux driver was this ever encountered?  Any assistance would be
> greatly appreciated, I've been banging my head against this off and on
> for about 8 months now.
> 
> Thanks for any assistance.  I'm not subscribed to the list, so please
> keep my address in replies.

Yes it was :-) pretty much any bug even minor during that process will
cause just that :-)

One thing paulus did that helped us a lot initially was write a little
synchronous version of the PMU send command and use it to blink the PMU
LED very early on when resuming from sleep, which allows us to debug a
bit.

It takes quite a bit of work (see the code in radeonfb) to get the
graphics back, so most of the time you come back with nothing on screen.

If your machine is not a laptop, there are other possible
considerations, such as the need to restore the PCI-PCI bridge that
might be above the macio chip very early on, before you try to restore
macio itself (we don't do that in Linux at this stage).

Cheers,
Ben.
 

  reply	other threads:[~2012-06-10 23:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-10 13:29 PowerMac PMU programming Justin Hibbits
2012-06-10 23:03 ` Benjamin Herrenschmidt [this message]
2012-06-11  3:31   ` Justin Hibbits
2012-06-11 21:24     ` Benjamin Herrenschmidt
2012-06-13  2:40       ` Justin Hibbits
2012-10-21  2:56       ` Justin Hibbits

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=1339369393.24838.101.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=chmeeedalf@gmail.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /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).