• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » OMAP™ Applications Processors » OMAP 4 Forum » Power Gating of CPU's
Share
OMAP™ Applications Processors
  • Forums
Options
  • Subscribe via RSS

Forums

Power Gating of CPU's

This question is answered
Siva Penke
Posted by Siva Penke
on Jul 14 2012 22:22 PM
Prodigy50 points

Hi,

I am new to OMAP4 processors. I got hold of Public TRM for OMAP4's 4460 processor. I am doing power measurements as part of my project on Samsung Galaxy Nexus. I have some questions regarding this -

1] Does both the CPU's on 4460 processor are power gated separately? If yes, can you refer to the section in TRM that explains this? I didn't find any.

2] Is my understanding correct, that 4460 CPU's are single clock'ed? and to put the CPU in Retention mode, the clock is gated where as to put in OFF mode the CPU's are power gated?

3] The latency values to put the CPU is one of the C-states are hard-coded in the Linux_v3.0.8. For example, as per the time file in sysfs in /sys/devices/system/....cpuo/time for state3 it is defined as 1500us whcih is defined as the time taken from idle task to wfi and from wfi to task context. How are these values measured?

Thanks for your time and appreciate your response.

Best Regards

Siva Penke

android 4.0 4460
Report Abuse
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Alex Trinh
    Posted by Alex Trinh
    on Jul 16 2012 16:01 PM
    Verified Answer
    Verified by Magdalena Iovescu
    Intellectual815 points

    Hello Siva,

    1.) From a hardware perspective, the 2 CPUs on the 4460 can have their power shut off separately, but depending on what software release and cpufreq governor you are using, the behavior will differ.  For example, in android kernel 2.6.35, the hotplug governor will online/offline the second CPU separately.  In android kernel 3.0, both CPUs are brought down at the same time.  Section 4.3.6.1 in the 4460 TRM shows the two CPUs as separate power domains.

    2.) I'm not sure what you mean by single clocked, but both CPUs run at the same frequency.  As for gating the clock and shutting down the power domain of the CPU, it depends on the C-state being entered.  Referring to the Android kernel code (arch/arm/mach-omap2/cpuidle44xx.c), the WFI and INA states gate the clocks.  However, the OFF state shuts down the power domain of the CPU in addition the having the clock gated.  This snippet is from cpuidle44xx.c:

    /* C1 - CPUx WFI + MPU ON + CORE ON */
    #define OMAP4_STATE_C1 0
    /* C2 through C4 are shared C-states, both CPUs must agree to enter */
    /* C2 - CPU0 INA + CPU1 INA + MPU INA + CORE INA */
    #define OMAP4_STATE_C2 1
    /* C3 - CPU0 OFF + CPU1 OFF + MPU CSWR + CORE CSWR */
    #define OMAP4_STATE_C3 2
    /* C4 - CPU0 OFF + CPU1 OFF + MPU OSWR + CORE OSWR */
    #define OMAP4_STATE_C4 3

    3.) The exit latency values for each C-state were measured through extensive testing.

    Regards,

    Alex

     

    Please click the Verify Answer button on this post if it answers your question

    _______________________________________________________ 

    Be sure to read the OMAP4 Forum Guidelines & FAQ

    Report Abuse
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Siva Penke
    Posted by Siva Penke
    on Jul 19 2012 14:29 PM
    Prodigy50 points

    Thanks Alex for the clear explanation.

    Best Regards

    Siva Penke

    Report Abuse
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Siva Penke
    Posted by Siva Penke
    on Jul 22 2012 00:47 AM
    Prodigy50 points

    Hi Alex,

    From ARM Cortex A9 manual which is used in OMAP 4460 processor.. it is said that "Wait for Interrupt mode disables all the clocks of a Cortex-A9 processor, while keeping its logic powered up. This reduces the power drawn to the static leakage current." If WFI reduces the static leakage current, can I say that the static power consumption caused by the leakage currents is Zero in case of C4 state (CPU's OFF mode) ?

    Thanks for your time.

    Best Regards

    Siva Penke

    Reference: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0407e/CACGJGEE.html

    android 4.0 4460
    Report Abuse
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Siva Penke
    Posted by Siva Penke
    on Aug 01 2012 22:24 PM
    Prodigy50 points

    Hi,

    I am working on Omap4460 processor on Samsung Galaxy Nexus using Linux kernel 3.0.8. 

    In file cpuidle44xx.c, the C4 state is defined as "C4 - CPU0 OFF + CPU1 OFF + MPU CSWR + CORE OSWR". Does CPUx OFF means a logical or physical offline of the CPU? (My understanding of logical OFF is that the CPU can't execute any more instructions but it is not hot plugged from the power source, instead it is removed from kernel's visibility.)

    Also, writing a zero to cpu1/online makes the CPU1 go offline (is this offline a logical or physical?). This is checked by looking at the tasks (user applications) migrating from CPU1 to CPU0. Also from /proc/interrupts it is clear that the CPU1 doesn't handle any more interrupts.

    However, when I do the same on CPU0, it doesn't allow me to put CPU0 to offline even when it is idle. Does this mean that CPU0 can't put in offline mode or is it because of the user's UART interrupt wakes-up CPU0  automatically?

    Thanks a ton in advance for clearing these doubts.

    Best Regards

    Siva Penke

    android 4.0 4460
    Report Abuse
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Magdalena Iovescu
    Posted by Magdalena Iovescu
    on Aug 02 2012 11:07 AM
    Intellectual2480 points

    Please start anotehr thread for these new questions.

    Thank you,

    Magdalena

     

    Please click the Verify Answer button on this post if it answers your question

    _____________________________________________

    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ

    Report Abuse
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use