Skip to contentSkip to conversation

ARM: shmobile: Suspend on non-SMP for r8a7790/r8a7791

PATCH In review Magnus Damm 3 participants 3 messages Jun 6, 2014 – Jun 11, 2014 SuperH

lore
Share & tools
lore
#0 lore raw

v2 cover ARM: shmobile: Suspend on non-SMP for r8a7790/r8a7791

ARM: shmobile: Suspend on non-SMP for r8a7790/r8a7791 (V2)

[PATCH v2 01/07] ARM: shmobile: Allow use of boot code for non-SMP case [PATCH v2 02/07] ARM: shmobile: Adjust APMU code to build for non-SMP [PATCH v2 03/07] ARM: shmobile: Use __init for APMU suspend init function [PATCH v2 04/07] ARM: shmobile: Move r8a7790 reset code to pm-r8a7790.c [PATCH v2 05/07] ARM: shmobile: Allow r8a7790 to build non-SMP APMU code [PATCH v2 06/07] ARM: shmobile: Move r8a7791 reset code to pm-r8a7791.c [PATCH v2 07/07] ARM: shmobile: Allow r8a7791 to build non-SMP APMU code

These patches update mach-shmobile and r8a7790/r8a7791 to allow build of early boot code and APMU power management code in case of CONFIG_SMP=n.

The reason for this change is to allow use of Suspend-to-RAM for recent SoCs like R-Car Gen2 with simplified kernel configuration such as when SMP is disabled. Power management code like CPUFreq, CPUIdle and Suspend-to-RAM should work regardless of what kind of CONFIG_SMP setting the user decides.

---

Written on top of renesas-devel-v3.15-rc8-20140605v3

Changes since V1:
- Dropped V1 patch 6, 7, 8 - needs more discussions how to tie in UP case
- Moved V1 patch 5 to V2 patch 3
- Added r8a7791 code at end of series

 arch/arm/mach-shmobile/Makefile       |   21 ++++++++++------
 arch/arm/mach-shmobile/headsmp.S      |   13 ++++++----
 arch/arm/mach-shmobile/platsmp-apmu.c |   13 ++++++----
 arch/arm/mach-shmobile/pm-r8a7790.c   |   41 +++++++++++++++++++++++++++++++--
 arch/arm/mach-shmobile/pm-r8a7791.c   |   29 +++++++++++++++++++++--
 arch/arm/mach-shmobile/smp-r8a7790.c  |   31 ------------------------
 arch/arm/mach-shmobile/smp-r8a7791.c  |   25 --------------------
 7 files changed, 95 insertions(+), 78 deletions(-)
#1 lore raw
Quoted 13 lines · Magnus Damm

ARM: shmobile: Suspend on non-SMP for r8a7790/r8a7791 (V2)

[PATCH v2 01/07] ARM: shmobile: Allow use of boot code for non-SMP case [PATCH v2 02/07] ARM: shmobile: Adjust APMU code to build for non-SMP [PATCH v2 03/07] ARM: shmobile: Use __init for APMU suspend init function [PATCH v2 04/07] ARM: shmobile: Move r8a7790 reset code to pm-r8a7790.c [PATCH v2 05/07] ARM: shmobile: Allow r8a7790 to build non-SMP APMU code [PATCH v2 06/07] ARM: shmobile: Move r8a7791 reset code to pm-r8a7791.c [PATCH v2 07/07] ARM: shmobile: Allow r8a7791 to build non-SMP APMU code

These patches update mach-shmobile and r8a7790/r8a7791 to allow build of early boot code and APMU power management code in case of CONFIG_SMP=n.

Quoted 7 lines

The reason for this change is to allow use of Suspend-to-RAM for recent SoCs like R-Car Gen2 with simplified kernel configuration such as when SMP is disabled. Power management code like CPUFreq, CPUIdle and Suspend-to-RAM should work regardless of what kind of CONFIG_SMP setting the user decides.

Hi Magnus,

could you let me know what the status of this series is?

Quoted 22 lines

---

Written on top of renesas-devel-v3.15-rc8-20140605v3

Changes since V1:
- Dropped V1 patch 6, 7, 8 - needs more discussions how to tie in UP case
- Moved V1 patch 5 to V2 patch 3
- Added r8a7791 code at end of series

 arch/arm/mach-shmobile/Makefile       |   21 ++++++++++------
 arch/arm/mach-shmobile/headsmp.S      |   13 ++++++----
 arch/arm/mach-shmobile/platsmp-apmu.c |   13 ++++++----
 arch/arm/mach-shmobile/pm-r8a7790.c   |   41 +++++++++++++++++++++++++++++++--
 arch/arm/mach-shmobile/pm-r8a7791.c   |   29 +++++++++++++++++++++--
 arch/arm/mach-shmobile/smp-r8a7790.c  |   31 ------------------------
 arch/arm/mach-shmobile/smp-r8a7791.c  |   25 --------------------
 7 files changed, 95 insertions(+), 78 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Tested-by on the v2 series
#2 lore raw
In reply to Magnus Damm

Hi Magnus

I tested these patches. Test result is below:

[Test environment]
-lager / koelsch
-tag:renesas-devel-v3.15-rc8-20140605v3

[Test command]
Suspend to RAM command
#echo enabled > /sys/class/tty/ttySC6/power/wakeup #echo mem > /sys/power/state

[Test results]
-lager(SMP) :OK
-lager(non-SMP) :OK
-koelsch(SMP) :OK
-koelsch(non-SMP) :OK

Quoted 37 lines · Magnus Damm

ARM: shmobile: Suspend on non-SMP for r8a7790/r8a7791 (V2)

[PATCH v2 01/07] ARM: shmobile: Allow use of boot code for non-SMP case [PATCH v2 02/07] ARM: shmobile: Adjust APMU code to build for non-SMP [PATCH v2 03/07] ARM: shmobile: Use __init for APMU suspend init function [PATCH v2 04/07] ARM: shmobile: Move r8a7790 reset code to pm-r8a7790.c [PATCH v2 05/07] ARM: shmobile: Allow r8a7790 to build non-SMP APMU code [PATCH v2 06/07] ARM: shmobile: Move r8a7791 reset code to pm-r8a7791.c [PATCH v2 07/07] ARM: shmobile: Allow r8a7791 to build non-SMP APMU code

These patches update mach-shmobile and r8a7790/r8a7791 to allow build of early boot code and APMU power management code in case of CONFIG_SMP=n.

The reason for this change is to allow use of Suspend-to-RAM for recent SoCs like R-Car Gen2 with simplified kernel configuration such as when SMP is disabled. Power management code like CPUFreq, CPUIdle and Suspend-to-RAM should work regardless of what kind of CONFIG_SMP setting the user decides.

---

Written on top of renesas-devel-v3.15-rc8-20140605v3

Changes since V1:
- Dropped V1 patch 6, 7, 8 - needs more discussions how to tie in UP case
- Moved V1 patch 5 to V2 patch 3
- Added r8a7791 code at end of series

 arch/arm/mach-shmobile/Makefile       |   21 ++++++++++------
 arch/arm/mach-shmobile/headsmp.S      |   13 ++++++----
 arch/arm/mach-shmobile/platsmp-apmu.c |   13 ++++++----
 arch/arm/mach-shmobile/pm-r8a7790.c   |   41 +++++++++++++++++++++++++++++++--
 arch/arm/mach-shmobile/pm-r8a7791.c   |   29 +++++++++++++++++++++--
 arch/arm/mach-shmobile/smp-r8a7790.c  |   31 ------------------------
 arch/arm/mach-shmobile/smp-r8a7791.c  |   25 --------------------
 7 files changed, 95 insertions(+), 78 deletions(-)