linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* imx6 power consumption
@ 2013-12-17 18:28 Bjørn Erik Nilsen
  0 siblings, 0 replies; 9+ messages in thread
From: Bjørn Erik Nilsen @ 2013-12-17 18:28 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

I have measured power consumption for imx6 in mem mode on the 3.12.4 mainstream kernel vs. 3.0.35 kernel from freescale/boundary devices. I noticed a significant increase going from 3.0 to 3.12 . I have at least identified one big difference: DDR is no longer tri-stated, which accounts for some of the difference.

I use 'echo mem > /sys/power/state' for my test case.

Do you know if someone is looking into this issue, or if there are pending patches somewhere?

Best regards,
Bj?rn Erik Nilsen

^ permalink raw reply	[flat|nested] 9+ messages in thread

* imx6 power consumption
       [not found] <E1VszO5-00060R-Gp@merlin.infradead.org>
@ 2013-12-18  2:45 ` Shawn Guo
  2013-12-18 11:12   ` Bjørn Erik Nilsen
       [not found]   ` <E1VtF3I-0002MQ-Ra@merlin.infradead.org>
  0 siblings, 2 replies; 9+ messages in thread
From: Shawn Guo @ 2013-12-18  2:45 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Dec 17, 2013 at 07:28:27PM +0100, Bj?rn Erik Nilsen wrote:
> Hi,
> 
> I have measured power consumption for imx6 in mem mode on the 3.12.4 mainstream kernel vs. 3.0.35 kernel from freescale/boundary devices. I noticed a significant increase going from 3.0 to 3.12 . I have at least identified one big difference: DDR is no longer tri-stated, which accounts for some of the difference.
> 
> I use 'echo mem > /sys/power/state' for my test case.
> 
> Do you know if someone is looking into this issue, or if there are pending patches somewhere?

It's an unimplemented feature rather than an issue.  There are some
patches on Freescale 3.10 kernel, and you're welcomed to bring these
patches to mainline kernel.

Shawn

^ permalink raw reply	[flat|nested] 9+ messages in thread

* imx6 power consumption
  2013-12-18  2:45 ` Shawn Guo
@ 2013-12-18 11:12   ` Bjørn Erik Nilsen
       [not found]   ` <E1VtF3I-0002MQ-Ra@merlin.infradead.org>
  1 sibling, 0 replies; 9+ messages in thread
From: Bjørn Erik Nilsen @ 2013-12-18 11:12 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, 2013-12-18 at 03:45 +0100, Shawn Guo wrote:
> On Tue, Dec 17, 2013 at 07:28:27PM +0100, Bj?rn Erik Nilsen wrote:
> > Hi,
> > 
> > I have measured power consumption for imx6 in mem mode on the 3.12.4 mainstream kernel vs. 3.0.35 kernel from freescale/boundary devices. I noticed a significant increase going from 3.0 to 3.12 . I have at least identified one big difference: DDR is no longer tri-stated, which accounts for some of the difference.
> > 
> > I use 'echo mem > /sys/power/state' for my test case.
> > 
> > Do you know if someone is looking into this issue, or if there are pending patches somewhere?
> 
> It's an unimplemented feature rather than an issue.  There are some
> patches on Freescale 3.10 kernel, and you're welcomed to bring these
> patches to mainline kernel.


Right.

As far as I can tell, commit e95dddb34c8 "ARM: imx: enable anatop
suspend/resume" is the common ancestor for mainline and freescale, and
from there pm-imx6q.c starts to diverge.

I haven not looked at it in great detail yet, but it seems there are not
too many patches missing in mainline. Any idea why remaining patches
haven't been upstreamed?

If it is just a matter of someone doing the work, what would be the
recommended approach?


Best regards,
Bj?rn Erik Nilsen

^ permalink raw reply	[flat|nested] 9+ messages in thread

* imx6 power consumption
       [not found]   ` <E1VtF3I-0002MQ-Ra@merlin.infradead.org>
@ 2013-12-18 11:32     ` Shawn Guo
  2013-12-19  2:28       ` Anson.Huang at freescale.com
  0 siblings, 1 reply; 9+ messages in thread
From: Shawn Guo @ 2013-12-18 11:32 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Dec 18, 2013 at 12:12:05PM +0100, Bj?rn Erik Nilsen wrote:
> As far as I can tell, commit e95dddb34c8 "ARM: imx: enable anatop
> suspend/resume" is the common ancestor for mainline and freescale, and
> from there pm-imx6q.c starts to diverge.
> 
> I haven not looked at it in great detail yet, but it seems there are not
> too many patches missing in mainline. Any idea why remaining patches
> haven't been upstreamed?

Probably because no one cares and would spend time to upstream these
patches.

Shawn

> 
> If it is just a matter of someone doing the work, what would be the
> recommended approach?
> 
> 
> Best regards,
> Bj?rn Erik Nilsen
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* imx6 power consumption
  2013-12-18 11:32     ` Shawn Guo
@ 2013-12-19  2:28       ` Anson.Huang at freescale.com
  2013-12-19  8:15         ` Bjørn Erik Nilsen
       [not found]         ` <1387440914.4131.4.camel@bnilsen-HP>
  0 siblings, 2 replies; 9+ messages in thread
From: Anson.Huang at freescale.com @ 2013-12-19  2:28 UTC (permalink / raw)
  To: linux-arm-kernel



Best Regards.
Anson huang ???
?
Freescale Semiconductor Shanghai
?????????192?A?2?
201203
Tel:021-28937058


>-----Original Message-----
>From: linux-arm-kernel [mailto:linux-arm-kernel-bounces at lists.infradead.org]
>On Behalf Of Shawn Guo
>Sent: Wednesday, December 18, 2013 7:33 PM
>To: Bj?rn Erik Nilsen
>Cc: linux-arm-kernel at lists.infradead.org
>Subject: Re: imx6 power consumption
>
>On Wed, Dec 18, 2013 at 12:12:05PM +0100, Bj?rn Erik Nilsen wrote:
>> As far as I can tell, commit e95dddb34c8 "ARM: imx: enable anatop
>> suspend/resume" is the common ancestor for mainline and freescale, and
>> from there pm-imx6q.c starts to diverge.
>>
>> I haven not looked at it in great detail yet, but it seems there are
>> not too many patches missing in mainline. Any idea why remaining
>> patches haven't been upstreamed?
>
>Probably because no one cares and would spend time to upstream these patches.

This root cause is we did NOT put the DSM code in IRAM and free DDR IO in DSM.
We have done this in our internal v3.10 kernel, so I will do the upstream soon,
Below is the DSM number of i.MX6Q SabreSD we got on v3.10 release:

VDDARM_IN(R27)             0mA at 0.97V
VDDSOC_IN(R21)             4.2 at 0.97V
DDR(R25)                   14.8mA at 1.5V
VDDHIGH_IN + SNVS(SH17)    0.35mA at 2.98V, 0.9mA

Anson 


>
>Shawn
>
>>
>> If it is just a matter of someone doing the work, what would be the
>> recommended approach?
>>
>>
>> Best regards,
>> Bj?rn Erik Nilsen
>>
>> _______________________________________________
>> linux-arm-kernel mailing list
>> linux-arm-kernel at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
>
>_______________________________________________
>linux-arm-kernel mailing list
>linux-arm-kernel at lists.infradead.org
>http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* imx6 power consumption
  2013-12-19  2:28       ` Anson.Huang at freescale.com
@ 2013-12-19  8:15         ` Bjørn Erik Nilsen
       [not found]         ` <1387440914.4131.4.camel@bnilsen-HP>
  1 sibling, 0 replies; 9+ messages in thread
From: Bjørn Erik Nilsen @ 2013-12-19  8:15 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Anson,

On Thu, 2013-12-19 at 03:28 +0100, Anson.Huang at freescale.com wrote:
> 
> Best Regards.
> Anson huang ???
>  
> Freescale Semiconductor Shanghai
> ?????????192?A?2?
> 201203
> Tel:021-28937058
> 
> 
> >-----Original Message-----
> >From: linux-arm-kernel [mailto:linux-arm-kernel-bounces at lists.infradead.org]
> >On Behalf Of Shawn Guo
> >Sent: Wednesday, December 18, 2013 7:33 PM
> >To: Bj?rn Erik Nilsen
> >Cc: linux-arm-kernel at lists.infradead.org
> >Subject: Re: imx6 power consumption
> >
> >On Wed, Dec 18, 2013 at 12:12:05PM +0100, Bj?rn Erik Nilsen wrote:
> >> As far as I can tell, commit e95dddb34c8 "ARM: imx: enable anatop
> >> suspend/resume" is the common ancestor for mainline and freescale, and
> >> from there pm-imx6q.c starts to diverge.
> >>
> >> I haven not looked at it in great detail yet, but it seems there are
> >> not too many patches missing in mainline. Any idea why remaining
> >> patches haven't been upstreamed?
> >
> >Probably because no one cares and would spend time to upstream these patches.
> 
> This root cause is we did NOT put the DSM code in IRAM and free DDR IO in DSM.
> We have done this in our internal v3.10 kernel, so I will do the upstream soon,
> Below is the DSM number of i.MX6Q SabreSD we got on v3.10 release:
> 
> VDDARM_IN(R27)             0mA at 0.97V
> VDDSOC_IN(R21)             4.2 at 0.97V
> DDR(R25)                   14.8mA at 1.5V
> VDDHIGH_IN + SNVS(SH17)    0.35mA at 2.98V, 0.9mA


I successfully managed to cherry-pick a handful of commits from
freescale 3.10 and got down to approximately half the consumption.
That's already very good news.

Looking forward to see these patches upstream. Will you be able upstream
them before 3.14 you think?

Good work!

Best regards,
Bj?rn Erik Nilsen

^ permalink raw reply	[flat|nested] 9+ messages in thread

* imx6 power consumption
       [not found]         ` <1387440914.4131.4.camel@bnilsen-HP>
@ 2014-01-29 16:17           ` Bjørn Erik Nilsen
       [not found]           ` <E1W8XqE-0000Ml-GE@merlin.infradead.org>
  1 sibling, 0 replies; 9+ messages in thread
From: Bjørn Erik Nilsen @ 2014-01-29 16:17 UTC (permalink / raw)
  To: linux-arm-kernel

Hi guys,

On Thu, 2013-12-19 at 09:15 +0100, Bj?rn Erik Nilsen wrote:
> Hi Anson,
> 
> On Thu, 2013-12-19 at 03:28 +0100, Anson.Huang at freescale.com wrote:
> > 
> > Best Regards.
> > Anson huang ???
> >  
> > Freescale Semiconductor Shanghai
> > ?????????192?A?2?
> > 201203
> > Tel:021-28937058
> > 
> > 
> > >-----Original Message-----
> > >From: linux-arm-kernel [mailto:linux-arm-kernel-bounces at lists.infradead.org]
> > >On Behalf Of Shawn Guo
> > >Sent: Wednesday, December 18, 2013 7:33 PM
> > >To: Bj?rn Erik Nilsen
> > >Cc: linux-arm-kernel at lists.infradead.org
> > >Subject: Re: imx6 power consumption
> > >
> > >On Wed, Dec 18, 2013 at 12:12:05PM +0100, Bj?rn Erik Nilsen wrote:
> > >> As far as I can tell, commit e95dddb34c8 "ARM: imx: enable anatop
> > >> suspend/resume" is the common ancestor for mainline and freescale, and
> > >> from there pm-imx6q.c starts to diverge.
> > >>
> > >> I haven not looked at it in great detail yet, but it seems there are
> > >> not too many patches missing in mainline. Any idea why remaining
> > >> patches haven't been upstreamed?
> > >
> > >Probably because no one cares and would spend time to upstream these patches.
> > 
> > This root cause is we did NOT put the DSM code in IRAM and free DDR IO in DSM.
> > We have done this in our internal v3.10 kernel, so I will do the upstream soon,
> > Below is the DSM number of i.MX6Q SabreSD we got on v3.10 release:
> > 
> > VDDARM_IN(R27)             0mA at 0.97V
> > VDDSOC_IN(R21)             4.2 at 0.97V
> > DDR(R25)                   14.8mA at 1.5V
> > VDDHIGH_IN + SNVS(SH17)    0.35mA at 2.98V, 0.9mA
> 
> 
> I successfully managed to cherry-pick a handful of commits from
> freescale 3.10 and got down to approximately half the consumption.
> That's already very good news.
> 
> Looking forward to see these patches upstream. Will you be able upstream
> them before 3.14 you think?


Any updates on this?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* imx6 power consumption
       [not found]           ` <E1W8XqE-0000Ml-GE@merlin.infradead.org>
@ 2014-01-29 16:21             ` Fabio Estevam
  2014-01-29 16:33               ` Bjørn Erik Nilsen
  0 siblings, 1 reply; 9+ messages in thread
From: Fabio Estevam @ 2014-01-29 16:21 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Jan 29, 2014 at 2:17 PM, Bj?rn Erik Nilsen <ben@datarespons.no> wrote:

>> I successfully managed to cherry-pick a handful of commits from
>> freescale 3.10 and got down to approximately half the consumption.
>> That's already very good news.
>>
>> Looking forward to see these patches upstream. Will you be able upstream
>> them before 3.14 you think?
>
>
> Any updates on this?

Take a look at http://git.linaro.org/people/shawn.guo/linux-2.6.git/shortlog/refs/heads/for-next
.
There are some patches for low power support from Anson.

Regards,

Fabio Estevam

^ permalink raw reply	[flat|nested] 9+ messages in thread

* imx6 power consumption
  2014-01-29 16:21             ` Fabio Estevam
@ 2014-01-29 16:33               ` Bjørn Erik Nilsen
  0 siblings, 0 replies; 9+ messages in thread
From: Bjørn Erik Nilsen @ 2014-01-29 16:33 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, 2014-01-29 at 17:21 +0100, Fabio Estevam wrote:
> On Wed, Jan 29, 2014 at 2:17 PM, Bj?rn Erik Nilsen <ben@datarespons.no> wrote:
> 
> >> I successfully managed to cherry-pick a handful of commits from
> >> freescale 3.10 and got down to approximately half the consumption.
> >> That's already very good news.
> >>
> >> Looking forward to see these patches upstream. Will you be able upstream
> >> them before 3.14 you think?
> >
> >
> > Any updates on this?
> 
> Take a look at http://git.linaro.org/people/shawn.guo/linux-2.6.git/shortlog/refs/heads/for-next
> .
> There are some patches for low power support from Anson.


Excellent news!

It looks like these patches are exactly what is needed. I'm going to try
them out tomorrow.

Great piece of work, thank you!

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-01-29 16:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-17 18:28 imx6 power consumption Bjørn Erik Nilsen
     [not found] <E1VszO5-00060R-Gp@merlin.infradead.org>
2013-12-18  2:45 ` Shawn Guo
2013-12-18 11:12   ` Bjørn Erik Nilsen
     [not found]   ` <E1VtF3I-0002MQ-Ra@merlin.infradead.org>
2013-12-18 11:32     ` Shawn Guo
2013-12-19  2:28       ` Anson.Huang at freescale.com
2013-12-19  8:15         ` Bjørn Erik Nilsen
     [not found]         ` <1387440914.4131.4.camel@bnilsen-HP>
2014-01-29 16:17           ` Bjørn Erik Nilsen
     [not found]           ` <E1W8XqE-0000Ml-GE@merlin.infradead.org>
2014-01-29 16:21             ` Fabio Estevam
2014-01-29 16:33               ` Bjørn Erik Nilsen

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).