sh: SuperH Mobile R-Standby Prototype
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | sh: Restore all INTC registers on resumedrivers/ | +25 | 0 replies | |
| 2/7 | sh: Use RSMEM for sh7724 sleep modesarch/ | +9 | 0 replies | |
| 3/7 | sh: Add save/restore sleep code for MMU/cachearch/ arch/ arch/ | +152 | 0 replies | |
| 4/7 | sh: Use immediate data for sh7724 DBSCarch/ | +11 | 0 replies | |
| 5/7 | sh: Add save/restore sleep code for BSC/DBSCarch/ arch/ | +215 | 0 replies | |
| 6/7 | sh: Add R-Standby supportarch/ arch/ | +68 | 0 replies | |
| 7/7 | sh: R-Standby CMT timer resume order workaroundarch/ | +1 | 0 replies |
Reviews trailers per patch
None of the 7 patches has a Reviewed-by or Acked-by.
| Patch | Magnus Damm |
|---|---|
| Series | Far-from-Signed-off-by |
| 1/7 | Not-Signed-off-by |
| 2/7 | Not-Signed-off-by |
| 3/7 | Not-Signed-off-by |
| 4/7 | |
| 5/7 | Not-Signed-off-by |
| 6/7 | Not-Signed-off-by |
| 7/7 | Not-Signed-off-by |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/07] sh: SuperH Mobile R-Standby Prototype
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.
---
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(-)