Implementing PowerManagment for a ppc target
Hi,
I'm trying to implement Deep Sleep support for a ppc platform based on 5200 and I have some questions :
- How should I "integrate" it to linux, what the proper way ? I've been trying #defining CONFIG_PM and using the set_pm_ops operation but my call backs never get called
when doing a echo standby > /sys/power/state
It justs says :
$ echo standby > /sys/power/state
Stopping tasks: ===
stopping tasks failed (2 tasks remaining) Restarting tasks...<6> Strange, init not stopped Strange, sh not stopped
done
Stopping tasks: ===
stopping tasks failed (2 tasks remaining) Restarting tasks...<6> Strange, init not stopped Strange, sh not stopped
done
I've been trying to look at Documentation/ and the sources but still I'm not sure ...
- How can I ensure that one of my function runs out of I Cache ? Some pieces of assembler needs to not acces memory when the last 'orders' are sent. Does just keeping it
small and aligned enough ?
Thanks,
Sylvain Munaut
Quoted 10 lines · Sylvain Munaut
Hi,
I'm trying to implement Deep Sleep support for a ppc platform based on 5200 and I have some questions :
- How should I "integrate" it to linux, what the proper way ? I've been
trying #definingCONFIG_PMand
using theset_pm_opsoperation but my call backs never get called
when doing a echo standby >/sys/power/state
Quoted 7 lines
It justs says :
$ echo standby > /sys/power/stateStopping tasks:
===
Looks like a kernel thread isn't properly stopping ... note that on pmac, I don't call that PM core, I do my own salad which does not involve stopping tasks...
Quoted 21 lines
stopping tasks failed (2 tasks
remaining)
Restarting tasks...<6> Strange, init not
stopped
Strange, sh not
stoppeddone
Stopping tasks:
===stopping tasks failed (2 tasks
remaining)
Restarting tasks...<6> Strange, init not
stopped
Strange, sh not
stoppeddone
Quoted 8 lines
I've been trying to look at
Documentation/and the sources but still I'm not sure ...- How can I ensure that one of my function runs out of I Cache ? Some
pieces of assembler needs to not
acces memory when the last 'orders' are sent. Does just keeping it
small and aligned enough ?
Can you explain more precisely why and what are your precise requirements ? (You can catch me on irc eventually)
Quoted 8 lines
Thanks,
Sylvain Munaut
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev
Signature · 1 line
Benjamin Herrenschmidt <[email protected]>
Quoted 11 lines · Sylvain Munaut
I'm trying to implement Deep Sleep support for a ppc platform based on 5200 and I have some questions :
- How should I "integrate" it to linux, what the proper way ? I've
been trying #definingCONFIG_PMand
using theset_pm_opsoperation but my call backs never get called
when doing a echo standby >/sys/power/state
[...]
I've been trying to look atDocumentation/and the sources but still I'm not sure ...
Quoted 4 lines
- How can I ensure that one of my function runs out of I Cache ? Some pieces of assembler needs to not
acces memory when the last 'orders' are sent. Does just keeping it
small and aligned enough ?
You can see an example of the icache code in the linuxppc-2.4 tree, arch/ppc/platforms/ibm405lp_pmasm.S, after "_GLOBAL(ibm405lp_pm_command)". (You probably won't need to save and restore all CPU state though; that was needed because the 405LP was *really* powered down, not just paused.)
You can also see how that code is triggered from ibm405lp_pm.c . I don't think that's integrated with any laptop-style sleep work that's been done in the past 1.5 years, but it works with /proc/sys/sleep anyways (see Documentation/powerpc/405LP-sleep.txt).
-Hollis