* [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx
@ 2014-06-25 9:10 Anson Huang
2014-06-25 9:33 ` Viresh Kumar
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Anson Huang @ 2014-06-25 9:10 UTC (permalink / raw)
To: linux-arm-kernel
Add cpufreq support for i.MX6SX, using common
i.MX6Q cpufreq driver.
Signed-off-by: Anson Huang <b20788@freescale.com>
---
arch/arm/mach-imx/mach-imx6sx.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/mach-imx/mach-imx6sx.c b/arch/arm/mach-imx/mach-imx6sx.c
index 74ff7d6..9221e1d 100644
--- a/arch/arm/mach-imx/mach-imx6sx.c
+++ b/arch/arm/mach-imx/mach-imx6sx.c
@@ -42,6 +42,9 @@ static void __init imx6sx_init_irq(void)
static void __init imx6sx_init_late(void)
{
imx6q_cpuidle_init();
+
+ if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ))
+ platform_device_register_simple("imx6q-cpufreq", -1, NULL, 0);
}
static const char *imx6sx_dt_compat[] __initconst = {
--
1.7.9.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx
2014-06-25 9:10 [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx Anson Huang
@ 2014-06-25 9:33 ` Viresh Kumar
2014-06-25 16:14 ` Shawn Guo
2014-06-26 1:23 ` Fabio Estevam
2 siblings, 0 replies; 14+ messages in thread
From: Viresh Kumar @ 2014-06-25 9:33 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Jun 25, 2014 at 2:40 PM, Anson Huang <b20788@freescale.com> wrote:
> Add cpufreq support for i.MX6SX, using common
> i.MX6Q cpufreq driver.
>
> Signed-off-by: Anson Huang <b20788@freescale.com>
> ---
> arch/arm/mach-imx/mach-imx6sx.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/arch/arm/mach-imx/mach-imx6sx.c b/arch/arm/mach-imx/mach-imx6sx.c
> index 74ff7d6..9221e1d 100644
> --- a/arch/arm/mach-imx/mach-imx6sx.c
> +++ b/arch/arm/mach-imx/mach-imx6sx.c
> @@ -42,6 +42,9 @@ static void __init imx6sx_init_irq(void)
> static void __init imx6sx_init_late(void)
> {
> imx6q_cpuidle_init();
> +
> + if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ))
> + platform_device_register_simple("imx6q-cpufreq", -1, NULL, 0);
> }
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx
2014-06-25 9:10 [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx Anson Huang
2014-06-25 9:33 ` Viresh Kumar
@ 2014-06-25 16:14 ` Shawn Guo
2014-06-26 1:23 ` Fabio Estevam
2 siblings, 0 replies; 14+ messages in thread
From: Shawn Guo @ 2014-06-25 16:14 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Jun 25, 2014 at 05:10:12PM +0800, Anson Huang wrote:
> Add cpufreq support for i.MX6SX, using common
> i.MX6Q cpufreq driver.
>
> Signed-off-by: Anson Huang <b20788@freescale.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx
2014-06-25 9:10 [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx Anson Huang
2014-06-25 9:33 ` Viresh Kumar
2014-06-25 16:14 ` Shawn Guo
@ 2014-06-26 1:23 ` Fabio Estevam
2014-06-26 1:55 ` Fabio Estevam
` (2 more replies)
2 siblings, 3 replies; 14+ messages in thread
From: Fabio Estevam @ 2014-06-26 1:23 UTC (permalink / raw)
To: linux-arm-kernel
Hi Anson,
On Wed, Jun 25, 2014 at 6:10 AM, Anson Huang <b20788@freescale.com> wrote:
> Add cpufreq support for i.MX6SX, using common
> i.MX6Q cpufreq driver.
>
> Signed-off-by: Anson Huang <b20788@freescale.com>
> ---
> arch/arm/mach-imx/mach-imx6sx.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/arch/arm/mach-imx/mach-imx6sx.c b/arch/arm/mach-imx/mach-imx6sx.c
> index 74ff7d6..9221e1d 100644
> --- a/arch/arm/mach-imx/mach-imx6sx.c
> +++ b/arch/arm/mach-imx/mach-imx6sx.c
> @@ -42,6 +42,9 @@ static void __init imx6sx_init_irq(void)
> static void __init imx6sx_init_late(void)
> {
> imx6q_cpuidle_init();
> +
> + if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ))
> + platform_device_register_simple("imx6q-cpufreq", -1, NULL, 0);
> }
With this patch applied I get a flood of these messages:
cpu cpu0: failed to scale vddpu up: -22
cpufreq: __target_index: Failed to change cpu frequency: -22
cpu cpu0: failed to scale vddpu up: -22
cpufreq: __target_index: Failed to change cpu frequency: -22
cpu cpu0: failed to scale vddpu up: -22
cpufreq: __target_index: Failed to change cpu frequency: -22
Any suggestions?
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx
2014-06-26 1:23 ` Fabio Estevam
@ 2014-06-26 1:55 ` Fabio Estevam
2014-06-26 2:53 ` Anson.Huang at freescale.com
2014-06-26 5:54 ` Shawn Guo
2 siblings, 0 replies; 14+ messages in thread
From: Fabio Estevam @ 2014-06-26 1:55 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Jun 25, 2014 at 10:23 PM, Fabio Estevam <festevam@gmail.com> wrote:
> With this patch applied I get a flood of these messages:
>
> cpu cpu0: failed to scale vddpu up: -22
> cpufreq: __target_index: Failed to change cpu frequency: -22
> cpu cpu0: failed to scale vddpu up: -22
> cpufreq: __target_index: Failed to change cpu frequency: -22
> cpu cpu0: failed to scale vddpu up: -22
> cpufreq: __target_index: Failed to change cpu frequency: -22
>
> Any suggestions?
Ok, I managed to fix it. Will send the patch soon.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx
2014-06-26 1:23 ` Fabio Estevam
2014-06-26 1:55 ` Fabio Estevam
@ 2014-06-26 2:53 ` Anson.Huang at freescale.com
2014-06-26 3:06 ` Fabio Estevam
2014-06-26 5:54 ` Shawn Guo
2 siblings, 1 reply; 14+ messages in thread
From: Anson.Huang at freescale.com @ 2014-06-26 2:53 UTC (permalink / raw)
To: linux-arm-kernel
Hi, Fabio
I have already sent cpufreq driver patch for review which is supporting i.MX6SX, you may need to add it by yourself if you want to test it, I attached the patch, hope it helps.
Best Regards.
Anson Huang
?
Freescale Semiconductor Shanghai
Tel:021-28937058
>-----Original Message-----
>From: Fabio Estevam [mailto:festevam at gmail.com]
>Sent: Thursday, June 26, 2014 9:23 AM
>To: Huang Yongcai-B20788
>Cc: Guo Shawn-R65073; Sascha Hauer; Russell King; linux-arm-
>kernel at lists.infradead.org
>Subject: Re: [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx
>
>Hi Anson,
>
>On Wed, Jun 25, 2014 at 6:10 AM, Anson Huang <b20788@freescale.com> wrote:
>> Add cpufreq support for i.MX6SX, using common i.MX6Q cpufreq driver.
>>
>> Signed-off-by: Anson Huang <b20788@freescale.com>
>> ---
>> arch/arm/mach-imx/mach-imx6sx.c | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/arch/arm/mach-imx/mach-imx6sx.c
>> b/arch/arm/mach-imx/mach-imx6sx.c index 74ff7d6..9221e1d 100644
>> --- a/arch/arm/mach-imx/mach-imx6sx.c
>> +++ b/arch/arm/mach-imx/mach-imx6sx.c
>> @@ -42,6 +42,9 @@ static void __init imx6sx_init_irq(void) static
>> void __init imx6sx_init_late(void) {
>> imx6q_cpuidle_init();
>> +
>> + if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ))
>> + platform_device_register_simple("imx6q-cpufreq", -1,
>> + NULL, 0);
>> }
>
>With this patch applied I get a flood of these messages:
>
>cpu cpu0: failed to scale vddpu up: -22
>cpufreq: __target_index: Failed to change cpu frequency: -22 cpu cpu0: failed
>to scale vddpu up: -22
>cpufreq: __target_index: Failed to change cpu frequency: -22 cpu cpu0: failed
>to scale vddpu up: -22
>cpufreq: __target_index: Failed to change cpu frequency: -22
>
>Any suggestions?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-cpufreq-imx6-remove-pu-regulator-dependency-for-SOCs.patch
Type: application/octet-stream
Size: 3415 bytes
Desc: 0001-cpufreq-imx6-remove-pu-regulator-dependency-for-SOCs.patch
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140626/d2877930/attachment-0001.obj>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx
2014-06-26 2:53 ` Anson.Huang at freescale.com
@ 2014-06-26 3:06 ` Fabio Estevam
2014-06-26 3:11 ` Fabio Estevam
0 siblings, 1 reply; 14+ messages in thread
From: Fabio Estevam @ 2014-06-26 3:06 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Jun 25, 2014 at 11:53 PM, Anson.Huang at freescale.com
<Anson.Huang@freescale.com> wrote:
> Hi, Fabio
> I have already sent cpufreq driver patch for review which is supporting i.MX6SX, you may need to add it by yourself if you want to test it, I attached the patch, hope it helps.
Thanks. It works fine now.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx
2014-06-26 3:06 ` Fabio Estevam
@ 2014-06-26 3:11 ` Fabio Estevam
2014-06-26 3:15 ` Anson.Huang at freescale.com
2014-06-26 3:21 ` Shawn Guo
0 siblings, 2 replies; 14+ messages in thread
From: Fabio Estevam @ 2014-06-26 3:11 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Jun 26, 2014 at 12:06 AM, Fabio Estevam <festevam@gmail.com> wrote:
> On Wed, Jun 25, 2014 at 11:53 PM, Anson.Huang at freescale.com
> <Anson.Huang@freescale.com> wrote:
>> Hi, Fabio
>> I have already sent cpufreq driver patch for review which is supporting i.MX6SX, you may need to add it by yourself if you want to test it, I attached the patch, hope it helps.
>
> Thanks. It works fine now.
Forgot to mention that this error still appears:
cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx
2014-06-26 3:11 ` Fabio Estevam
@ 2014-06-26 3:15 ` Anson.Huang at freescale.com
2014-06-26 3:21 ` Fabio Estevam
2014-06-26 3:21 ` Shawn Guo
1 sibling, 1 reply; 14+ messages in thread
From: Anson.Huang at freescale.com @ 2014-06-26 3:15 UTC (permalink / raw)
To: linux-arm-kernel
Maybe it is another issue? Do you see it on other platforms? As cpufreq function did work on SX. I will try other platform soon to see whether it is a new issue.
Best Regards.
Anson Huang
?
Freescale Semiconductor Shanghai
Tel:021-28937058
>-----Original Message-----
>From: Fabio Estevam [mailto:festevam at gmail.com]
>Sent: Thursday, June 26, 2014 11:12 AM
>To: Huang Yongcai-B20788
>Cc: Guo Shawn-R65073; Sascha Hauer; Russell King; linux-arm-
>kernel at lists.infradead.org
>Subject: Re: [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx
>
>On Thu, Jun 26, 2014 at 12:06 AM, Fabio Estevam <festevam@gmail.com> wrote:
>> On Wed, Jun 25, 2014 at 11:53 PM, Anson.Huang at freescale.com
>> <Anson.Huang@freescale.com> wrote:
>>> Hi, Fabio
>>> I have already sent cpufreq driver patch for review which is
>supporting i.MX6SX, you may need to add it by yourself if you want to test it,
>I attached the patch, hope it helps.
>>
>> Thanks. It works fine now.
>
>Forgot to mention that this error still appears:
>
>cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx
2014-06-26 3:11 ` Fabio Estevam
2014-06-26 3:15 ` Anson.Huang at freescale.com
@ 2014-06-26 3:21 ` Shawn Guo
1 sibling, 0 replies; 14+ messages in thread
From: Shawn Guo @ 2014-06-26 3:21 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Jun 26, 2014 at 12:11:37AM -0300, Fabio Estevam wrote:
> On Thu, Jun 26, 2014 at 12:06 AM, Fabio Estevam <festevam@gmail.com> wrote:
> > On Wed, Jun 25, 2014 at 11:53 PM, Anson.Huang at freescale.com
> > <Anson.Huang@freescale.com> wrote:
> >> Hi, Fabio
> >> I have already sent cpufreq driver patch for review which is supporting i.MX6SX, you may need to add it by yourself if you want to test it, I attached the patch, hope it helps.
> >
> > Thanks. It works fine now.
>
> Forgot to mention that this error still appears:
>
> cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
The driver checks if platform supplies an OPP table by attempting to
call dev_pm_opp_get_opp_count() and check the return. So there is no
real issue behind this message.
Shawn
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx
2014-06-26 3:15 ` Anson.Huang at freescale.com
@ 2014-06-26 3:21 ` Fabio Estevam
0 siblings, 0 replies; 14+ messages in thread
From: Fabio Estevam @ 2014-06-26 3:21 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Jun 26, 2014 at 12:15 AM, Anson.Huang at freescale.com
<Anson.Huang@freescale.com> wrote:
> Maybe it is another issue? Do you see it on other platforms? As cpufreq function did work on SX. I will try other platform soon to see whether it is a new issue.
I see the same error message on mx6sl as well. I am running Shawn's
for-next branch.
Thanks
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx
2014-06-26 1:23 ` Fabio Estevam
2014-06-26 1:55 ` Fabio Estevam
2014-06-26 2:53 ` Anson.Huang at freescale.com
@ 2014-06-26 5:54 ` Shawn Guo
2014-06-26 7:34 ` Anson.Huang at freescale.com
2014-08-18 5:24 ` Shawn Guo
2 siblings, 2 replies; 14+ messages in thread
From: Shawn Guo @ 2014-06-26 5:54 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Jun 25, 2014 at 10:23:01PM -0300, Fabio Estevam wrote:
> Hi Anson,
>
> On Wed, Jun 25, 2014 at 6:10 AM, Anson Huang <b20788@freescale.com> wrote:
> > Add cpufreq support for i.MX6SX, using common
> > i.MX6Q cpufreq driver.
> >
> > Signed-off-by: Anson Huang <b20788@freescale.com>
> > ---
> > arch/arm/mach-imx/mach-imx6sx.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/arch/arm/mach-imx/mach-imx6sx.c b/arch/arm/mach-imx/mach-imx6sx.c
> > index 74ff7d6..9221e1d 100644
> > --- a/arch/arm/mach-imx/mach-imx6sx.c
> > +++ b/arch/arm/mach-imx/mach-imx6sx.c
> > @@ -42,6 +42,9 @@ static void __init imx6sx_init_irq(void)
> > static void __init imx6sx_init_late(void)
> > {
> > imx6q_cpuidle_init();
> > +
> > + if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ))
> > + platform_device_register_simple("imx6q-cpufreq", -1, NULL, 0);
> > }
>
> With this patch applied I get a flood of these messages:
>
> cpu cpu0: failed to scale vddpu up: -22
> cpufreq: __target_index: Failed to change cpu frequency: -22
> cpu cpu0: failed to scale vddpu up: -22
> cpufreq: __target_index: Failed to change cpu frequency: -22
> cpu cpu0: failed to scale vddpu up: -22
> cpufreq: __target_index: Failed to change cpu frequency: -22
So it's because the driver change for imx6sx hasn't been in place. I
just dropped the patch from my branch for now, and will revisit later
when driver part shows up on my branch. (Unfortunately, that will be
next cycle).
Shawn
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx
2014-06-26 5:54 ` Shawn Guo
@ 2014-06-26 7:34 ` Anson.Huang at freescale.com
2014-08-18 5:24 ` Shawn Guo
1 sibling, 0 replies; 14+ messages in thread
From: Anson.Huang at freescale.com @ 2014-06-26 7:34 UTC (permalink / raw)
To: linux-arm-kernel
Hi, Shawn
I am OK with this.
Best Regards.
Anson Huang
?
Freescale Semiconductor Shanghai
Tel:021-28937058
>-----Original Message-----
>From: Shawn Guo [mailto:shawn.guo at freescale.com]
>Sent: Thursday, June 26, 2014 1:55 PM
>To: Fabio Estevam
>Cc: Huang Yongcai-B20788; Sascha Hauer; Russell King; linux-arm-
>kernel at lists.infradead.org
>Subject: Re: [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx
>
>On Wed, Jun 25, 2014 at 10:23:01PM -0300, Fabio Estevam wrote:
>> Hi Anson,
>>
>> On Wed, Jun 25, 2014 at 6:10 AM, Anson Huang <b20788@freescale.com> wrote:
>> > Add cpufreq support for i.MX6SX, using common i.MX6Q cpufreq driver.
>> >
>> > Signed-off-by: Anson Huang <b20788@freescale.com>
>> > ---
>> > arch/arm/mach-imx/mach-imx6sx.c | 3 +++
>> > 1 file changed, 3 insertions(+)
>> >
>> > diff --git a/arch/arm/mach-imx/mach-imx6sx.c
>> > b/arch/arm/mach-imx/mach-imx6sx.c index 74ff7d6..9221e1d 100644
>> > --- a/arch/arm/mach-imx/mach-imx6sx.c
>> > +++ b/arch/arm/mach-imx/mach-imx6sx.c
>> > @@ -42,6 +42,9 @@ static void __init imx6sx_init_irq(void) static
>> > void __init imx6sx_init_late(void) {
>> > imx6q_cpuidle_init();
>> > +
>> > + if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ))
>> > + platform_device_register_simple("imx6q-cpufreq", -1,
>> > + NULL, 0);
>> > }
>>
>> With this patch applied I get a flood of these messages:
>>
>> cpu cpu0: failed to scale vddpu up: -22
>> cpufreq: __target_index: Failed to change cpu frequency: -22 cpu cpu0:
>> failed to scale vddpu up: -22
>> cpufreq: __target_index: Failed to change cpu frequency: -22 cpu cpu0:
>> failed to scale vddpu up: -22
>> cpufreq: __target_index: Failed to change cpu frequency: -22
>
>So it's because the driver change for imx6sx hasn't been in place. I just
>dropped the patch from my branch for now, and will revisit later when driver
>part shows up on my branch. (Unfortunately, that will be next cycle).
>
>Shawn
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx
2014-06-26 5:54 ` Shawn Guo
2014-06-26 7:34 ` Anson.Huang at freescale.com
@ 2014-08-18 5:24 ` Shawn Guo
1 sibling, 0 replies; 14+ messages in thread
From: Shawn Guo @ 2014-08-18 5:24 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Jun 26, 2014 at 01:54:32PM +0800, Shawn Guo wrote:
> So it's because the driver change for imx6sx hasn't been in place. I
> just dropped the patch from my branch for now, and will revisit later
> when driver part shows up on my branch. (Unfortunately, that will be
> next cycle).
The driver change is in v3.17-rc1, so I applies the dts patch.
Shawn
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2014-08-18 5:24 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-25 9:10 [PATCH V2] ARM: imx: add cpufreq support for i.mx6sx Anson Huang
2014-06-25 9:33 ` Viresh Kumar
2014-06-25 16:14 ` Shawn Guo
2014-06-26 1:23 ` Fabio Estevam
2014-06-26 1:55 ` Fabio Estevam
2014-06-26 2:53 ` Anson.Huang at freescale.com
2014-06-26 3:06 ` Fabio Estevam
2014-06-26 3:11 ` Fabio Estevam
2014-06-26 3:15 ` Anson.Huang at freescale.com
2014-06-26 3:21 ` Fabio Estevam
2014-06-26 3:21 ` Shawn Guo
2014-06-26 5:54 ` Shawn Guo
2014-06-26 7:34 ` Anson.Huang at freescale.com
2014-08-18 5:24 ` Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).