* Re: [PATCH 3/7] ARM: shmobile: Disable DVS support for r8a7790
2014-05-29 7:49 [PATCH 3/7] ARM: shmobile: Disable DVS support for r8a7790 Gaku Inami
@ 2014-05-29 16:00 ` Sergei Shtylyov
2014-05-30 2:23 ` Gaku Inami
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Sergei Shtylyov @ 2014-05-29 16:00 UTC (permalink / raw)
To: linux-sh
Hello.
On 05/29/2014 11:49 AM, Gaku Inami wrote:
> Since range of VDD is narrow, there is no effect of power consumption
> by DVS. So, DVS is disabled in R-CAR Gen2 series.
> Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com>
> ---
> arch/arm/boot/dts/r8a7790-lager.dts | 4 ----
> 1 file changed, 4 deletions(-)
> diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
> index ab73ed0..9becef7 100644
> --- a/arch/arm/boot/dts/r8a7790-lager.dts
> +++ b/arch/arm/boot/dts/r8a7790-lager.dts
> @@ -317,7 +317,3 @@
> cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
> status = "okay";
> };
> -
> -&cpu0 {
> - cpu0-supply = <&vdd_dvfs>;
> -};
Why enable it in the first place (patch #1)?
WBR, Sergei
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH 3/7] ARM: shmobile: Disable DVS support for r8a7790
2014-05-29 7:49 [PATCH 3/7] ARM: shmobile: Disable DVS support for r8a7790 Gaku Inami
2014-05-29 16:00 ` Sergei Shtylyov
@ 2014-05-30 2:23 ` Gaku Inami
2014-05-30 9:58 ` Geert Uytterhoeven
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Gaku Inami @ 2014-05-30 2:23 UTC (permalink / raw)
To: linux-sh
Hi Sergei
>> diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
>> index ab73ed0..9becef7 100644
>> --- a/arch/arm/boot/dts/r8a7790-lager.dts
>> +++ b/arch/arm/boot/dts/r8a7790-lager.dts
>> @@ -317,7 +317,3 @@
>> cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
>> status = "okay";
>> };
>> -
>> -&cpu0 {
>> - cpu0-supply = <&vdd_dvfs>;
>> -};
> Why enable it in the first place (patch #1)?
>
patch #1 is created by Benoit. At the first, I thought better to
create a separate patch without changing his code. After that,
I understand that this method was wrong.
I will re-post by changing the patch #1. (disable DVS)
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH 3/7] ARM: shmobile: Disable DVS support for r8a7790
2014-05-29 7:49 [PATCH 3/7] ARM: shmobile: Disable DVS support for r8a7790 Gaku Inami
2014-05-29 16:00 ` Sergei Shtylyov
2014-05-30 2:23 ` Gaku Inami
@ 2014-05-30 9:58 ` Geert Uytterhoeven
2014-06-02 3:14 ` Gaku Inami
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2014-05-30 9:58 UTC (permalink / raw)
To: linux-sh
(CC Benoit)
On Thu, May 29, 2014 at 9:49 AM, Gaku Inami
<gaku.inami.xw@bp.renesas.com> wrote:
> Since range of VDD is narrow, there is no effect of power consumption
> by DVS. So, DVS is disabled in R-CAR Gen2 series.
>
> Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com>
> ---
> arch/arm/boot/dts/r8a7790-lager.dts | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
> index ab73ed0..9becef7 100644
> --- a/arch/arm/boot/dts/r8a7790-lager.dts
> +++ b/arch/arm/boot/dts/r8a7790-lager.dts
> @@ -317,7 +317,3 @@
> cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
> status = "okay";
> };
> -
> -&cpu0 {
> - cpu0-supply = <&vdd_dvfs>;
> -};
The role of the DT is to describe the hardware.
Not using DVS because the effect of power consumption is low or non-existent
is a software policy.
So perhaps it should be kept?
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] 7+ messages in thread* Re: [PATCH 3/7] ARM: shmobile: Disable DVS support for r8a7790
2014-05-29 7:49 [PATCH 3/7] ARM: shmobile: Disable DVS support for r8a7790 Gaku Inami
` (2 preceding siblings ...)
2014-05-30 9:58 ` Geert Uytterhoeven
@ 2014-06-02 3:14 ` Gaku Inami
2014-06-02 7:11 ` Benoit Cousson
2014-06-02 8:58 ` Gaku Inami
5 siblings, 0 replies; 7+ messages in thread
From: Gaku Inami @ 2014-06-02 3:14 UTC (permalink / raw)
To: linux-sh
Hi Geert
Thank you for your feedback.
> The role of the DT is to describe the hardware.
> Not using DVS because the effect of power consumption is low or non-existent
> is a software policy.
>
> So perhaps it should be kept?
I understand what you mean. I will keep the setting of VDD into DT,
and consider to disable DVS in a different way.
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH 3/7] ARM: shmobile: Disable DVS support for r8a7790
2014-05-29 7:49 [PATCH 3/7] ARM: shmobile: Disable DVS support for r8a7790 Gaku Inami
` (3 preceding siblings ...)
2014-06-02 3:14 ` Gaku Inami
@ 2014-06-02 7:11 ` Benoit Cousson
2014-06-02 8:58 ` Gaku Inami
5 siblings, 0 replies; 7+ messages in thread
From: Benoit Cousson @ 2014-06-02 7:11 UTC (permalink / raw)
To: linux-sh
Hi,
On 02/06/2014 05:14, Gaku Inami wrote:
> Hi Geert
>
> Thank you for your feedback.
>
>> The role of the DT is to describe the hardware.
>> Not using DVS because the effect of power consumption is low or non-existent
>> is a software policy.
>>
>> So perhaps it should be kept?
>
> I understand what you mean. I will keep the setting of VDD into DT,
> and consider to disable DVS in a different way.
>
Indeed, the line "cpu0-supply = <&vdd_dvfs>;" does just provide the name
of the power rail that supply the ca15 cluster.
The postfix _dvfs is a little bit misleading in this case, I do agree.
If you do no want voltage scaling, it is just a matter of keeping the
same voltage in the OPP table. This is what I have done in the series I
sent a while back.
That being said, what is the exact voltage range supported by the CPU?
AFAIR, with 28nm process some SoCs are able to scale down to 0.9v.
Thanks,
Benoit
--
Benoît Cousson
BayLibre
Embedded Linux Technology Lab
www.baylibre.com
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH 3/7] ARM: shmobile: Disable DVS support for r8a7790
2014-05-29 7:49 [PATCH 3/7] ARM: shmobile: Disable DVS support for r8a7790 Gaku Inami
` (4 preceding siblings ...)
2014-06-02 7:11 ` Benoit Cousson
@ 2014-06-02 8:58 ` Gaku Inami
5 siblings, 0 replies; 7+ messages in thread
From: Gaku Inami @ 2014-06-02 8:58 UTC (permalink / raw)
To: linux-sh
Hi Benoit
Thank you for your feedback.
> Indeed, the line "cpu0-supply = <&vdd_dvfs>;" does just provide the name of the power rail that supply the ca15 cluster.
>
> The postfix _dvfs is a little bit misleading in this case, I do agree.
>
> If you do no want voltage scaling, it is just a matter of keeping the same voltage in the OPP table. This is what I have done in the series I sent a while back.
>
When I tested, the voltage scaling is not disabled with only
voltage setting of OPP table. The regulator side(da9210) must
also be set to the same voltage.
(When voltage scaling is activated, the environment will be unstable.)
I will post the fixed patch later.
> That being said, what is the exact voltage range supported by the CPU?
> AFAIR, with 28nm process some SoCs are able to scale down to 0.9v.
>
I do not have this information.
^ permalink raw reply [flat|nested] 7+ messages in thread