* Re: [PATCH RFC 0/7] ARM: shmobile: Support L2 shutdown mode in Suspend-to-RAM
2014-09-26 2:39 [PATCH RFC 0/7] ARM: shmobile: Support L2 shutdown mode in Suspend-to-RAM Khiem Nguyen
@ 2014-09-26 10:04 ` Geert Uytterhoeven
2014-09-26 10:20 ` Khiem Nguyen
2014-09-26 11:12 ` Khiem Nguyen
2 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2014-09-26 10:04 UTC (permalink / raw)
To: linux-sh
Hi Khiem-san,
On Fri, Sep 26, 2014 at 4:39 AM, Khiem Nguyen
<khiem.nguyen.xt@renesas.com> wrote:
> These patches implement L2 shutdown mode in RCar Gen2 SoC and change
> Suspend-to-RAM from Core Standby mode to L2 shutdown mode.
> The impact to CPUIdle operation was also put into consideration during
> implementation.
>
> I have confirmed Suspend-to-RAM in Lager board and Koelsch board.
> So far, there is no regression detected during my testing.
> There might be further patches to support Alt board. But it would be
> after upstream kernel can boot up in Alt board.
>
> I hope to receive some comments for this patch series whether it's
> right direction or not. Therefore, I marked it with RFC.
> Any comments are appreciated.
While testing with various combinations of CONFIG_PM options, I noticed
the build fails if CONFIG_ARM_CPU_SUSPEND is not set:
arch/arm/mach-shmobile/built-in.o: In function
`shmobile_smp_apmu_enter_cpuidle':
:(.text+0x27c): undefined reference to `cpu_suspend'
arch/arm/mach-shmobile/built-in.o: In function `shmobile_cpuidle_notifier_call':
:(.text+0x305c): undefined reference to `cpu_resume'
arch/arm/mach-shmobile/built-in.o: In function `shmobile_smp_apmu_prepare_cpus':
:(.init.text+0xddc): undefined reference to `cpu_resume'
arch/arm/mach-shmobile/built-in.o: In function `shmobile_cpuidle_init':
:(.init.text+0xe9c): undefined reference to `cpu_resume'
make[3]: *** [vmlinux] Error 1
make[2]: *** [sub-make] Error 2
make[1]: *** [__sub-make] Error 2
make: *** [all] Error 2
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH RFC 0/7] ARM: shmobile: Support L2 shutdown mode in Suspend-to-RAM
2014-09-26 2:39 [PATCH RFC 0/7] ARM: shmobile: Support L2 shutdown mode in Suspend-to-RAM Khiem Nguyen
2014-09-26 10:04 ` Geert Uytterhoeven
@ 2014-09-26 10:20 ` Khiem Nguyen
2014-09-26 11:12 ` Khiem Nguyen
2 siblings, 0 replies; 4+ messages in thread
From: Khiem Nguyen @ 2014-09-26 10:20 UTC (permalink / raw)
To: linux-sh
Hi Geert-san,
On 9/26/2014 7:04 PM, Geert Uytterhoeven wrote:
> Hi Khiem-san,
>
> On Fri, Sep 26, 2014 at 4:39 AM, Khiem Nguyen
> <khiem.nguyen.xt@renesas.com> wrote:
>> These patches implement L2 shutdown mode in RCar Gen2 SoC and change
>> Suspend-to-RAM from Core Standby mode to L2 shutdown mode.
>> The impact to CPUIdle operation was also put into consideration during
>> implementation.
>>
>> I have confirmed Suspend-to-RAM in Lager board and Koelsch board.
>> So far, there is no regression detected during my testing.
>> There might be further patches to support Alt board. But it would be
>> after upstream kernel can boot up in Alt board.
>>
>> I hope to receive some comments for this patch series whether it's
>> right direction or not. Therefore, I marked it with RFC.
>> Any comments are appreciated.
>
> While testing with various combinations of CONFIG_PM options, I noticed
> the build fails if CONFIG_ARM_CPU_SUSPEND is not set:
>
> arch/arm/mach-shmobile/built-in.o: In function
> `shmobile_smp_apmu_enter_cpuidle':
> :(.text+0x27c): undefined reference to `cpu_suspend'
> arch/arm/mach-shmobile/built-in.o: In function `shmobile_cpuidle_notifier_call':
> :(.text+0x305c): undefined reference to `cpu_resume'
> arch/arm/mach-shmobile/built-in.o: In function `shmobile_smp_apmu_prepare_cpus':
> :(.init.text+0xddc): undefined reference to `cpu_resume'
> arch/arm/mach-shmobile/built-in.o: In function `shmobile_cpuidle_init':
> :(.init.text+0xe9c): undefined reference to `cpu_resume'
> make[3]: *** [vmlinux] Error 1
> make[2]: *** [sub-make] Error 2
> make[1]: *** [__sub-make] Error 2
> make: *** [all] Error 2
>
That is interesting build error.
To make it clearer and able to fix it, please kindly confirm below points:
1. This only occurred after merging my patch ?
(The part related to shmobile_cpuidle_init seems out of my scope.)
2. What kind of 'various combinations of CONFIG_PM options' were you select ?
Thanks.
> Gr{oetje,eeting}s,
>
> Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
> -- Linus Torvalds
>
--
Best regards,
KHIEM Nguyen
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH RFC 0/7] ARM: shmobile: Support L2 shutdown mode in Suspend-to-RAM
2014-09-26 2:39 [PATCH RFC 0/7] ARM: shmobile: Support L2 shutdown mode in Suspend-to-RAM Khiem Nguyen
2014-09-26 10:04 ` Geert Uytterhoeven
2014-09-26 10:20 ` Khiem Nguyen
@ 2014-09-26 11:12 ` Khiem Nguyen
2 siblings, 0 replies; 4+ messages in thread
From: Khiem Nguyen @ 2014-09-26 11:12 UTC (permalink / raw)
To: linux-sh
On 9/26/2014 7:20 PM, Khiem Nguyen wrote:
> Hi Geert-san,
>
> On 9/26/2014 7:04 PM, Geert Uytterhoeven wrote:
>> Hi Khiem-san,
>>
>> On Fri, Sep 26, 2014 at 4:39 AM, Khiem Nguyen
>> <khiem.nguyen.xt@renesas.com> wrote:
>>> These patches implement L2 shutdown mode in RCar Gen2 SoC and change
>>> Suspend-to-RAM from Core Standby mode to L2 shutdown mode.
>>> The impact to CPUIdle operation was also put into consideration during
>>> implementation.
>>>
>>> I have confirmed Suspend-to-RAM in Lager board and Koelsch board.
>>> So far, there is no regression detected during my testing.
>>> There might be further patches to support Alt board. But it would be
>>> after upstream kernel can boot up in Alt board.
>>>
>>> I hope to receive some comments for this patch series whether it's
>>> right direction or not. Therefore, I marked it with RFC.
>>> Any comments are appreciated.
>>
>> While testing with various combinations of CONFIG_PM options, I noticed
>> the build fails if CONFIG_ARM_CPU_SUSPEND is not set:
>>
>> arch/arm/mach-shmobile/built-in.o: In function
>> `shmobile_smp_apmu_enter_cpuidle':
>> :(.text+0x27c): undefined reference to `cpu_suspend'
>> arch/arm/mach-shmobile/built-in.o: In function `shmobile_cpuidle_notifier_call':
>> :(.text+0x305c): undefined reference to `cpu_resume'
>> arch/arm/mach-shmobile/built-in.o: In function `shmobile_smp_apmu_prepare_cpus':
>> :(.init.text+0xddc): undefined reference to `cpu_resume'
>> arch/arm/mach-shmobile/built-in.o: In function `shmobile_cpuidle_init':
>> :(.init.text+0xe9c): undefined reference to `cpu_resume'
>> make[3]: *** [vmlinux] Error 1
>> make[2]: *** [sub-make] Error 2
>> make[1]: *** [__sub-make] Error 2
>> make: *** [all] Error 2
>>
> That is interesting build error.
> To make it clearer and able to fix it, please kindly confirm below points:
> 1. This only occurred after merging my patch ?
> (The part related to shmobile_cpuidle_init seems out of my scope.)
> 2. What kind of 'various combinations of CONFIG_PM options' were you select ?
To answer my own questions,
1. The build error occurred /after/ merging CPUIdle patches from Kobayashi-san.
2. If CONFIG_SUSPEND is disabled (and CPUIdle patches was merged),
this build error occurred.
(CONFIG_ARM_CPU_SUSPEND has dependency on CONFIG_SUSPEND)
@Kobayashi-san,
Please take care of this build error in your V2 patches.
Thanks.
>
> Thanks.
>
>> Gr{oetje,eeting}s,
>>
>> Geert
>>
>> --
>> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
>>
>> In personal conversations with technical people, I call myself a hacker. But
>> when I'm talking to journalists I just say "programmer" or something like that.
>> -- Linus Torvalds
>>
>
--
Best regards,
KHIEM Nguyen
^ permalink raw reply [flat|nested] 4+ messages in thread