SlideShare a Scribd company logo
1 of 23
Download to read offline
Nokia Internet Tablet
                                     Power Management

                                        Klaus K Pedersen

                                                Igor Stoppa




This material, including documentation and any related computer programs, is protected by copyright controlled by Nokia. All rights are reserved.




1     Copyright © 2007 Nokia. All rights reserved.
Overview


                       •Current Solutions:
                         •Sleep while Idle
                         •Dynamic Tick

                       •Future:
                         •Dynamic Voltage and Frequency Scaling
                         •CPUFreq
                         •Dynamic Power Switching



2   Copyright © 2007 Nokia. All rights reserved.
Sleep While Idle


                         • In the idle loop, always try to go to the target
                           sleep state
                         • the target sleep state is set based on latency
                                  • OMAP1 : ARM idle / Big Sleep / Deep Sleep
                                  • OMAP2 : ARM idle / MPU retention / SoC retention
                             the lowest sleep state is characterized by clock stop
                         ●

                             (including system osc) and lowered VCORE
                             (retention voltage)

                                  The major causes of latency are:
                                  ● restarting the system oscillator

                                  ● restoring VCORE to the active value




3   Copyright © 2007 Nokia. All rights reserved.
Dynamic Tick


                     • Skips system ticks that are not associated with
                       any scheduled activity
                     • Uses the low freq (32khz) clock from the system
                       XTL to keep track of the time passing
                     • “Sleep While Idle” can keep the system stopped
                       for longer time
                     • Now that the 2.6.21 kernel supports tick-less
                       activity, we should switch to the standard
                       implementation
                     • The current OMAP-specific implementation has
                       drawbacks as it introduces delays when
                       calculating the time for the next wakeup


4   Copyright © 2007 Nokia. All rights reserved.
Dynamic Voltage & Frequency Scaling

                                                    Premise:

                                                             :switching factor
                                                    2
                                       P=⋅C eff⋅V ⋅f       C eff :effectivecapacitance
                                                            V : operating voltage
                                                        2
                                                            f :operating frequency
                            E =P⋅T  E ∝n⋅V
                                                            P : Dynamic Power
                                                            E : Dynamic Energy
    ∀ V n ∃f MAXn∣f MAXn=MAX [f V n ]                     T : Period of time
                                                            n : cyclesdone during T

5    Copyright © 2007 Nokia. All rights reserved.
Dynamic Voltage & Frequency Scaling


                         • The power used by a system depends:
                              quadratically on the voltage applied,


                              linearly on the “work” (freq).




                             For any given voltage, there is a maximum
                         ●

                             frequency at which the system is still stable.

                             The highest stable frequency available
                             for the currently set voltage yields the
                             maximum efficiency.


6   Copyright © 2007 Nokia. All rights reserved.
Dynamic Voltage & Frequency Scaling

        Considerations: Voltage Scaling (CPU only)

                                      Deadline                                                       Deadline
       V                                                                            V
                                                                            V1
                                                                     V 2=
       V1                                                                           V2
                                                                            2
                      W
                                                                                             W
                                                                      f 2 f 1
                               T1                                                                       T2
                                                                T                                                   T
                                                   D
                                                                                                                    2
                                                                                      f 2 =MAX [f V 2 ]    E 2 ∝V 2
                                                            2
        f 1 =MAX [f V 1 ]                        E 1 ∝V   1


                                                                                 Same workload W
                                                                E1
                                                       E2∝                       Deadline is still met
                                                                4
                                                                                 75% Energy saved

7   Copyright © 2007 Nokia. All rights reserved.
Dynamic Voltage & Frequency Scaling



           Apparently the best choice is the minimum
            voltage V suitable for a frequency f that
                    can meet the deadline.

                                                   But ...




8   Copyright © 2007 Nokia. All rights reserved.
Dynamic Voltage & Frequency Scaling
                       Considerations: System-wise performance

            Also other leakages than the processor must be considered.

                                                   P=P static P dynamic
            Example:
                  SDRAM (Mobile DDR) current:
                  •active current ≈ 10 - 30 mA
                  •self-refresh current < 1mA
                                 OMAP2 current:
                                 •active current > 100 mA
                                 •idle < 2mA


9   Copyright © 2007 Nokia. All rights reserved.
Dynamic Voltage & Frequency Scaling
                                 Considerations: Causes of Latency

             There are several causes that can make a transition slow:

                        •re-lock DPLLs and DLLs ≈ 0.1 ms
                        •re-adjust voltage regulators ≈ 5 ms (present)
                         target value should be ≈ 0.1 ms
                        •pause / resume device drivers ≈ 20 - 50 ms


                        Improving drivers is the way to reduce latency




10   Copyright © 2007 Nokia. All rights reserved.
Dynamic Voltage & Frequency Scaling

                                                OMAP2 DVFS Scheme
                                                    Current Implementation

                                                               Cpufreq
                                                Selection                    List of Frequencies

                                        OP
                                                                                  Set Vtg
                                                             OMAP2 DVFS                        Voltage
                                      Settings
       board cfg                                                driver                         Scaling

                                                                                      Update
                                                                                                Clk
                                                                                                FW
                                                     Drv 1     Drv 2          Drv n
                                                                       ...

11   Copyright © 2007 Nokia. All rights reserved.
Dynamic Voltage & Frequency Scaling

                                           OMAP2 DVFS Interfaces

                                 Toward OP selector (Cpufreq):
                                 •Get frequencies & OP list
                                 •Set target OP
                                 •Get latency

                                 Toward drivers:
                                 •Register / unregister
                                 •Send sync / async pre and post notification




12   Copyright © 2007 Nokia. All rights reserved.
Dynamic Voltage & Frequency Scaling

                                                    OMAP2 DVFS

                            Sequence:
                                     Request of new OP
                                 ●


                                     Pre-notification to drivers
                                 ●


                                     Wait for ACK from all drivers
                                 ●


                                     Change Voltage (if needed)
                                 ●


                                     Adjust clocks
                                 ●


                                     Tell Clk FW to sync up with
                                 ●


                                     Post-notification to drivers
                                 ●




13   Copyright © 2007 Nokia. All rights reserved.
CPUFREQ: Lessons learned


                                   •Expressing Constraints
                                   •Determinism
                                   •non-polling governor
                                   •ondemand transition_latency misuse




14   Copyright © 2007 Nokia. All rights reserved.
Expressing Constraints
                 A real life case: OMAP2 speed sorted (N800):
                               OP                   ARM [MHz] DSP [MHz]
                                0                         400       133
                                1                         330       220
                                2                         266       177
                                3                         165        85
                     Constraints should be described by referring to the
                 ●

                     frequency that they are addressing

                     Ex: DSP requires dsp_fclk >= 220MHz rather than
                         DSP requires OP1


15   Copyright © 2007 Nokia. All rights reserved.
Expressing Constraints: Ranges

                     Functional constraints are mapped into sets of valid
                 ●

                     states to enable much richer operations.

                 Example:
                 ● For embedded targets there would be a one-to-one

                   mapping between operating-point and bits in the
                   vector.
                                  ...
                     OPn                        OP4 OP3 OP2 OP1 OP0




                     For PC's ACPI: P states are really OPs
                 ●




16   Copyright © 2007 Nokia. All rights reserved.
Towards deterministic behaviour
     •cpufreq_set_policy(): still broken
        • If there are non overlapping policies, a random
          frequency will be selected
        • No way to validate a policy is respected.
     •RFC: the callback could be replaced with a registered /
      unregister (frequency) policy interface.

                            static struct cpufreq_constraint mypol = {
                               .prio = OR_DIE;
                               .low = FREQ(OP1);
                               ...
                            err = cpufreq_register_constraint(&mypol);
                            ...
                            cpufreq_unregister_constraint(&mypol);



17   Copyright © 2007 Nokia. All rights reserved.
CPUFREQ non-polling governors
     • The ondemand sawtooth frequency switching algorithm has many
       good properties.
     • It should be possible to create a non-polling governor with the
       properties of ondemand. All what is required is call-backs/notifications
       from idle.
                                                          Given Tidle
                                                        * Compute new
                                                          (lower freq)
                                                        * Start timer for
                                                            going up
     f
                                                                              timer
                                                                timer




                                                                                      t
                                                                       idle

18       Copyright © 2007 Nokia. All rights reserved.
CPUFREQ: transition_latency misuse

        •ondemand uses transition_latency to calculate
            the polling interval (1000x).

        •this weird relation is artificial.

        •Introduce:

                 •polling_interval

                 •relax_interval i.e. the minimum time to
                     stay on a newly selected frequency.



19   Copyright © 2007 Nokia. All rights reserved.
Introduce concept of Target Idle state


        •For the coming System on Chip in finer geometries we
         will have to utilize even lower Idle-states like – off(!)
         Problem: off state introduces longer latencies


        •We need a mechanism to select the target idle-state.


        •CPUFREQ could adjust the idle-state that matches the
         state of the system (mostly idle vs mostly active).


        •Potential better performance and bigger power-
         savings.


20   Copyright © 2007 Nokia. All rights reserved.
Conclusion: Simple rules

        •Run as fast as you can for the given the voltage.
        •Goto to idle with clock-stop when nothing to do.
        •You can't predict the future – so forget about fine-
         grained frequency control.
        •The time spent in idle vs active (a'la OnDemand) is
         a good key for selecting system performance
         settings.
        •Don't change frequency too often or you waste cpu-
         time waiting for drivers to pause and restart
         peripherals.



21   Copyright © 2007 Nokia. All rights reserved.
Conclusion: Improvements

                                           OMAP2 DVFS Interfaces


                                 •Use smp-like approach for ARM-DSP
                                 •Get frequencies & OP list for each core
                                 •Get latency for each OP transition
                                 •Add transaction support to clk FW
                                 •Cpufreq to use threaded notifications




22   Copyright © 2007 Nokia. All rights reserved.
Conclusion: Challenges



                 •Non-SMP systems, with independent OS but
                  intermingled clock and voltage control

                 •Relative high current usage by support
                  components -> nullifies benefit of low
                  frequency and voltage operation point in a
                  dynamic idle system.




23   Copyright © 2007 Nokia. All rights reserved.

More Related Content

What's hot

Understanding TL431 Operation - Basic Operation and Power Supply Compensation
Understanding TL431 Operation - Basic Operation and Power Supply CompensationUnderstanding TL431 Operation - Basic Operation and Power Supply Compensation
Understanding TL431 Operation - Basic Operation and Power Supply CompensationMohammed Fouly
 
TB62206FGのスパイスモデル
TB62206FGのスパイスモデルTB62206FGのスパイスモデル
TB62206FGのスパイスモデルTsuyoshi Horigome
 
3相ACモーターのスパイスモデルの概要
3相ACモーターのスパイスモデルの概要3相ACモーターのスパイスモデルの概要
3相ACモーターのスパイスモデルの概要Tsuyoshi Horigome
 
DVD Player Multiple Output Di115 2
DVD Player Multiple Output Di115 2DVD Player Multiple Output Di115 2
DVD Player Multiple Output Di115 2gueste54184
 
Fuzzy Logic Controller Based ZVT-ZCT PWM Boost Converter Using Renewable Ener...
Fuzzy Logic Controller Based ZVT-ZCT PWM Boost Converter Using Renewable Ener...Fuzzy Logic Controller Based ZVT-ZCT PWM Boost Converter Using Renewable Ener...
Fuzzy Logic Controller Based ZVT-ZCT PWM Boost Converter Using Renewable Ener...IOSR Journals
 
SPICE MODEL of NJU7043 in SPICE PARK
SPICE MODEL of NJU7043 in SPICE PARKSPICE MODEL of NJU7043 in SPICE PARK
SPICE MODEL of NJU7043 in SPICE PARKTsuyoshi Horigome
 
FUZZY LOGIC PROGRAMME-Fuzzy logic based differential relay for power transfor...
FUZZY LOGIC PROGRAMME-Fuzzy logic based differential relay for power transfor...FUZZY LOGIC PROGRAMME-Fuzzy logic based differential relay for power transfor...
FUZZY LOGIC PROGRAMME-Fuzzy logic based differential relay for power transfor...ASHOKKUMAR RAMAR
 

What's hot (12)

Understanding TL431 Operation - Basic Operation and Power Supply Compensation
Understanding TL431 Operation - Basic Operation and Power Supply CompensationUnderstanding TL431 Operation - Basic Operation and Power Supply Compensation
Understanding TL431 Operation - Basic Operation and Power Supply Compensation
 
SPICE Model of TA7291P
SPICE Model of TA7291PSPICE Model of TA7291P
SPICE Model of TA7291P
 
TB62206FGのスパイスモデル
TB62206FGのスパイスモデルTB62206FGのスパイスモデル
TB62206FGのスパイスモデル
 
3相ACモーターのスパイスモデルの概要
3相ACモーターのスパイスモデルの概要3相ACモーターのスパイスモデルの概要
3相ACモーターのスパイスモデルの概要
 
5 l0380r
5 l0380r5 l0380r
5 l0380r
 
54581 el8 el8000_m3_ycah
54581 el8 el8000_m3_ycah54581 el8 el8000_m3_ycah
54581 el8 el8000_m3_ycah
 
DVD Player Multiple Output Di115 2
DVD Player Multiple Output Di115 2DVD Player Multiple Output Di115 2
DVD Player Multiple Output Di115 2
 
Fuzzy Logic Controller Based ZVT-ZCT PWM Boost Converter Using Renewable Ener...
Fuzzy Logic Controller Based ZVT-ZCT PWM Boost Converter Using Renewable Ener...Fuzzy Logic Controller Based ZVT-ZCT PWM Boost Converter Using Renewable Ener...
Fuzzy Logic Controller Based ZVT-ZCT PWM Boost Converter Using Renewable Ener...
 
SPICE MODEL of NJU7043 in SPICE PARK
SPICE MODEL of NJU7043 in SPICE PARKSPICE MODEL of NJU7043 in SPICE PARK
SPICE MODEL of NJU7043 in SPICE PARK
 
53857 0420 el8_el8000m3_ycah
53857 0420 el8_el8000m3_ycah53857 0420 el8_el8000m3_ycah
53857 0420 el8_el8000m3_ycah
 
55064 04 el8_el8000_m3_ycah
55064 04 el8_el8000_m3_ycah55064 04 el8_el8000_m3_ycah
55064 04 el8_el8000_m3_ycah
 
FUZZY LOGIC PROGRAMME-Fuzzy logic based differential relay for power transfor...
FUZZY LOGIC PROGRAMME-Fuzzy logic based differential relay for power transfor...FUZZY LOGIC PROGRAMME-Fuzzy logic based differential relay for power transfor...
FUZZY LOGIC PROGRAMME-Fuzzy logic based differential relay for power transfor...
 

Similar to Power Management for the Nokia Internet Tablets

Concept Kit:PWM Buck Converter Average Model (NJM2309)
Concept Kit:PWM Buck Converter Average Model (NJM2309)Concept Kit:PWM Buck Converter Average Model (NJM2309)
Concept Kit:PWM Buck Converter Average Model (NJM2309)Tsuyoshi Horigome
 
DC_DC_Buck_PPT.ppt
DC_DC_Buck_PPT.pptDC_DC_Buck_PPT.ppt
DC_DC_Buck_PPT.pptShivamMane14
 
Mc 33078n op amp dual lo noise
Mc 33078n op amp dual lo noiseMc 33078n op amp dual lo noise
Mc 33078n op amp dual lo noisevakumtube
 
Ee2 chapter15 multivibrator
Ee2 chapter15 multivibratorEe2 chapter15 multivibrator
Ee2 chapter15 multivibratorCK Yang
 
3-Phase AC Motor Model(PSpice Model)
3-Phase AC Motor Model(PSpice Model)3-Phase AC Motor Model(PSpice Model)
3-Phase AC Motor Model(PSpice Model)Tsuyoshi Horigome
 
M62502FPのデータシート
M62502FPのデータシートM62502FPのデータシート
M62502FPのデータシートTsuyoshi Horigome
 
Coupled inductor boost integrated flyback converter with high-voltage gain-1
Coupled inductor boost integrated flyback converter with high-voltage gain-1Coupled inductor boost integrated flyback converter with high-voltage gain-1
Coupled inductor boost integrated flyback converter with high-voltage gain-1Jeetendra Prasad
 
C:\Documents And Settings\Fredlin\Desktop\Ic Design\Synthesis200301
C:\Documents And Settings\Fredlin\Desktop\Ic Design\Synthesis200301C:\Documents And Settings\Fredlin\Desktop\Ic Design\Synthesis200301
C:\Documents And Settings\Fredlin\Desktop\Ic Design\Synthesis200301guest77988fe
 
INVERTING BUCK-BOOST DCDC CONVERTER DESIGN CHALLENGES
INVERTING BUCK-BOOST DCDC CONVERTER DESIGN CHALLENGESINVERTING BUCK-BOOST DCDC CONVERTER DESIGN CHALLENGES
INVERTING BUCK-BOOST DCDC CONVERTER DESIGN CHALLENGESijesajournal
 
Laboratory 1 et201
Laboratory 1 et201Laboratory 1 et201
Laboratory 1 et201azyanmdzahri
 
Honeywell gsmv-install-guide-addendum
Honeywell gsmv-install-guide-addendumHoneywell gsmv-install-guide-addendum
Honeywell gsmv-install-guide-addendumAlarm Grid
 
Rte Lebranchu Compensation And Transient Studies Onalong Ehv Overheadline
Rte Lebranchu Compensation And Transient Studies Onalong Ehv OverheadlineRte Lebranchu Compensation And Transient Studies Onalong Ehv Overheadline
Rte Lebranchu Compensation And Transient Studies Onalong Ehv Overheadlinecorinne rocherieux
 

Similar to Power Management for the Nokia Internet Tablets (20)

Concept Kit:PWM Buck Converter Average Model (NJM2309)
Concept Kit:PWM Buck Converter Average Model (NJM2309)Concept Kit:PWM Buck Converter Average Model (NJM2309)
Concept Kit:PWM Buck Converter Average Model (NJM2309)
 
DC_DC_Buck_PPT.ppt
DC_DC_Buck_PPT.pptDC_DC_Buck_PPT.ppt
DC_DC_Buck_PPT.ppt
 
51
5151
51
 
Ne555
Ne555Ne555
Ne555
 
Mc 33078n op amp dual lo noise
Mc 33078n op amp dual lo noiseMc 33078n op amp dual lo noise
Mc 33078n op amp dual lo noise
 
4057
40574057
4057
 
Datasheet 555
Datasheet 555Datasheet 555
Datasheet 555
 
Ee2 chapter15 multivibrator
Ee2 chapter15 multivibratorEe2 chapter15 multivibrator
Ee2 chapter15 multivibrator
 
3-Phase AC Motor Model(PSpice Model)
3-Phase AC Motor Model(PSpice Model)3-Phase AC Motor Model(PSpice Model)
3-Phase AC Motor Model(PSpice Model)
 
Lecture14
Lecture14Lecture14
Lecture14
 
Lpc662
Lpc662Lpc662
Lpc662
 
Unit5 session 5
Unit5 session 5Unit5 session 5
Unit5 session 5
 
M62502FPのデータシート
M62502FPのデータシートM62502FPのデータシート
M62502FPのデータシート
 
Coupled inductor boost integrated flyback converter with high-voltage gain-1
Coupled inductor boost integrated flyback converter with high-voltage gain-1Coupled inductor boost integrated flyback converter with high-voltage gain-1
Coupled inductor boost integrated flyback converter with high-voltage gain-1
 
C:\Documents And Settings\Fredlin\Desktop\Ic Design\Synthesis200301
C:\Documents And Settings\Fredlin\Desktop\Ic Design\Synthesis200301C:\Documents And Settings\Fredlin\Desktop\Ic Design\Synthesis200301
C:\Documents And Settings\Fredlin\Desktop\Ic Design\Synthesis200301
 
Slide bab op amp
Slide bab op ampSlide bab op amp
Slide bab op amp
 
INVERTING BUCK-BOOST DCDC CONVERTER DESIGN CHALLENGES
INVERTING BUCK-BOOST DCDC CONVERTER DESIGN CHALLENGESINVERTING BUCK-BOOST DCDC CONVERTER DESIGN CHALLENGES
INVERTING BUCK-BOOST DCDC CONVERTER DESIGN CHALLENGES
 
Laboratory 1 et201
Laboratory 1 et201Laboratory 1 et201
Laboratory 1 et201
 
Honeywell gsmv-install-guide-addendum
Honeywell gsmv-install-guide-addendumHoneywell gsmv-install-guide-addendum
Honeywell gsmv-install-guide-addendum
 
Rte Lebranchu Compensation And Transient Studies Onalong Ehv Overheadline
Rte Lebranchu Compensation And Transient Studies Onalong Ehv OverheadlineRte Lebranchu Compensation And Transient Studies Onalong Ehv Overheadline
Rte Lebranchu Compensation And Transient Studies Onalong Ehv Overheadline
 

Recently uploaded

Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 

Recently uploaded (20)

Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 

Power Management for the Nokia Internet Tablets

  • 1. Nokia Internet Tablet Power Management Klaus K Pedersen Igor Stoppa This material, including documentation and any related computer programs, is protected by copyright controlled by Nokia. All rights are reserved. 1 Copyright © 2007 Nokia. All rights reserved.
  • 2. Overview •Current Solutions: •Sleep while Idle •Dynamic Tick •Future: •Dynamic Voltage and Frequency Scaling •CPUFreq •Dynamic Power Switching 2 Copyright © 2007 Nokia. All rights reserved.
  • 3. Sleep While Idle • In the idle loop, always try to go to the target sleep state • the target sleep state is set based on latency • OMAP1 : ARM idle / Big Sleep / Deep Sleep • OMAP2 : ARM idle / MPU retention / SoC retention the lowest sleep state is characterized by clock stop ● (including system osc) and lowered VCORE (retention voltage) The major causes of latency are: ● restarting the system oscillator ● restoring VCORE to the active value 3 Copyright © 2007 Nokia. All rights reserved.
  • 4. Dynamic Tick • Skips system ticks that are not associated with any scheduled activity • Uses the low freq (32khz) clock from the system XTL to keep track of the time passing • “Sleep While Idle” can keep the system stopped for longer time • Now that the 2.6.21 kernel supports tick-less activity, we should switch to the standard implementation • The current OMAP-specific implementation has drawbacks as it introduces delays when calculating the time for the next wakeup 4 Copyright © 2007 Nokia. All rights reserved.
  • 5. Dynamic Voltage & Frequency Scaling Premise:  :switching factor 2 P=⋅C eff⋅V ⋅f C eff :effectivecapacitance V : operating voltage 2 f :operating frequency E =P⋅T  E ∝n⋅V P : Dynamic Power E : Dynamic Energy ∀ V n ∃f MAXn∣f MAXn=MAX [f V n ] T : Period of time n : cyclesdone during T 5 Copyright © 2007 Nokia. All rights reserved.
  • 6. Dynamic Voltage & Frequency Scaling • The power used by a system depends:  quadratically on the voltage applied,  linearly on the “work” (freq). For any given voltage, there is a maximum ● frequency at which the system is still stable. The highest stable frequency available for the currently set voltage yields the maximum efficiency. 6 Copyright © 2007 Nokia. All rights reserved.
  • 7. Dynamic Voltage & Frequency Scaling Considerations: Voltage Scaling (CPU only) Deadline Deadline V V V1 V 2= V1 V2 2 W W f 2 f 1 T1 T2 T T D 2 f 2 =MAX [f V 2 ] E 2 ∝V 2 2 f 1 =MAX [f V 1 ] E 1 ∝V 1 Same workload W E1 E2∝ Deadline is still met 4 75% Energy saved 7 Copyright © 2007 Nokia. All rights reserved.
  • 8. Dynamic Voltage & Frequency Scaling Apparently the best choice is the minimum voltage V suitable for a frequency f that can meet the deadline. But ... 8 Copyright © 2007 Nokia. All rights reserved.
  • 9. Dynamic Voltage & Frequency Scaling Considerations: System-wise performance Also other leakages than the processor must be considered. P=P static P dynamic Example: SDRAM (Mobile DDR) current: •active current ≈ 10 - 30 mA •self-refresh current < 1mA OMAP2 current: •active current > 100 mA •idle < 2mA 9 Copyright © 2007 Nokia. All rights reserved.
  • 10. Dynamic Voltage & Frequency Scaling Considerations: Causes of Latency There are several causes that can make a transition slow: •re-lock DPLLs and DLLs ≈ 0.1 ms •re-adjust voltage regulators ≈ 5 ms (present) target value should be ≈ 0.1 ms •pause / resume device drivers ≈ 20 - 50 ms Improving drivers is the way to reduce latency 10 Copyright © 2007 Nokia. All rights reserved.
  • 11. Dynamic Voltage & Frequency Scaling OMAP2 DVFS Scheme Current Implementation Cpufreq Selection List of Frequencies OP Set Vtg OMAP2 DVFS Voltage Settings board cfg driver Scaling Update Clk FW Drv 1 Drv 2 Drv n ... 11 Copyright © 2007 Nokia. All rights reserved.
  • 12. Dynamic Voltage & Frequency Scaling OMAP2 DVFS Interfaces Toward OP selector (Cpufreq): •Get frequencies & OP list •Set target OP •Get latency Toward drivers: •Register / unregister •Send sync / async pre and post notification 12 Copyright © 2007 Nokia. All rights reserved.
  • 13. Dynamic Voltage & Frequency Scaling OMAP2 DVFS Sequence: Request of new OP ● Pre-notification to drivers ● Wait for ACK from all drivers ● Change Voltage (if needed) ● Adjust clocks ● Tell Clk FW to sync up with ● Post-notification to drivers ● 13 Copyright © 2007 Nokia. All rights reserved.
  • 14. CPUFREQ: Lessons learned •Expressing Constraints •Determinism •non-polling governor •ondemand transition_latency misuse 14 Copyright © 2007 Nokia. All rights reserved.
  • 15. Expressing Constraints A real life case: OMAP2 speed sorted (N800): OP ARM [MHz] DSP [MHz] 0 400 133 1 330 220 2 266 177 3 165 85 Constraints should be described by referring to the ● frequency that they are addressing Ex: DSP requires dsp_fclk >= 220MHz rather than DSP requires OP1 15 Copyright © 2007 Nokia. All rights reserved.
  • 16. Expressing Constraints: Ranges Functional constraints are mapped into sets of valid ● states to enable much richer operations. Example: ● For embedded targets there would be a one-to-one mapping between operating-point and bits in the vector. ... OPn OP4 OP3 OP2 OP1 OP0 For PC's ACPI: P states are really OPs ● 16 Copyright © 2007 Nokia. All rights reserved.
  • 17. Towards deterministic behaviour •cpufreq_set_policy(): still broken • If there are non overlapping policies, a random frequency will be selected • No way to validate a policy is respected. •RFC: the callback could be replaced with a registered / unregister (frequency) policy interface. static struct cpufreq_constraint mypol = {    .prio = OR_DIE;    .low = FREQ(OP1);    ... err = cpufreq_register_constraint(&mypol); ... cpufreq_unregister_constraint(&mypol); 17 Copyright © 2007 Nokia. All rights reserved.
  • 18. CPUFREQ non-polling governors • The ondemand sawtooth frequency switching algorithm has many good properties. • It should be possible to create a non-polling governor with the properties of ondemand. All what is required is call-backs/notifications from idle. Given Tidle * Compute new (lower freq) * Start timer for going up f timer timer t idle 18 Copyright © 2007 Nokia. All rights reserved.
  • 19. CPUFREQ: transition_latency misuse •ondemand uses transition_latency to calculate the polling interval (1000x). •this weird relation is artificial. •Introduce: •polling_interval •relax_interval i.e. the minimum time to stay on a newly selected frequency. 19 Copyright © 2007 Nokia. All rights reserved.
  • 20. Introduce concept of Target Idle state •For the coming System on Chip in finer geometries we will have to utilize even lower Idle-states like – off(!) Problem: off state introduces longer latencies •We need a mechanism to select the target idle-state. •CPUFREQ could adjust the idle-state that matches the state of the system (mostly idle vs mostly active). •Potential better performance and bigger power- savings. 20 Copyright © 2007 Nokia. All rights reserved.
  • 21. Conclusion: Simple rules •Run as fast as you can for the given the voltage. •Goto to idle with clock-stop when nothing to do. •You can't predict the future – so forget about fine- grained frequency control. •The time spent in idle vs active (a'la OnDemand) is a good key for selecting system performance settings. •Don't change frequency too often or you waste cpu- time waiting for drivers to pause and restart peripherals. 21 Copyright © 2007 Nokia. All rights reserved.
  • 22. Conclusion: Improvements OMAP2 DVFS Interfaces •Use smp-like approach for ARM-DSP •Get frequencies & OP list for each core •Get latency for each OP transition •Add transaction support to clk FW •Cpufreq to use threaded notifications 22 Copyright © 2007 Nokia. All rights reserved.
  • 23. Conclusion: Challenges •Non-SMP systems, with independent OS but intermingled clock and voltage control •Relative high current usage by support components -> nullifies benefit of low frequency and voltage operation point in a dynamic idle system. 23 Copyright © 2007 Nokia. All rights reserved.