* [PATCH 1/1] OMAP3: PM: Fix compilation issue of omap3_pm_init_opp_table
@ 2010-01-19 11:57 Eduardo Valentin
2010-01-19 12:01 ` Nishanth Menon
0 siblings, 1 reply; 14+ messages in thread
From: Eduardo Valentin @ 2010-01-19 11:57 UTC (permalink / raw)
To: ext Nishanth Menon, ext Kevin Hilman; +Cc: Linux-OMAP, Eduardo Valentin
From: Eduardo Valentin <eduardo.valentin@nokia.com>
This patch removes the compilation error when compiling
kernel with CONFIG_PM=N. The problem was that omap3_pm_init_opp_table
was not defined if CONFIG_PM=N.
Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
---
arch/arm/mach-omap2/pm.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h
index d257225..5fc056f 100644
--- a/arch/arm/mach-omap2/pm.h
+++ b/arch/arm/mach-omap2/pm.h
@@ -69,7 +69,13 @@ static inline void omap3_pm_init_vc(struct prm_setup_vc *setup_vc)
* Initialize the basic opp table here, board files could choose to modify opp
* table after the basic initialization
*/
+#ifdef CONFIG_PM
extern void omap3_pm_init_opp_table(void);
+#else
+static inline void omap3_pm_init_opp_table(void)
+{
+}
+#endif
extern int omap3_pm_get_suspend_state(struct powerdomain *pwrdm);
extern int omap3_pm_set_suspend_state(struct powerdomain *pwrdm, int state);
--
1.6.5.7.g9ecb2
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH 1/1] OMAP3: PM: Fix compilation issue of omap3_pm_init_opp_table
2010-01-19 11:57 [PATCH 1/1] OMAP3: PM: Fix compilation issue of omap3_pm_init_opp_table Eduardo Valentin
@ 2010-01-19 12:01 ` Nishanth Menon
2010-01-19 13:49 ` Eduardo Valentin
0 siblings, 1 reply; 14+ messages in thread
From: Nishanth Menon @ 2010-01-19 12:01 UTC (permalink / raw)
To: Eduardo Valentin; +Cc: ext Kevin Hilman, Linux-OMAP
Eduardo Valentin said the following on 01/19/2010 05:57 AM:
> From: Eduardo Valentin <eduardo.valentin@nokia.com>
>
> This patch removes the compilation error when compiling
> kernel with CONFIG_PM=N. The problem was that omap3_pm_init_opp_table
> was not defined if CONFIG_PM=N.
>
> Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
> ---
> arch/arm/mach-omap2/pm.h | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h
> index d257225..5fc056f 100644
> --- a/arch/arm/mach-omap2/pm.h
> +++ b/arch/arm/mach-omap2/pm.h
> @@ -69,7 +69,13 @@ static inline void omap3_pm_init_vc(struct prm_setup_vc *setup_vc)
> * Initialize the basic opp table here, board files could choose to modify opp
> * table after the basic initialization
> */
> +#ifdef CONFIG_PM
> extern void omap3_pm_init_opp_table(void);
> +#else
> +static inline void omap3_pm_init_opp_table(void)
> +{
> +}
> +#endif
>
> extern int omap3_pm_get_suspend_state(struct powerdomain *pwrdm);
> extern int omap3_pm_set_suspend_state(struct powerdomain *pwrdm, int state);
>
Err... NAK.. I think you missed
http://marc.info/?t=126356119700001&r=1&w=2 ?
there seems to be an issue else where, I have not dug at it yet..
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH 1/1] OMAP3: PM: Fix compilation issue of omap3_pm_init_opp_table
2010-01-19 12:01 ` Nishanth Menon
@ 2010-01-19 13:49 ` Eduardo Valentin
2010-01-19 14:09 ` Romit Dasgupta
0 siblings, 1 reply; 14+ messages in thread
From: Eduardo Valentin @ 2010-01-19 13:49 UTC (permalink / raw)
To: ext Nishanth Menon
Cc: Valentin Eduardo (Nokia-D/Helsinki), ext Kevin Hilman, Linux-OMAP
On Tue, Jan 19, 2010 at 01:01:32PM +0100, ext Nishanth Menon wrote:
> Eduardo Valentin said the following on 01/19/2010 05:57 AM:
> > From: Eduardo Valentin <eduardo.valentin@nokia.com>
> >
> > This patch removes the compilation error when compiling
> > kernel with CONFIG_PM=N. The problem was that omap3_pm_init_opp_table
> > was not defined if CONFIG_PM=N.
> >
> > Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
> > ---
> > arch/arm/mach-omap2/pm.h | 6 ++++++
> > 1 files changed, 6 insertions(+), 0 deletions(-)
> >
> > diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h
> > index d257225..5fc056f 100644
> > --- a/arch/arm/mach-omap2/pm.h
> > +++ b/arch/arm/mach-omap2/pm.h
> > @@ -69,7 +69,13 @@ static inline void omap3_pm_init_vc(struct prm_setup_vc *setup_vc)
> > * Initialize the basic opp table here, board files could choose to modify opp
> > * table after the basic initialization
> > */
> > +#ifdef CONFIG_PM
> > extern void omap3_pm_init_opp_table(void);
> > +#else
> > +static inline void omap3_pm_init_opp_table(void)
> > +{
> > +}
> > +#endif
> >
> > extern int omap3_pm_get_suspend_state(struct powerdomain *pwrdm);
> > extern int omap3_pm_set_suspend_state(struct powerdomain *pwrdm, int state);
> >
> Err... NAK.. I think you missed
> http://marc.info/?t=126356119700001&r=1&w=2 ?
> there seems to be an issue else where, I have not dug at it yet..
Yeah. OK, I couldn't see the logs as the dumps has been removed already from that thread.
But if I got the problem correctly, the problem is when CONFIG_PM is not set but cpu freq is.
And if there is any call to new omap opp layer helper functions, then it will BUG the system.
Causing hangs.
I guess one way to solve this is to bind compilation of omap opp layer to CONFIG_PM and CONFIG_CPU_FREQ.
If either is disabled, then omap opp layer must be nops.
What do you think?
I am sending a patch to do the above.
> Regards,
> Nishanth Menon
--
Eduardo Valentin
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH 1/1] OMAP3: PM: Fix compilation issue of omap3_pm_init_opp_table
2010-01-19 13:49 ` Eduardo Valentin
@ 2010-01-19 14:09 ` Romit Dasgupta
2010-01-19 14:32 ` Nishanth Menon
0 siblings, 1 reply; 14+ messages in thread
From: Romit Dasgupta @ 2010-01-19 14:09 UTC (permalink / raw)
To: eduardo.valentin@nokia.com
Cc: ext Nishanth Menon, ext Kevin Hilman, Linux-OMAP
>>>
>> Err... NAK.. I think you missed
>> http://marc.info/?t=126356119700001&r=1&w=2 ?
>> there seems to be an issue else where, I have not dug at it yet..
>
>
> Yeah. OK, I couldn't see the logs as the dumps has been removed already from that thread.
> But if I got the problem correctly, the problem is when CONFIG_PM is not set but cpu freq is.
> And if there is any call to new omap opp layer helper functions, then it will BUG the system.
> Causing hangs.
>
> I guess one way to solve this is to bind compilation of omap opp layer to CONFIG_PM and CONFIG_CPU_FREQ.
> If either is disabled, then omap opp layer must be nops.
>
> What do you think?
>
> I am sending a patch to do the above.
No. That is incorrect. CONFIG_CPU_FREQ, CONFIG_CPU_IDLE and CONFIG_PM are
independent. None of the features should be dependent on the other two!
-Romit
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 1/1] OMAP3: PM: Fix compilation issue of omap3_pm_init_opp_table
2010-01-19 14:09 ` Romit Dasgupta
@ 2010-01-19 14:32 ` Nishanth Menon
2010-01-19 14:41 ` Romit Dasgupta
0 siblings, 1 reply; 14+ messages in thread
From: Nishanth Menon @ 2010-01-19 14:32 UTC (permalink / raw)
To: Romit Dasgupta
Cc: eduardo.valentin@nokia.com, ext Nishanth Menon, ext Kevin Hilman,
Linux-OMAP
Romit Dasgupta had written, on 01/19/2010 08:09 AM, the following:
>>>>
>>> Err... NAK.. I think you missed
>>> http://marc.info/?t=126356119700001&r=1&w=2 ?
>>> there seems to be an issue else where, I have not dug at it yet..
>>
>> Yeah. OK, I couldn't see the logs as the dumps has been removed already from that thread.
>> But if I got the problem correctly, the problem is when CONFIG_PM is not set but cpu freq is.
>> And if there is any call to new omap opp layer helper functions, then it will BUG the system.
>> Causing hangs.
>>
>> I guess one way to solve this is to bind compilation of omap opp layer to CONFIG_PM and CONFIG_CPU_FREQ.
>> If either is disabled, then omap opp layer must be nops.
>>
>> What do you think?
>>
>> I am sending a patch to do the above.
> No. That is incorrect. CONFIG_CPU_FREQ, CONFIG_CPU_IDLE and CONFIG_PM are
> independent. None of the features should be dependent on the other two!
> -Romit
OPP layer is required by CPU_FREQ & CONFIG_PM, not CPU_IDLE.
if we modify Eduardo's patch from:
if defined(CONFIG_PM) && defined(CONFIG_CPU_FREQ)
To
if defined(CONFIG_PM) || defined(CONFIG_CPU_FREQ)
wont that ensure the independence is maintained for OPP layer? then,
probably pm34xx.c maynot be the right place for opp registration for
3430 opps, and we should move it to opp34xx.c(I hate having new files :( )..
--
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 1/1] OMAP3: PM: Fix compilation issue of omap3_pm_init_opp_table
2010-01-19 14:32 ` Nishanth Menon
@ 2010-01-19 14:41 ` Romit Dasgupta
2010-01-19 14:42 ` Nishanth Menon
0 siblings, 1 reply; 14+ messages in thread
From: Romit Dasgupta @ 2010-01-19 14:41 UTC (permalink / raw)
To: Menon, Nishanth
Cc: eduardo.valentin@nokia.com, ext Nishanth Menon, ext Kevin Hilman,
Linux-OMAP
Menon, Nishanth wrote:
> Romit Dasgupta had written, on 01/19/2010 08:09 AM, the following:
>>>>>
>>>> Err... NAK.. I think you missed
>>>> http://marc.info/?t=126356119700001&r=1&w=2 ?
>>>> there seems to be an issue else where, I have not dug at it yet..
>>> Yeah. OK, I couldn't see the logs as the dumps has been removed already from that thread.
>>> But if I got the problem correctly, the problem is when CONFIG_PM is not set but cpu freq is.
>>> And if there is any call to new omap opp layer helper functions, then it will BUG the system.
>>> Causing hangs.
>>>
>>> I guess one way to solve this is to bind compilation of omap opp layer to CONFIG_PM and CONFIG_CPU_FREQ.
>>> If either is disabled, then omap opp layer must be nops.
>>>
>>> What do you think?
>>>
>>> I am sending a patch to do the above.
>> No. That is incorrect. CONFIG_CPU_FREQ, CONFIG_CPU_IDLE and CONFIG_PM are
>> independent. None of the features should be dependent on the other two!
>> -Romit
> OPP layer is required by CPU_FREQ & CONFIG_PM, not CPU_IDLE.
>
> if we modify Eduardo's patch from:
>
> if defined(CONFIG_PM) && defined(CONFIG_CPU_FREQ)
> To
>
> if defined(CONFIG_PM) || defined(CONFIG_CPU_FREQ)
>
> wont that ensure the independence is maintained for OPP layer? then,
> probably pm34xx.c maynot be the right place for opp registration for
> 3430 opps, and we should move it to opp34xx.c(I hate having new files :( )..
>
It should be only
#ifdef CONFIG_CPU_FREQ. OPP has nothing to do with CONFIG_PM.
Why do you need CPU_FREQ for suspend/resume??
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 1/1] OMAP3: PM: Fix compilation issue of omap3_pm_init_opp_table
2010-01-19 14:41 ` Romit Dasgupta
@ 2010-01-19 14:42 ` Nishanth Menon
2010-01-19 14:43 ` Romit Dasgupta
0 siblings, 1 reply; 14+ messages in thread
From: Nishanth Menon @ 2010-01-19 14:42 UTC (permalink / raw)
To: Dasgupta, Romit
Cc: eduardo.valentin@nokia.com, ext Nishanth Menon, ext Kevin Hilman,
Linux-OMAP
Dasgupta, Romit had written, on 01/19/2010 08:41 AM, the following:
> Menon, Nishanth wrote:
>> Romit Dasgupta had written, on 01/19/2010 08:09 AM, the following:
>>>>>>
>>>>> Err... NAK.. I think you missed
>>>>> http://marc.info/?t=126356119700001&r=1&w=2 ?
>>>>> there seems to be an issue else where, I have not dug at it yet..
>>>> Yeah. OK, I couldn't see the logs as the dumps has been removed already from that thread.
>>>> But if I got the problem correctly, the problem is when CONFIG_PM is not set but cpu freq is.
>>>> And if there is any call to new omap opp layer helper functions, then it will BUG the system.
>>>> Causing hangs.
>>>>
>>>> I guess one way to solve this is to bind compilation of omap opp layer to CONFIG_PM and CONFIG_CPU_FREQ.
>>>> If either is disabled, then omap opp layer must be nops.
>>>>
>>>> What do you think?
>>>>
>>>> I am sending a patch to do the above.
>>> No. That is incorrect. CONFIG_CPU_FREQ, CONFIG_CPU_IDLE and CONFIG_PM are
>>> independent. None of the features should be dependent on the other two!
>>> -Romit
>> OPP layer is required by CPU_FREQ & CONFIG_PM, not CPU_IDLE.
>>
>> if we modify Eduardo's patch from:
>>
>> if defined(CONFIG_PM) && defined(CONFIG_CPU_FREQ)
>> To
>>
>> if defined(CONFIG_PM) || defined(CONFIG_CPU_FREQ)
>>
>> wont that ensure the independence is maintained for OPP layer? then,
>> probably pm34xx.c maynot be the right place for opp registration for
>> 3430 opps, and we should move it to opp34xx.c(I hate having new files :( )..
>>
> It should be only
> #ifdef CONFIG_CPU_FREQ. OPP has nothing to do with CONFIG_PM.
>
> Why do you need CPU_FREQ for suspend/resume??
>
voltage control - SR needs to query for voltage?
--
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 1/1] OMAP3: PM: Fix compilation issue of omap3_pm_init_opp_table
2010-01-19 14:42 ` Nishanth Menon
@ 2010-01-19 14:43 ` Romit Dasgupta
2010-01-19 14:45 ` Nishanth Menon
0 siblings, 1 reply; 14+ messages in thread
From: Romit Dasgupta @ 2010-01-19 14:43 UTC (permalink / raw)
To: Menon, Nishanth
Cc: eduardo.valentin@nokia.com, ext Nishanth Menon, ext Kevin Hilman,
Linux-OMAP
>> 3430 opps, and we should move it to opp34xx.c(I hate having new files :( )..
>>>
>> It should be only
>> #ifdef CONFIG_CPU_FREQ. OPP has nothing to do with CONFIG_PM.
>>
>> Why do you need CPU_FREQ for suspend/resume??
>>
> voltage control - SR needs to query for voltage?
>
Why should suspend/resume be dependent on SR?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 1/1] OMAP3: PM: Fix compilation issue of omap3_pm_init_opp_table
2010-01-19 14:43 ` Romit Dasgupta
@ 2010-01-19 14:45 ` Nishanth Menon
2010-01-19 14:50 ` Romit Dasgupta
0 siblings, 1 reply; 14+ messages in thread
From: Nishanth Menon @ 2010-01-19 14:45 UTC (permalink / raw)
To: Dasgupta, Romit
Cc: eduardo.valentin@nokia.com, ext Nishanth Menon, ext Kevin Hilman,
Linux-OMAP
Dasgupta, Romit had written, on 01/19/2010 08:43 AM, the following:
>>> 3430 opps, and we should move it to opp34xx.c(I hate having new files :( )..
>>> It should be only
>>> #ifdef CONFIG_CPU_FREQ. OPP has nothing to do with CONFIG_PM.
>>>
>>> Why do you need CPU_FREQ for suspend/resume??
>>>
>> voltage control - SR needs to query for voltage?
>>
> Why should suspend/resume be dependent on SR?
please see the code logic -> when SR is enabled and OFF/RET happens, you
need the voltage for the current frequency so that you can disable SR,
set the nominal voltage for the current OPP then go to WFI.
--
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 1/1] OMAP3: PM: Fix compilation issue of omap3_pm_init_opp_table
2010-01-19 14:45 ` Nishanth Menon
@ 2010-01-19 14:50 ` Romit Dasgupta
2010-01-19 15:15 ` Nishanth Menon
2010-01-19 15:35 ` Cousson, Benoit
0 siblings, 2 replies; 14+ messages in thread
From: Romit Dasgupta @ 2010-01-19 14:50 UTC (permalink / raw)
To: Menon, Nishanth
Cc: eduardo.valentin@nokia.com, ext Nishanth Menon, ext Kevin Hilman,
Linux-OMAP
Menon, Nishanth wrote:
> Dasgupta, Romit had written, on 01/19/2010 08:43 AM, the following:
>>>> 3430 opps, and we should move it to opp34xx.c(I hate having new files :( )..
>>>> It should be only
>>>> #ifdef CONFIG_CPU_FREQ. OPP has nothing to do with CONFIG_PM.
>>>>
>>>> Why do you need CPU_FREQ for suspend/resume??
>>>>
>>> voltage control - SR needs to query for voltage?
>>>
>> Why should suspend/resume be dependent on SR?
> please see the code logic -> when SR is enabled and OFF/RET happens, you
> need the voltage for the current frequency so that you can disable SR,
> set the nominal voltage for the current OPP then go to WFI.
>
You do not need the OPP table for querying voltage alone. You can read that from
the OMAP chip registers directly. So OPP layer is not necessary when we do not
use cpufreq!
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 1/1] OMAP3: PM: Fix compilation issue of omap3_pm_init_opp_table
2010-01-19 14:50 ` Romit Dasgupta
@ 2010-01-19 15:15 ` Nishanth Menon
2010-01-19 17:02 ` Dasgupta, Romit
2010-01-19 15:35 ` Cousson, Benoit
1 sibling, 1 reply; 14+ messages in thread
From: Nishanth Menon @ 2010-01-19 15:15 UTC (permalink / raw)
To: Dasgupta, Romit
Cc: eduardo.valentin@nokia.com, ext Nishanth Menon, ext Kevin Hilman,
Linux-OMAP
Dasgupta, Romit had written, on 01/19/2010 08:50 AM, the following:
> Menon, Nishanth wrote:
>> Dasgupta, Romit had written, on 01/19/2010 08:43 AM, the following:
>>>>> 3430 opps, and we should move it to opp34xx.c(I hate having new files :( )..
>>>>> It should be only
>>>>> #ifdef CONFIG_CPU_FREQ. OPP has nothing to do with CONFIG_PM.
>>>>>
>>>>> Why do you need CPU_FREQ for suspend/resume??
>>>>>
>>>> voltage control - SR needs to query for voltage?
>>>>
>>> Why should suspend/resume be dependent on SR?
>> please see the code logic -> when SR is enabled and OFF/RET happens, you
>> need the voltage for the current frequency so that you can disable SR,
>> set the nominal voltage for the current OPP then go to WFI.
>>
> You do not need the OPP table for querying voltage alone. You can read that from
> the OMAP chip registers directly. So OPP layer is not necessary when we do not
> use cpufreq!
there are multiple ways to use SR -> Not all of them can use OMAP chip
registers. certain class of devices would need to use PMICs, further SRF
or it's equivalent will need to query the table for knowing what voltage
corresponds to frequency, DSPBRidge needs to report to the baseimage
what voltage corresponds to the frequency for the baseimage's load
balancing/power decision logic etc.. in short when dynamic voltage
scaling is needed, we need OPP layer a.k.a CONFIG_PM needs opp layer -
not just cpufreq.
--
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [PATCH 1/1] OMAP3: PM: Fix compilation issue of omap3_pm_init_opp_table
2010-01-19 15:15 ` Nishanth Menon
@ 2010-01-19 17:02 ` Dasgupta, Romit
0 siblings, 0 replies; 14+ messages in thread
From: Dasgupta, Romit @ 2010-01-19 17:02 UTC (permalink / raw)
To: Menon, Nishanth
Cc: eduardo.valentin@nokia.com, ext Nishanth Menon, ext Kevin Hilman,
Linux-OMAP
________________________________________
>there are multiple ways to use SR -> Not all of them can use OMAP chip
>registers. certain class of devices would need to use PMICs,
Even then you do not need OPP layer. For PMIC based solutions you need
to use I2C to get the voltage. So this should be abstracted. OPP layer is just for
CPU FREQ.
> further SRF
>or it's equivalent will need to query the table for knowing what voltage
>corresponds to frequency,
Why should you know the voltage for a frequency other than your current
frequency when you do not scale the frequency of your CPU? Clock framework
will give you the current freq. For voltage, we already discussed above.
>DSPBRidge needs to report to the baseimage
>what voltage corresponds to the frequency for the baseimage's load
>balancing/power decision logic etc.. in short when dynamic voltage
>scaling is needed, we need OPP layer a.k.a CONFIG_PM needs opp layer -
>not just cpufreq.
Please understand CONFIG_PM is not for any kind of __cpufreq or dspfreq__.
It is for suspend resume and few other stuff. So why should CONFIG_PM need
OPP layer?
--
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [PATCH 1/1] OMAP3: PM: Fix compilation issue of omap3_pm_init_opp_table
2010-01-19 14:50 ` Romit Dasgupta
2010-01-19 15:15 ` Nishanth Menon
@ 2010-01-19 15:35 ` Cousson, Benoit
2010-01-19 17:00 ` Dasgupta, Romit
1 sibling, 1 reply; 14+ messages in thread
From: Cousson, Benoit @ 2010-01-19 15:35 UTC (permalink / raw)
To: Dasgupta, Romit, Menon, Nishanth
Cc: eduardo.valentin@nokia.com, ext Nishanth Menon, ext Kevin Hilman,
Linux-OMAP
Hi Romit,
>From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-
>
>Menon, Nishanth wrote:
>> Dasgupta, Romit had written, on 01/19/2010 08:43 AM, the following:
>>>>> 3430 opps, and we should move it to opp34xx.c(I hate having new
>files :( )..
>>>>> It should be only
>>>>> #ifdef CONFIG_CPU_FREQ. OPP has nothing to do with CONFIG_PM.
>>>>>
>>>>> Why do you need CPU_FREQ for suspend/resume??
>>>>>
>>>> voltage control - SR needs to query for voltage?
>>>>
>>> Why should suspend/resume be dependent on SR?
>> please see the code logic -> when SR is enabled and OFF/RET happens, you
>> need the voltage for the current frequency so that you can disable SR,
>> set the nominal voltage for the current OPP then go to WFI.
>>
>You do not need the OPP table for querying voltage alone. You can read that
>from the OMAP chip registers directly. So OPP layer is not necessary when
>we do not use cpufreq!
I do agree that we should not need CPUfreq, but cannot use the voltage from the VP either; you need to set the nominal voltage to be safe not the one after SR correction.
Eventually it will have to be handled by the SR layer.
Regards,
Benoit
Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [PATCH 1/1] OMAP3: PM: Fix compilation issue of omap3_pm_init_opp_table
2010-01-19 15:35 ` Cousson, Benoit
@ 2010-01-19 17:00 ` Dasgupta, Romit
0 siblings, 0 replies; 14+ messages in thread
From: Dasgupta, Romit @ 2010-01-19 17:00 UTC (permalink / raw)
To: Cousson, Benoit, Menon, Nishanth
Cc: eduardo.valentin@nokia.com, ext Nishanth Menon, ext Kevin Hilman,
Linux-OMAP
Hello Benoit,
>>You do not need the OPP table for querying voltage alone. You can read that
>>from the OMAP chip registers directly. So OPP layer is not necessary when
>>we do not use cpufreq!
>I do agree that we should not need CPUfreq, but cannot use the voltage from the VP either; you need to set >the nominal voltage to be safe not the one after SR correction.
>Eventually it will have to be handled by the SR layer.
Yes it can be handled by SR layer but this does not need one to query OPP. All you need is to know current freq and voltage. This can and should be done without taking help of OPP layer (when CONFIG_CPU_FREQ is absent).
Thanks,
-Romit
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2010-01-19 17:07 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-19 11:57 [PATCH 1/1] OMAP3: PM: Fix compilation issue of omap3_pm_init_opp_table Eduardo Valentin
2010-01-19 12:01 ` Nishanth Menon
2010-01-19 13:49 ` Eduardo Valentin
2010-01-19 14:09 ` Romit Dasgupta
2010-01-19 14:32 ` Nishanth Menon
2010-01-19 14:41 ` Romit Dasgupta
2010-01-19 14:42 ` Nishanth Menon
2010-01-19 14:43 ` Romit Dasgupta
2010-01-19 14:45 ` Nishanth Menon
2010-01-19 14:50 ` Romit Dasgupta
2010-01-19 15:15 ` Nishanth Menon
2010-01-19 17:02 ` Dasgupta, Romit
2010-01-19 15:35 ` Cousson, Benoit
2010-01-19 17:00 ` Dasgupta, Romit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox