ARM: imx: add cpufreq support for i.mx6sx
Subsystems (3)
PATCH v2 1/1 ARM: imx: add cpufreq support for i.mx6sx
Add cpufreq support for i.MX6SX, using common
i.MX6Q cpufreq driver.
--- arch/arm/mach-imx/mach-imx6sx.c | 3 +++ 1 file changed, 3 insertions(+)
arch/arm/mach-imx/mach-imx6sx.c +3 -0
@@ -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 = {
Signature · 1 line
1.7.9.5
PATCH v2 1/1 ARM: imx: add cpufreq support for i.mx6sx
Quoted 13 lines · Anson Huang
Add cpufreq support for i.MX6SX, using common
i.MX6Q cpufreq driver.Signed-off-by Anson Huang <[email protected]>--- arch/arm/mach-imx/mach-imx6sx.c | 3 +++ 1 file changed, 3 insertions(+)arch/arm/mach-imx/mach-imx6sx.c +0
-0
arch/arm/mach-imx/mach-imx6sx.c static void __init imx6sx_init_irq(void) · line 48
Quoted 7 lines
arch/arm/mach-imx/mach-imx6sx.c +3
-0@@ -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 ); }
Shawn Guo
AppliedPATCH v2 1/1 ARM: imx: add cpufreq support for i.mx6sx
In reply to Anson HuangQuoted 4 lines · Anson Huang
Add cpufreq support for i.MX6SX, using common
i.MX6Q cpufreq driver.Signed-off-by Anson Huang <[email protected]>
Applied, thanks.
Fabio Estevam
reviewerPATCH v2 1/1 ARM: imx: add cpufreq support for i.mx6sx
In reply to Anson HuangHi Anson,
Quoted 13 lines · Anson Huang
Add cpufreq support for i.MX6SX, using common
i.MX6Q cpufreq driver.Signed-off-by Anson Huang <[email protected]>--- arch/arm/mach-imx/mach-imx6sx.c | 3 +++ 1 file changed, 3 insertions(+)arch/arm/mach-imx/mach-imx6sx.c +0
-0
arch/arm/mach-imx/mach-imx6sx.c static void __init imx6sx_init_irq(void) · line 48
Quoted 7 lines
arch/arm/mach-imx/mach-imx6sx.c +3
-0@@ -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?
Fabio Estevam
reviewerPATCH v2 1/1 ARM: imx: add cpufreq support for i.mx6sx
Quoted 10 lines · Fabio Estevam
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: -22Any suggestions?
Ok, I managed to fix it. Will send the patch soon.
PATCH v2 1/1 ARM: imx: add cpufreq support for i.mx6sx
In reply to Fabio EstevamHi, 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
Quoted 33 lines
-----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.mx6sxHi Anson,
Quoted 12 lines · Anson Huang
Add cpufreq support for i.MX6SX, using common i.MX6Q cpufreq driver.
Signed-off-by Anson Huang <[email protected]>--- arch/arm/mach-imx/mach-imx6sx.c | 3 +++ 1 file changed, 3 insertions(+)(quoted diff) +0
-0
b/arch/arm/mach-imx/mach-imx6sx.cindex 74ff7d6..9221e1d 100644arch/arm/mach-imx/mach-imx6sx.c static void __init imx6sx_init_irq(void) static · line 48
Quoted 7 lines
arch/arm/mach-imx/mach-imx6sx.c +4
-0@@ -42,6 +42,9 @@ static void __init imx6sx_init_irq(void) staticvoid __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:
Quoted 8 lines
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: -22Any 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>
Fabio Estevam
reviewerPATCH v2 1/1 ARM: imx: add cpufreq support for i.mx6sx
Quoted 2 lines · Anson.Huang at freescale.com
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.
Fabio Estevam
reviewerPATCH v2 1/1 ARM: imx: add cpufreq support for i.mx6sx
Quoted 6 lines · Fabio Estevam
Quoted 2 lines · Anson.Huang at freescale.com
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)
PATCH v2 1/1 ARM: imx: add cpufreq support for i.mx6sx
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
Quoted 21 lines
-----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.mx6sxQuoted 4 lines · Fabio Estevam
Quoted 2 lines · Anson.Huang at freescale.com
Hi, Fabio
I have already sent cpufreq driver patch for review which issupporting i.MX6SX, you may need to add it by yourself if you want to test it, I attached the patch, hope it helps.
Quoted 2 lines
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)
Fabio Estevam
reviewerPATCH v2 1/1 ARM: imx: add cpufreq support for i.mx6sx
Quoted 1 line · Anson.Huang at freescale.com
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
PATCH v2 1/1 ARM: imx: add cpufreq support for i.mx6sx
In reply to Fabio EstevamQuoted 11 lines · Fabio Estevam
Quoted 6 lines · Fabio Estevam
Quoted 2 lines · Anson.Huang at freescale.com
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
PATCH v2 1/1 ARM: imx: add cpufreq support for i.mx6sx
In reply to Fabio EstevamQuoted 26 lines · Fabio Estevam
Hi Anson,
Quoted 13 lines · Anson Huang
Add cpufreq support for i.MX6SX, using common
i.MX6Q cpufreq driver.Signed-off-by Anson Huang <[email protected]>--- arch/arm/mach-imx/mach-imx6sx.c | 3 +++ 1 file changed, 3 insertions(+)arch/arm/mach-imx/mach-imx6sx.c +0
-0arch/arm/mach-imx/mach-imx6sx.c static void __init imx6sx_init_irq(void) · line 48
Quoted 7 lines
arch/arm/mach-imx/mach-imx6sx.c +3
-0@@ -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:
Quoted 6 lines
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
PATCH v2 1/1 ARM: imx: add cpufreq support for i.mx6sx
Hi, Shawn
I am OK with this.
Best Regards.
Anson Huang
?
Freescale Semiconductor Shanghai
Tel:021-28937058
Quoted 46 lines
-----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.mx6sxQuoted 25 lines · Fabio Estevam
Hi Anson,
Quoted 12 lines · Anson Huang
Add cpufreq support for i.MX6SX, using common i.MX6Q cpufreq driver.
Signed-off-by Anson Huang <[email protected]>--- arch/arm/mach-imx/mach-imx6sx.c | 3 +++ 1 file changed, 3 insertions(+)(quoted diff) +0
-0
b/arch/arm/mach-imx/mach-imx6sx.cindex 74ff7d6..9221e1d 100644arch/arm/mach-imx/mach-imx6sx.c static void __init imx6sx_init_irq(void) static · line 48
Quoted 7 lines
arch/arm/mach-imx/mach-imx6sx.c +4
-0@@ -42,6 +42,9 @@ static void __init imx6sx_init_irq(void) staticvoid __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:
Quoted 6 lines
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: -22So 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
PATCH v2 1/1 ARM: imx: add cpufreq support for i.mx6sx
In reply to Shawn GuoQuoted 4 lines · Shawn Guo
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