* FW: Alchemy power managment code.
@ 2008-03-13 16:16 Nico Coesel
2008-03-13 16:16 ` Nico Coesel
` (3 more replies)
0 siblings, 4 replies; 17+ messages in thread
From: Nico Coesel @ 2008-03-13 16:16 UTC (permalink / raw)
To: linux-mips
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).
The CPU frequency switching stuff isn't very usefull since it is
possible to derive various pheripheral frequencies from it. For
instance, on our board the LCD frequency is derived from the CPU
frequency. The auxilary frequency cannot by divided to provide the
refreshrate we need. So changing the CPU frequency would 'break' our LCD
display.
Nico Coesel
> -----Oorspronkelijk bericht-----
> Van: linux-mips-bounce@linux-mips.org
> [mailto:linux-mips-bounce@linux-mips.org] Namens Ralf Baechle
> Verzonden: donderdag 13 maart 2008 14:56
> Aan: linux-mips@linux-mips.org
> Onderwerp: Alchemy power managment code.
>
> The Alchemy code in arch/mips/au1000/common/power.c is one of the last
> remaining users of pm_send_all() which happens to be a nop call
> because nothing registers callbacks with pm_register. So the
> pm_send_all() calls can be removed.
>
> Which leaves pm_do_suspend with no sensible code, so it can be
> removed.
> And ripped like this pm_do_sleep looks it it may well no longer be
> functioning.
>
> So, anybody still using that stuff, does it provide any useful
> functionality? Does the CPU frequency stuff actually work?
>
> Ralf
>
> PS: You should hear the engine of my chainsaw warming up ...
>
>
^ permalink raw reply [flat|nested] 17+ messages in thread
* FW: Alchemy power managment code.
2008-03-13 16:16 Nico Coesel
@ 2008-03-13 16:16 ` Nico Coesel
2008-03-13 16:45 ` Sergei Shtylyov
` (2 subsequent siblings)
3 siblings, 0 replies; 17+ messages in thread
From: Nico Coesel @ 2008-03-13 16:16 UTC (permalink / raw)
To: linux-mips
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).
The CPU frequency switching stuff isn't very usefull since it is
possible to derive various pheripheral frequencies from it. For
instance, on our board the LCD frequency is derived from the CPU
frequency. The auxilary frequency cannot by divided to provide the
refreshrate we need. So changing the CPU frequency would 'break' our LCD
display.
Nico Coesel
> -----Oorspronkelijk bericht-----
> Van: linux-mips-bounce@linux-mips.org
> [mailto:linux-mips-bounce@linux-mips.org] Namens Ralf Baechle
> Verzonden: donderdag 13 maart 2008 14:56
> Aan: linux-mips@linux-mips.org
> Onderwerp: Alchemy power managment code.
>
> The Alchemy code in arch/mips/au1000/common/power.c is one of the last
> remaining users of pm_send_all() which happens to be a nop call
> because nothing registers callbacks with pm_register. So the
> pm_send_all() calls can be removed.
>
> Which leaves pm_do_suspend with no sensible code, so it can be
> removed.
> And ripped like this pm_do_sleep looks it it may well no longer be
> functioning.
>
> So, anybody still using that stuff, does it provide any useful
> functionality? Does the CPU frequency stuff actually work?
>
> Ralf
>
> PS: You should hear the engine of my chainsaw warming up ...
>
>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: FW: Alchemy power managment code.
2008-03-13 16:16 Nico Coesel
2008-03-13 16:16 ` Nico Coesel
@ 2008-03-13 16:45 ` Sergei Shtylyov
2008-03-24 14:23 ` Sergei Shtylyov
2008-03-26 16:31 ` Sergei Shtylyov
3 siblings, 0 replies; 17+ messages in thread
From: Sergei Shtylyov @ 2008-03-13 16:45 UTC (permalink / raw)
To: Nico Coesel; +Cc: linux-mips
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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: FW: Alchemy power managment code.
2008-03-13 16:16 Nico Coesel
2008-03-13 16:16 ` Nico Coesel
2008-03-13 16:45 ` Sergei Shtylyov
@ 2008-03-24 14:23 ` Sergei Shtylyov
2008-03-24 14:31 ` Sergei Shtylyov
2008-03-26 16:31 ` Sergei Shtylyov
3 siblings, 1 reply; 17+ messages in thread
From: Sergei Shtylyov @ 2008-03-24 14:23 UTC (permalink / raw)
To: Nico Coesel; +Cc: linux-mips
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).
The TOY cpunter 0 clockevent driver is also need to be written for the
recent kernel as CP0 timer stops ticking after wait insn is executed -- see
arch/mips/au1000/common/time.c...
WBR, Sergei
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: FW: Alchemy power managment code.
2008-03-24 14:23 ` Sergei Shtylyov
@ 2008-03-24 14:31 ` Sergei Shtylyov
2008-03-27 22:31 ` Ralf Baechle
0 siblings, 1 reply; 17+ messages in thread
From: Sergei Shtylyov @ 2008-03-24 14:31 UTC (permalink / raw)
To: linux-mips; +Cc: Nico Coesel
I just wrote:
> The TOY cpunter 0 clockevent driver is also need to be written for
> the recent kernel as CP0 timer stops ticking after wait insn is executed
> -- see arch/mips/au1000/common/time.c...
And here's found another possible issue with Alchemy PM -- the CP0 counter
counts at unpredictable frequency in idle state (after executing "wait"), so
the MIPS clocksource will probably be unstable?
WBR, Sergei
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: FW: Alchemy power managment code.
2008-03-13 16:16 Nico Coesel
` (2 preceding siblings ...)
2008-03-24 14:23 ` Sergei Shtylyov
@ 2008-03-26 16:31 ` Sergei Shtylyov
2008-03-27 22:32 ` Ralf Baechle
3 siblings, 1 reply; 17+ messages in thread
From: Sergei Shtylyov @ 2008-03-26 16:31 UTC (permalink / raw)
To: Nico Coesel; +Cc: linux-mips
Hello all.
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, for anybody interested in Alchemy PM code, here's the interesting
link: [ftp|http]://ftp.enneenne.com/pub/misc/au1100-patches/linux/.
It contains a lot of unmerged PM patches by Rodolfo Giometti (and not
only that) from around 2.6.17 time.
> Nico Coesel
WBR, Sergei
^ permalink raw reply [flat|nested] 17+ messages in thread
* RE: FW: Alchemy power managment code.
@ 2008-03-27 13:46 Nico Coesel
2008-03-27 13:46 ` Nico Coesel
` (2 more replies)
0 siblings, 3 replies; 17+ messages in thread
From: Nico Coesel @ 2008-03-27 13:46 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: linux-mips
> -----Oorspronkelijk bericht-----
> Van: Sergei Shtylyov [mailto:sshtylyov@ru.mvista.com]
> Verzonden: woensdag 26 maart 2008 17:32
> Aan: Nico Coesel
> CC: linux-mips@linux-mips.org
> Onderwerp: Re: FW: Alchemy power managment code.
>
> Hello all.
>
> 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, for anybody interested in Alchemy PM code, here's
> the interesting
> link: [ftp|http]://ftp.enneenne.com/pub/misc/au1100-patches/linux/.
> It contains a lot of unmerged PM patches by Rodolfo
> Giometti (and not only that) from around 2.6.17 time.
>
Sergei,
Is there a reason why these patches didn't make it into the official
kernel? IIRC Rodolfo has been quite active on this mailing list.
Nico Coesel
^ permalink raw reply [flat|nested] 17+ messages in thread
* RE: FW: Alchemy power managment code.
2008-03-27 13:46 FW: Alchemy power managment code Nico Coesel
@ 2008-03-27 13:46 ` Nico Coesel
2008-03-27 16:41 ` Sergei Shtylyov
2008-03-27 22:33 ` Ralf Baechle
2 siblings, 0 replies; 17+ messages in thread
From: Nico Coesel @ 2008-03-27 13:46 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: linux-mips
> -----Oorspronkelijk bericht-----
> Van: Sergei Shtylyov [mailto:sshtylyov@ru.mvista.com]
> Verzonden: woensdag 26 maart 2008 17:32
> Aan: Nico Coesel
> CC: linux-mips@linux-mips.org
> Onderwerp: Re: FW: Alchemy power managment code.
>
> Hello all.
>
> 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, for anybody interested in Alchemy PM code, here's
> the interesting
> link: [ftp|http]://ftp.enneenne.com/pub/misc/au1100-patches/linux/.
> It contains a lot of unmerged PM patches by Rodolfo
> Giometti (and not only that) from around 2.6.17 time.
>
Sergei,
Is there a reason why these patches didn't make it into the official
kernel? IIRC Rodolfo has been quite active on this mailing list.
Nico Coesel
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: FW: Alchemy power managment code.
2008-03-27 13:46 FW: Alchemy power managment code Nico Coesel
2008-03-27 13:46 ` Nico Coesel
@ 2008-03-27 16:41 ` Sergei Shtylyov
2008-03-27 22:33 ` Ralf Baechle
2 siblings, 0 replies; 17+ messages in thread
From: Sergei Shtylyov @ 2008-03-27 16:41 UTC (permalink / raw)
To: Nico Coesel; +Cc: linux-mips
Nico Coesel wrote:
>> BTW, for anybody interested in Alchemy PM code, here's
>>the interesting
>>link: [ftp|http]://ftp.enneenne.com/pub/misc/au1100-patches/linux/.
>> It contains a lot of unmerged PM patches by Rodolfo
>>Giometti (and not only that) from around 2.6.17 time.
> Sergei,
> Is there a reason why these patches didn't make it into the official
> kernel? IIRC Rodolfo has been quite active on this mailing list.
Keywords are "on this mailing list" -- most of his patches were for other
mailing lists (e.g. he did much to support PM in the peripheral drivers but
never pushed that stuff to the respective maintainers AFAIK). He just wasn't
consistent about the upstream submission.
> Nico Coesel
WBR, Sergei
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: FW: Alchemy power managment code.
2008-03-24 14:31 ` Sergei Shtylyov
@ 2008-03-27 22:31 ` Ralf Baechle
2008-03-28 11:36 ` Sergei Shtylyov
0 siblings, 1 reply; 17+ messages in thread
From: Ralf Baechle @ 2008-03-27 22:31 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: linux-mips, Nico Coesel
On Mon, Mar 24, 2008 at 05:31:39PM +0300, Sergei Shtylyov wrote:
> > The TOY cpunter 0 clockevent driver is also need to be written for
>> the recent kernel as CP0 timer stops ticking after wait insn is executed
>> -- see arch/mips/au1000/common/time.c...
>
> And here's found another possible issue with Alchemy PM -- the CP0
> counter counts at unpredictable frequency in idle state (after executing
> "wait"), so the MIPS clocksource will probably be unstable?
Correct - and cevt-r4k won't be usable either. I guess that means you
leave the user the choice between either these two or using wait. Not
nice but ...
Ralf
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: FW: Alchemy power managment code.
2008-03-26 16:31 ` Sergei Shtylyov
@ 2008-03-27 22:32 ` Ralf Baechle
2008-03-28 11:39 ` Sergei Shtylyov
0 siblings, 1 reply; 17+ messages in thread
From: Ralf Baechle @ 2008-03-27 22:32 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: Nico Coesel, linux-mips
On Wed, Mar 26, 2008 at 07:31:55PM +0300, Sergei Shtylyov wrote:
>> 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, for anybody interested in Alchemy PM code, here's the interesting
> link: [ftp|http]://ftp.enneenne.com/pub/misc/au1100-patches/linux/.
> It contains a lot of unmerged PM patches by Rodolfo Giometti (and not
> only that) from around 2.6.17 time.
Anybody interested in reviewing these patches and polishing them to be
applied to a recent kernel?
Ralf
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: FW: Alchemy power managment code.
2008-03-27 13:46 FW: Alchemy power managment code Nico Coesel
2008-03-27 13:46 ` Nico Coesel
2008-03-27 16:41 ` Sergei Shtylyov
@ 2008-03-27 22:33 ` Ralf Baechle
2 siblings, 0 replies; 17+ messages in thread
From: Ralf Baechle @ 2008-03-27 22:33 UTC (permalink / raw)
To: Nico Coesel; +Cc: Sergei Shtylyov, linux-mips
On Thu, Mar 27, 2008 at 02:46:50PM +0100, Nico Coesel wrote:
> > BTW, for anybody interested in Alchemy PM code, here's
> > the interesting
> > link: [ftp|http]://ftp.enneenne.com/pub/misc/au1100-patches/linux/.
> > It contains a lot of unmerged PM patches by Rodolfo
> > Giometti (and not only that) from around 2.6.17 time.
> >
>
> Sergei,
> Is there a reason why these patches didn't make it into the official
> kernel? IIRC Rodolfo has been quite active on this mailing list.
At times it simply takes nagging me :)
Ralf
^ permalink raw reply [flat|nested] 17+ messages in thread
* RE: FW: Alchemy power managment code.
@ 2008-03-28 8:21 Nico Coesel
2008-03-28 8:21 ` Nico Coesel
0 siblings, 1 reply; 17+ messages in thread
From: Nico Coesel @ 2008-03-28 8:21 UTC (permalink / raw)
To: Ralf Baechle, Sergei Shtylyov; +Cc: linux-mips
> -----Oorspronkelijk bericht-----
> Van: Ralf Baechle [mailto:ralf@linux-mips.org]
> Verzonden: donderdag 27 maart 2008 23:33
> Aan: Sergei Shtylyov
> CC: Nico Coesel; linux-mips@linux-mips.org
> Onderwerp: Re: FW: Alchemy power managment code.
>
> On Wed, Mar 26, 2008 at 07:31:55PM +0300, Sergei Shtylyov wrote:
>
> >> 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, for anybody interested in Alchemy PM code, here's the
> > interesting
> > link: [ftp|http]://ftp.enneenne.com/pub/misc/au1100-patches/linux/.
> > It contains a lot of unmerged PM patches by Rodolfo
> Giometti (and
> > not only that) from around 2.6.17 time.
>
> Anybody interested in reviewing these patches and polishing
> them to be applied to a recent kernel?
>
> Ralf
I guess I will have to, but it will probably be somewhere near the end
of April. Also, I'm leaning towards only fixing the TOY timer during
sleep so the clock keeps running. IMHO this should be standard behaviour
which does not depend on power management.
Are diffs against 2.6.24 any good to you guys? The timer stuff Sergei
seems to be working on right now also sounds interesting. Perhaps I'll
patch my kernel with the timer patches from Sergei and apply (some of)
Rodolfo's patches afterwards. I assume there will be quite some overlap
in these patches.
Nico Coesel
^ permalink raw reply [flat|nested] 17+ messages in thread
* RE: FW: Alchemy power managment code.
2008-03-28 8:21 Nico Coesel
@ 2008-03-28 8:21 ` Nico Coesel
0 siblings, 0 replies; 17+ messages in thread
From: Nico Coesel @ 2008-03-28 8:21 UTC (permalink / raw)
To: Ralf Baechle, Sergei Shtylyov; +Cc: linux-mips
> -----Oorspronkelijk bericht-----
> Van: Ralf Baechle [mailto:ralf@linux-mips.org]
> Verzonden: donderdag 27 maart 2008 23:33
> Aan: Sergei Shtylyov
> CC: Nico Coesel; linux-mips@linux-mips.org
> Onderwerp: Re: FW: Alchemy power managment code.
>
> On Wed, Mar 26, 2008 at 07:31:55PM +0300, Sergei Shtylyov wrote:
>
> >> 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, for anybody interested in Alchemy PM code, here's the
> > interesting
> > link: [ftp|http]://ftp.enneenne.com/pub/misc/au1100-patches/linux/.
> > It contains a lot of unmerged PM patches by Rodolfo
> Giometti (and
> > not only that) from around 2.6.17 time.
>
> Anybody interested in reviewing these patches and polishing
> them to be applied to a recent kernel?
>
> Ralf
I guess I will have to, but it will probably be somewhere near the end
of April. Also, I'm leaning towards only fixing the TOY timer during
sleep so the clock keeps running. IMHO this should be standard behaviour
which does not depend on power management.
Are diffs against 2.6.24 any good to you guys? The timer stuff Sergei
seems to be working on right now also sounds interesting. Perhaps I'll
patch my kernel with the timer patches from Sergei and apply (some of)
Rodolfo's patches afterwards. I assume there will be quite some overlap
in these patches.
Nico Coesel
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: FW: Alchemy power managment code.
2008-03-27 22:31 ` Ralf Baechle
@ 2008-03-28 11:36 ` Sergei Shtylyov
2008-03-28 13:32 ` Ralf Baechle
0 siblings, 1 reply; 17+ messages in thread
From: Sergei Shtylyov @ 2008-03-28 11:36 UTC (permalink / raw)
To: Ralf Baechle; +Cc: linux-mips, Nico Coesel
Hello.
Ralf Baechle wrote:
>> > The TOY cpunter 0 clockevent driver is also need to be written for
>>>the recent kernel as CP0 timer stops ticking after wait insn is executed
>>>-- see arch/mips/au1000/common/time.c...
>> And here's found another possible issue with Alchemy PM -- the CP0
>>counter counts at unpredictable frequency in idle state (after executing
>>"wait"), so the MIPS clocksource will probably be unstable?
> Correct - and cevt-r4k won't be usable either. I guess that means you
> leave the user the choice between either these two or using wait. Not
> nice but ...
The Alchemy code doesn't even try to use CP0 counter when CONFIG_PM=y if
you look into arch/mips/au1000/common/time.c... or at least it didn't before
Atsushi removed do_fast_pm_gettimeoffset().
> Ralf
WBR, Sergei
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: FW: Alchemy power managment code.
2008-03-27 22:32 ` Ralf Baechle
@ 2008-03-28 11:39 ` Sergei Shtylyov
0 siblings, 0 replies; 17+ messages in thread
From: Sergei Shtylyov @ 2008-03-28 11:39 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Nico Coesel, linux-mips
Ralf Baechle wrote:
>>>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, for anybody interested in Alchemy PM code, here's the interesting
>>link: [ftp|http]://ftp.enneenne.com/pub/misc/au1100-patches/linux/.
>> It contains a lot of unmerged PM patches by Rodolfo Giometti (and not
>>only that) from around 2.6.17 time.
> Anybody interested in reviewing these patches and polishing them to be
> applied to a recent kernel?
I am, at least to some extent. But I'm not sure I'll have enough time from
now on. Should have started earlier...
> Ralf
WBR, Sergei
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: FW: Alchemy power managment code.
2008-03-28 11:36 ` Sergei Shtylyov
@ 2008-03-28 13:32 ` Ralf Baechle
0 siblings, 0 replies; 17+ messages in thread
From: Ralf Baechle @ 2008-03-28 13:32 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: linux-mips, Nico Coesel
On Fri, Mar 28, 2008 at 02:36:08PM +0300, Sergei Shtylyov wrote:
> The Alchemy code doesn't even try to use CP0 counter when CONFIG_PM=y if
> you look into arch/mips/au1000/common/time.c... or at least it didn't
> before Atsushi removed do_fast_pm_gettimeoffset().
That decission is now done by the generic time.c based only on the
availability of a counter and the mfc0 $count bug.
Ralf
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2008-03-28 13:32 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-27 13:46 FW: Alchemy power managment code Nico Coesel
2008-03-27 13:46 ` Nico Coesel
2008-03-27 16:41 ` Sergei Shtylyov
2008-03-27 22:33 ` Ralf Baechle
-- strict thread matches above, loose matches on Subject: below --
2008-03-28 8:21 Nico Coesel
2008-03-28 8:21 ` Nico Coesel
2008-03-13 16:16 Nico Coesel
2008-03-13 16:16 ` Nico Coesel
2008-03-13 16:45 ` Sergei Shtylyov
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-26 16:31 ` Sergei Shtylyov
2008-03-27 22:32 ` Ralf Baechle
2008-03-28 11:39 ` Sergei Shtylyov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox