All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/07] sh: SuperH Mobile R-Standby Prototype
@ 2009-10-14 10:18 Magnus Damm
  0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2009-10-14 10:18 UTC (permalink / raw)
  To: linux-sh

sh: SuperH Mobile R-Standby Prototype

[PATCH 01/07] sh: Restore all INTC registers on resume
[PATCH 02/07] sh: Use RSMEM for sh7724 sleep modes
[PATCH 03/07] sh: Add save/restore sleep code for MMU/cache
[PATCH 04/07] sh: Use immediate data for sh7724 DBSC
[PATCH 05/07] sh: Add save/restore sleep code for BSC/DBSC
[PATCH 06/07] sh: Add R-Standby support
[PATCH 07/07] sh: R-Standby CMT timer resume order workaround 

These patches implement experimental R-standby support for sh7724.

Use CONFIG_SUSPEND together with "echo mem > /sys/power/state"
to test this feature on a kfr2r09 board.

R-Standby suspend and resume on other boards with sh7724 and Mobile
DDR2-SDRAM may work as well, but the self-refresh resume code most
likely needs more attention. Boards with sh7724 and DDR2-SDRAM
(non-Mobile DDR2-SDRAM) are not supported at this point. Also,
only CS0 memory area settings are kept during R-standby, so make
sure to minimize your kernel config if you want to try this out.

On top of all that, there is an issue with the suspend code. This
code today assumes that timer drivers are sysdev devices. This is
not true on SuperH so [PATCH 07/07] simply disables clocksource
support to avoid a read-before-resume clocksource crash on resume.

The code is far from pretty and quite a bit of future glue code
is needed to mix processor-specific stuff with board-specific
configuration.

Far-from-Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/sh/include/asm/suspend.h          |    2 
 arch/sh/kernel/cpu/sh4a/setup-sh7724.c |    2 
 arch/sh/kernel/cpu/shmobile/pm.c       |   30 +-
 arch/sh/kernel/cpu/shmobile/sleep.S    |  460 ++++++++++++++++++++++++++++++--
 drivers/sh/intc.c                      |   25 +
 5 files changed, 481 insertions(+), 38 deletions(-)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-10-14 10:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-14 10:18 [PATCH 00/07] sh: SuperH Mobile R-Standby Prototype Magnus Damm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.