From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Nico Coesel <ncoesel@DEALogic.nl>
Cc: linux-mips@linux-mips.org
Subject: Re: FW: Alchemy power managment code.
Date: Thu, 13 Mar 2008 19:45:10 +0300 [thread overview]
Message-ID: <47D95A16.7090708@ru.mvista.com> (raw)
In-Reply-To: <19CA9E279FDA5246B7D7A1C91A4AF7F40EF804@dealogicserver.DEALogic.nl>
Hello.
Nico Coesel wrote:
> Ralf,
> Funny you ask because I tried this yesterday on a AU1100 system with the
> 2.6.24 kernel (from kernel.org). I'm afraid I must say the kernel
> crashes when I enable power management. The reason I want to use power
> management is because I need to send the CPU to sleep when the system
> shuts down. I hacked power.c and reset.c a bit so au_sleep() is called
> when the system is shut down. Perhaps someone can confirm the
> powermanagement can be made to work with some fixes (it didn't work with
> 2.6.21-rc4 either).
BTW, if you look at sleeper.S you'll find that save_and_sleep() trashes
registers $1 and $2 because of reusing their stackframe slots to save Status
and Context CP0 registers:
sw $1, PT_R1(sp)
sw $2, PT_R2(sp)
mfc0 k0, CP0_STATUS
sw k0, 0x20(sp) # equals PT_R2
mfc0 k0, CP0_CONTEXT
sw k0, 0x1c(sp) # equals PT_R1
> Nico Coesel
WBR, Sergei
next prev parent reply other threads:[~2008-03-13 16:43 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-13 16:16 FW: Alchemy power managment code Nico Coesel
2008-03-13 16:16 ` Nico Coesel
2008-03-13 16:45 ` Sergei Shtylyov [this message]
2008-03-24 14:23 ` Sergei Shtylyov
2008-03-24 14:31 ` Sergei Shtylyov
2008-03-27 22:31 ` Ralf Baechle
2008-03-28 11:36 ` Sergei Shtylyov
2008-03-28 13:32 ` Ralf Baechle
2008-03-28 14:25 ` Atsushi Nemoto
2008-03-28 15:14 ` Sergei Shtylyov
2008-03-26 16:31 ` FW: " Sergei Shtylyov
2008-03-27 22:32 ` Ralf Baechle
2008-03-28 11:39 ` Sergei Shtylyov
-- strict thread matches above, loose matches on Subject: below --
2008-03-27 13:46 Nico Coesel
2008-03-27 13:46 ` Nico Coesel
2008-03-27 16:41 ` Sergei Shtylyov
2008-03-27 22:33 ` Ralf Baechle
2008-03-28 8:21 Nico Coesel
2008-03-28 8:21 ` Nico Coesel
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=47D95A16.7090708@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=linux-mips@linux-mips.org \
--cc=ncoesel@DEALogic.nl \
/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