Skip to contentSkip to conversation

PM / OPP: improve introductory documentation

PATCH Superseded Nishanth Menon 2 participants 5 messages Feb 26, 2013 Suspend to RAM

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PM / OPP: improve introductory documentation

Make Operating Performance Points (OPP) library introductory chapter a little more reader-friendly. Split the chapter into two sections and highlight the definition with an example.

---
based on v3.8 tag

 Documentation/power/opp.txt |   23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)
Documentation/power/opp.txt +19 -4
index 3035d00..b4f1870 100644
@@ -1,6 +1,5 @@
-*=============*
-* OPP Library *
-*=============*
+Operating Performance Points (OPP) Library
+==========================================
 
 (C) 2009-2010 Nishanth Menon <[email protected]>, Texas Instruments Incorporated
 
@@ -16,15 +15,31 @@ Contents
 
 1. Introduction
 ===============
+1.1 What is an Operating Performance Point (OPP)?
+
 Complex SoCs of today consists of a multiple sub-modules working in conjunction.
 In an operational system executing varied use cases, not all modules in the SoC
 need to function at their highest performing frequency all the time. To
 facilitate this, sub-modules in a SoC are grouped into domains, allowing some
 domains to run at lower voltage and frequency while other domains are loaded
-more. The set of discrete tuples consisting of frequency and voltage pairs that
+more.
+
+The set of discrete tuples consisting of frequency and voltage pairs that
 the device will support per domain are called Operating Performance Points or
 OPPs.
 
+As an example:
+Let us consider an MPU device which supports the following:
+{300MHz at minimum voltage of 1V}, {800MHz at minimum voltage of 1.2V},
+{1GHz at minimum voltage of 1.3V}
+
+We can represent these as three OPPs as the following {Hz, uV} tuples:
+{300000000, 1000000}
+{600000000, 1200000}
+{100000000, 1300000}
+
+1.2 Operating Performance Points Library
+
 OPP library provides a set of helper functions to organize and query the OPP
 information. The library is located in drivers/base/power/opp.c and the header
 is located in include/linux/opp.h. OPP library can be enabled by enabling
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 31 lines · Nishanth Menon

Make Operating Performance Points (OPP) library introductory chapter a little more reader-friendly. Split the chapter into two sections and highlight the definition with an example.

---
based on v3.8 tag

 Documentation/power/opp.txt |   23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)
Documentation/power/opp.txt +2 -3
index 3035d00..b4f1870 100644
@@ -1,6 +1,5 @@
-*=============*
-* OPP Library *
-*=============*
+Operating Performance Points (OPP) Library
+==========================================
 
 (C) 2009-2010 Nishanth Menon <[email protected]>, Texas Instruments Incorporated
 
@@ -16,15 +15,31 @@ Contents
 
 1. Introduction

Documentation/power/opp.txt Contents · line 25

Quoted 10 lines
Documentation/power/opp.txt +3 -1
 ===============
+1.1 What is an Operating Performance Point (OPP)?
+
 Complex SoCs of today consists of a multiple sub-modules working in conjunction.
 In an operational system executing varied use cases, not all modules in the SoC
 need to function at their highest performing frequency all the time. To
 facilitate this, sub-modules in a SoC are grouped into domains, allowing some
 domains to run at lower voltage and frequency while other domains are loaded
-more. The set of discrete tuples consisting of frequency and voltage pairs that
+more.

huh???

Documentation/power/opp.txt Contents · line 38

Quoted 13 lines
Documentation/power/opp.txt +10 -0
+
+The set of discrete tuples consisting of frequency and voltage pairs that
 the device will support per domain are called Operating Performance Points or
 OPPs.
 
+As an example:
+Let us consider an MPU device which supports the following:
+{300MHz at minimum voltage of 1V}, {800MHz at minimum voltage of 1.2V},
+{1GHz at minimum voltage of 1.3V}
+
+We can represent these as three OPPs as the following {Hz, uV} tuples:
+{300000000, 1000000}
+{600000000, 1200000}
    800000000

Documentation/power/opp.txt Contents · line 39

Quoted 1 line
Documentation/power/opp.txt +1 -0
+{100000000, 1300000}
    1000000000 ??
Quoted 7 lines
Documentation/power/opp.txt +3 -0
+
+1.2 Operating Performance Points Library
+
 OPP library provides a set of helper functions to organize and query the OPP
 information. The library is located in drivers/base/power/opp.c and the header
 is located in include/linux/opp.h. OPP library can be enabled by enabling
Signature · 1 line
~Randy
#2 lore raw
Quoted 1 line · Randy Dunlap

On 02/26/13 09:37, Nishanth Menon wrote:

[..]

Quoted 14 lines

Documentation/power/opp.txt Contents · line 25

Quoted 12 lines

1. Introduction
===============
+1.1 What is an Operating Performance Point (OPP)?

Documentation/power/opp.txt +2 -1
+
 Complex SoCs of today consists of a multiple sub-modules working in conjunction.
 In an operational system executing varied use cases, not all modules in the SoC
 need to function at their highest performing frequency all the time. To
 facilitate this, sub-modules in a SoC are grouped into domains, allowing some
 domains to run at lower voltage and frequency while other domains are loaded
-more. The set of discrete tuples consisting of frequency and voltage pairs that
+more.

huh???

I split the definition line to it's own paragraph below. But, I think you intend to say we could improve better the remaining paragraph. Could you elaborate your thoughts?

Quoted 16 lines
Quoted 4 lines
Documentation/power/opp.txt +2 -0
+
+The set of discrete tuples consisting of frequency and voltage pairs that
 the device will support per domain are called Operating Performance Points or

Documentation/power/opp.txt Contents · line 38

Quoted 10 lines
Documentation/power/opp.txt +8 -0
 OPPs.
 
+As an example:
+Let us consider an MPU device which supports the following:
+{300MHz at minimum voltage of 1V}, {800MHz at minimum voltage of 1.2V},
+{1GHz at minimum voltage of 1.3V}
+
+We can represent these as three OPPs as the following {Hz, uV} tuples:
+{300000000, 1000000}
+{600000000, 1200000}
    800000000
Quoted 2 lines
Quoted 1 line

+{100000000, 1300000}

    1000000000 ??

Thanks for catching it. will fix it in next rev.

Signature · 2 lines
Regards,
Nishanth Menon
#3 lore raw
Quoted 17 lines · Nishanth Menon
Quoted 1 line · Randy Dunlap

On 02/26/13 09:37, Nishanth Menon wrote:

[..]

Quoted 14 lines

Documentation/power/opp.txt Contents · line 25

Quoted 12 lines

1. Introduction
===============
+1.1 What is an Operating Performance Point (OPP)?

Documentation/power/opp.txt +2 -1
+
 Complex SoCs of today consists of a multiple sub-modules working in conjunction.
 In an operational system executing varied use cases, not all modules in the SoC
 need to function at their highest performing frequency all the time. To
 facilitate this, sub-modules in a SoC are grouped into domains, allowing some
 domains to run at lower voltage and frequency while other domains are loaded
-more. The set of discrete tuples consisting of frequency and voltage pairs that
+more.

huh???

Quoted 3 lines

I split the definition line to it's own paragraph below. But, I think you intend to say we could improve better the remaining paragraph. Could you elaborate your thoughts?

"while other domains are loaded more." Some people probably understand that OK; I dunno. I would rather see it written out more verbosely, e.g.:

"while other domains run at voltage/frequency pairs that are higher."

but partly I was confused by the diff(1) lines. my bad :(

Quoted 19 lines
Quoted 15 lines

Documentation/power/opp.txt Contents · line 38

Quoted 13 lines
Documentation/power/opp.txt +10 -0
+
+The set of discrete tuples consisting of frequency and voltage pairs that
 the device will support per domain are called Operating Performance Points or
 OPPs.
 
+As an example:
+Let us consider an MPU device which supports the following:
+{300MHz at minimum voltage of 1V}, {800MHz at minimum voltage of 1.2V},
+{1GHz at minimum voltage of 1.3V}
+
+We can represent these as three OPPs as the following {Hz, uV} tuples:
+{300000000, 1000000}
+{600000000, 1200000}
    800000000
Quoted 2 lines
Quoted 1 line

+{100000000, 1300000}

    1000000000 ??

Thanks for catching it. will fix it in next rev.

Signature · 1 line
~Randy
#4 lore raw
Quoted 18 lines · Randy Dunlap
Quoted 17 lines · Nishanth Menon
Quoted 1 line · Randy Dunlap

On 02/26/13 09:37, Nishanth Menon wrote:

[..]

Quoted 14 lines

Documentation/power/opp.txt Contents · line 25

Quoted 12 lines

1. Introduction
===============
+1.1 What is an Operating Performance Point (OPP)?

Documentation/power/opp.txt +2 -1
+
 Complex SoCs of today consists of a multiple sub-modules working in conjunction.
 In an operational system executing varied use cases, not all modules in the SoC
 need to function at their highest performing frequency all the time. To
 facilitate this, sub-modules in a SoC are grouped into domains, allowing some
 domains to run at lower voltage and frequency while other domains are loaded
-more. The set of discrete tuples consisting of frequency and voltage pairs that
+more.

huh???

Quoted 8 lines
Quoted 3 lines

I split the definition line to it's own paragraph below. But, I think you intend to say we could improve better the remaining paragraph. Could you elaborate your thoughts?

"while other domains are loaded more." Some people probably understand that OK; I dunno. I would rather see it written out more verbosely, e.g.:

"while other domains run at voltage/frequency pairs that are higher."

You are right, being verbose here makes sense. I will pick up your wording here in v2. Thanks for reviewing and helping improve.

Quoted 2 lines

but partly I was confused by the diff(1) lines. my bad :(

no worries.

Signature · 2 lines
Regards,
Nishanth Menon