Skip to contentSkip to conversation

How to enable dvfs in omap.

DISCUSSION Mohamed Thalib H 5 participants 11 messages Feb 12, 2011 – Feb 14, 2011

lore
Share & tools
lore
#0 lore raw

Hi all,

I am using omap 2.6.37 running overo board. I have enabled the following option in the kernel menunconfig,

CPU Power Management --->

│ │ [*] CPU Frequency scaling
│ │ [ ] Enable CPUfreq debugging
│ │ <*> CPU frequency translation statistics
│ │ [*] CPU frequency translation statistics details
│ │ Default CPUFreq governor (ondemand) --->
│ │ -*- 'performance' governor
│ │ <M> 'powersave' governor
│ │ <*> 'userspace' governor for userspace frequency scaling
│ │ -*- 'ondemand' cpufreq policy governor
│ │ <*> 'conservative' cpufreq governor
│ │ [ ] CPU idle PM support

but still I could find the sys and entry in /sys/devices/system/cpu/cpufreq/ directory. Could some one help me to enable DVFS.

root@overo:/sys/devices/system/cpu# ls
cpu0 kernel_max online possible
cpufreq offline perf_events present
root@overo:/sys/devices/system/cpu# cd cpu0/
root@overo:/sys/devices/system/cpu/cpu0# ls
crash_notes
root@overo:/sys/devices/system/cpu/cpu0# cd ..
root@overo:/sys/devices/system/cpu# cd cpufreq/
root@overo:/sys/devices/system/cpu/cpufreq# ls
root@overo:/sys/devices/system/cpu/cpufreq#
Signature · 7 lines
Regards,
Mohamed Thalib H

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw
Quoted 28 lines

-----Original Message-----
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of Mohamed Thalib H
Sent: Saturday, February 12, 2011 4:20 PM
To: OMAP-KML
Subject: How to enable dvfs in omap.

Hi all,

I am using omap 2.6.37 running overo board. I have enabled the following
option in the kernel menunconfig,

CPU Power Management --->

│ │ [*] CPU Frequency scaling
│ │ [ ] Enable CPUfreq debugging
│ │ <*> CPU frequency translation statistics
│ │ [*] CPU frequency translation statistics details
│ │ Default CPUFreq governor (ondemand) --->
│ │ -*- 'performance' governor
│ │ <M> 'powersave' governor
│ │ <*> 'userspace' governor for userspace frequency scaling
│ │ -*- 'ondemand' cpufreq policy governor
│ │ <*> 'conservative' cpufreq governor
│ │ [ ] CPU idle PM support
Quoted 4 lines

but still I could find the sys and entry in /sys/devices/system/cpu/cpufreq/ directory. Could some one help me to enable DVFS.

That's because tts not supported yet.
You may want to look at this[1] series which is in progress to enable the support.

Regards,
Santosh

[1] [PATCH 00/13] OMAP: Basic DVFS Framework
http://www.spinics.net/lists/linux-omap/msg44393.html
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

Hi Santosh,

Thanks for the help .

Regareds,
Mohamed Thalib H.

Quoted 37 lines · Santosh Shilimkar
Quoted 28 lines

-----Original Message-----
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of Mohamed Thalib H
Sent: Saturday, February 12, 2011 4:20 PM
To: OMAP-KML
Subject: How to enable dvfs in omap.

Hi all,

I am using omap 2.6.37 running overo board. I have enabled the following
option in the kernel menunconfig,

CPU Power Management --->

│ │ [*] CPU Frequency scaling
│ │ [ ] Enable CPUfreq debugging
│ │<*>  CPU frequency translation statistics
│ │ [*] CPU frequency translation statistics details
│ │ Default CPUFreq governor (ondemand) --->
│ │ -*- 'performance' governor
│ │<M>  'powersave' governor
│ │<*>  'userspace' governor for userspace frequency scaling
│ │ -*- 'ondemand' cpufreq policy governor
│ │<*>  'conservative' cpufreq governor
│ │ [ ] CPU idle PM support
Quoted 4 lines

but still I could find the sys and entry in /sys/devices/system/cpu/cpufreq/ directory. Could some one help me to enable DVFS.

That's because tts not supported yet.
You may want to look at this[1] series which is in progress to enable the support.

Quoted 6 lines

Regards,
Santosh

[1] [PATCH 00/13] OMAP: Basic DVFS Framework
http://www.spinics.net/lists/linux-omap/msg44393.html

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

Mohamed Thalib H wrote, on 02/12/2011 04:42 PM:

Quoted 50 lines

Hi Santosh,

Thanks for the help .

Regareds,
Mohamed Thalib H.

Quoted 42 lines · Santosh Shilimkar
Quoted 28 lines

-----Original Message-----
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of Mohamed Thalib H
Sent: Saturday, February 12, 2011 4:20 PM
To: OMAP-KML
Subject: How to enable dvfs in omap.

Hi all,

I am using omap 2.6.37 running overo board. I have enabled the following
option in the kernel menunconfig,

CPU Power Management --->

│ │ [*] CPU Frequency scaling
│ │ [ ] Enable CPUfreq debugging
│ │<*> CPU frequency translation statistics
│ │ [*] CPU frequency translation statistics details
│ │ Default CPUFreq governor (ondemand) --->
│ │ -*- 'performance' governor
│ │<M> 'powersave' governor
│ │<*> 'userspace' governor for userspace frequency scaling
│ │ -*- 'ondemand' cpufreq policy governor
│ │<*> 'conservative' cpufreq governor
│ │ [ ] CPU idle PM support
Quoted 4 lines

but still I could find the sys and entry in /sys/devices/system/cpu/cpufreq/ directory. Could some one help me to enable DVFS.

That's because tts not supported yet.
You may want to look at this[1] series which is in progress to enable the support.

Regards,
Santosh

[1] [PATCH 00/13] OMAP: Basic DVFS Framework
http://www.spinics.net/lists/linux-omap/msg44393.html

if you are interested,
I rebased the last set with k.org and fixes from pm tree for development for smartreflex class 1.5 here:
http://gitorious.org/linux-omap-nm-sr/linux-omap-sr/commits/dvfs

git://gitorious.org/linux-omap-nm-sr/linux-omap-sr.git
branch: dvfs

Signature · 6 lines
Regards,
Nishanth Menon
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw
Quoted 52 lines · Nishanth Menon

Mohamed Thalib H wrote, on 02/12/2011 04:42 PM:

Quoted 50 lines

Hi Santosh,

Thanks for the help .

Regareds,
Mohamed Thalib H.

Quoted 42 lines · Santosh Shilimkar
Quoted 28 lines

-----Original Message-----
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of Mohamed Thalib H
Sent: Saturday, February 12, 2011 4:20 PM
To: OMAP-KML
Subject: How to enable dvfs in omap.

Hi all,

I am using omap 2.6.37 running overo board. I have enabled the following
option in the kernel menunconfig,

CPU Power Management --->

│ │ [*] CPU Frequency scaling
│ │ [ ] Enable CPUfreq debugging
│ │<*> CPU frequency translation statistics
│ │ [*] CPU frequency translation statistics details
│ │ Default CPUFreq governor (ondemand) --->
│ │ -*- 'performance' governor
│ │<M> 'powersave' governor
│ │<*> 'userspace' governor for userspace frequency scaling
│ │ -*- 'ondemand' cpufreq policy governor
│ │<*> 'conservative' cpufreq governor
│ │ [ ] CPU idle PM support
Quoted 4 lines

but still I could find the sys and entry in /sys/devices/system/cpu/cpufreq/ directory. Could some one help me to enable DVFS.

That's because tts not supported yet.
You may want to look at this[1] series which is in progress to enable the support.

Regards,
Santosh

[1] [PATCH 00/13] OMAP: Basic DVFS Framework
http://www.spinics.net/lists/linux-omap/msg44393.html

Quoted 8 lines

if you are interested,
I rebased the last set with k.org and fixes from pm tree for development for smartreflex class 1.5 here:
http://gitorious.org/linux-omap-nm-sr/linux-omap-sr/commits/dvfs

git://gitorious.org/linux-omap-nm-sr/linux-omap-sr.git
branch: dvfs

Thanks for your help Nishanth,

Surely I will pull the git and checkout..

Regards,
Thalib.
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw
In reply to Nishanth Menon

Dear Nishanth,

Thank you for the git.
The pull worked good without problem.

During compilation i found such problem:

arch/arm/plat-omap/cpu-omap.c:142: error: 'struct cpuinfo_arm' has no member named 'loops_per_jiffy'

Is there solution for the issue?

Gery

Quoted 63 lines · Nishanth Menon

Mohamed Thalib H wrote, on 02/12/2011 04:42 PM:

Quoted 52 lines

Hi Santosh,

Thanks for the help .

Regareds,
Mohamed Thalib H.

Quoted 43 lines · Santosh Shilimkar
Quoted 29 lines

-----Original Message-----
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of Mohamed Thalib H
Sent: Saturday, February 12, 2011 4:20 PM
To: OMAP-KML
Subject: How to enable dvfs in omap.

Hi all,

I am using omap 2.6.37 running overo board. I have enabled the following
option in the kernel menunconfig,

CPU Power Management --->

│ │ [*] CPU Frequency scaling
│ │ [ ] Enable CPUfreq debugging
│ │<*> CPU frequency translation statistics
│ │ [*] CPU frequency translation statistics details
│ │ Default CPUFreq governor (ondemand) --->
│ │ -*- 'performance' governor
│ │<M> 'powersave' governor
│ │<*> 'userspace' governor for userspace frequency scaling
│ │ -*- 'ondemand' cpufreq policy governor
│ │<*> 'conservative' cpufreq governor
│ │ [ ] CPU idle PM support
Quoted 4 lines

but still I could find the sys and entry in /sys/devices/system/cpu/cpufreq/ directory. Could some one help me to enable DVFS.

That's because tts not supported yet.
You may want to look at this[1] series which is in progress to enable the support.

Regards,
Santosh

[1] [PATCH 00/13] OMAP: Basic DVFS Framework
http://www.spinics.net/lists/linux-omap/msg44393.html

if you are interested,
I rebased the last set with k.org and fixes from pm tree for development for smartreflex class 1.5 here:
http://gitorious.org/linux-omap-nm-sr/linux-omap-sr/commits/dvfs

git://gitorious.org/linux-omap-nm-sr/linux-omap-sr.git
branch: dvfs

Quoted 8 lines

--
Regards,
Nishanth Menon
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw

Kahn, Gery wrote, on 02/13/2011 08:39 PM:

Quoted 6 lines

Thank you for the git.
The pull worked good without problem.

During compilation i found such problem:

arch/arm/plat-omap/cpu-omap.c:142: error: 'struct

' has no

Quoted 4 lines

member named 'loops_per_jiffy'

Is there solution for the issue?

Aaah.. one possibility is that you may have disabled CONFIG_SMP in your defconfig

well.. baselined to 2.6.38-rc4, it builds fine for me. I am using the omap2plus_defconfig
http://pastebin.mozilla.org/1055575 (for output from savedefconfig)

Looking at the source, arch/arm/include/asm/cpu.h
loops_per_jiffy is under CONFIG_SMP and since the omap2plus_defconfig builds for OMAP4 as well by default, I am guessing this bug was not immediately visible.. You may want to comment on the appropriate patch from Vishwa for this. might as well remove the loops_per_jiffy outside the CONFIG_SMP

Signature · 2 lines
Regards,
Nishanth Menon
#7 lore raw

Dear Nishanth,

Quoted 22 lines · Nishanth Menon

Kahn, Gery wrote, on 02/13/2011 08:39 PM:

Quoted 7 lines

Thank you for the git.
The pull worked good without problem.

During compilation i found such problem:

arch/arm/plat-omap/cpu-omap.c:142: error: 'struct

' has no

Quoted 5 lines

member named 'loops_per_jiffy'

Is there solution for the issue?

Aaah.. one possibility is that you may have disabled CONFIG_SMP in your defconfig

well.. baselined to 2.6.38-rc4, it builds fine for me. I am using the omap2plus_defconfig
http://pastebin.mozilla.org/1055575 (for output from savedefconfig)

Quoted 6 lines

Looking at the source, arch/arm/include/asm/cpu.h loops_per_jiffy is under CONFIG_SMP and since the omap2plus_defconfig builds for OMAP4 as well by default, I am guessing this bug was not immediately visible.. You may want to comment on the appropriate patch from Vishwa for this. might as well remove the loops_per_jiffy outside the CONFIG_SMP

This is good idea. Thank you.

Quoted 4 lines

--
Regards,
Nishanth Menon

Did you able to run cpu at 1.2GHz at Zoom3 ?

Gery

#8 lore raw
Quoted 2 lines · Gery

Did you able to run cpu at 1.2GHz at Zoom3 ?

I know some people in TI would have done it. I personally have not worked on 1.2GHz.

Regards,
Nishanth Menon

#9 lore raw
In reply to Nishanth Menon

Op 12 feb 2011, om 12:51 heeft Nishanth Menon het volgende geschreven:

Quoted 49 lines

Mohamed Thalib H wrote, on 02/12/2011 04:42 PM:

Quoted 48 lines

Hi Santosh,

Thanks for the help .

Regareds,
Mohamed Thalib H.

Quoted 40 lines · Santosh Shilimkar
Quoted 28 lines

-----Original Message-----
From: [email protected] [mailto:linux-omap- [email protected]] On Behalf Of Mohamed Thalib H
Sent: Saturday, February 12, 2011 4:20 PM
To: OMAP-KML
Subject: How to enable dvfs in omap.

Hi all,

I am using omap 2.6.37 running overo board. I have enabled the following
option in the kernel menunconfig,

CPU Power Management --->

│ │ [*] CPU Frequency scaling
│ │ [ ] Enable CPUfreq debugging
│ │<*> CPU frequency translation statistics
│ │ [*] CPU frequency translation statistics details
│ │ Default CPUFreq governor (ondemand) --->
│ │ -*- 'performance' governor
│ │<M> 'powersave' governor
│ │<*> 'userspace' governor for userspace frequency scaling
│ │ -*- 'ondemand' cpufreq policy governor
│ │<*> 'conservative' cpufreq governor
│ │ [ ] CPU idle PM support
Quoted 4 lines

but still I could find the sys and entry in /sys/devices/system/cpu/cpufreq/ directory. Could some one help me to enable DVFS.

That's because tts not supported yet.
You may want to look at this[1] series which is in progress to enable the support.

Regards,
Santosh

Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

[1] [PATCH 00/13] OMAP: Basic DVFS Framework
http://www.spinics.net/lists/linux-omap/msg44393.html

if you are interested,
I rebased the last set with k.org and fixes from pm tree for development for smartreflex class 1.5 here:
http://gitorious.org/linux-omap-nm-sr/linux-omap-sr/commits/dvfs

Do you also have a branch that is fully rebased with no merge commits?

regards,

Koen--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#10 lore raw

Koen Kooi wrote, on 02/13/2011 09:08 PM:

Quoted 1 line

Do you also have a branch that is fully rebased with no merge commits?

well.. the tree's pm-base is a merge from Kevin's pm branch to the latest RC. that is the baseline for any devel for -39-rc1 (contains cpufreq, pm-fixes for .38rcs + accepted patches for -39) - so I keep merging in Kevin's branches once in a while.. but feel free to do the same/cherry pick to your tree as needed. I will ofcourse replace the dvfs branch with the latest patches from Vishwa - at least the one i have is the one that was last publically posted, things are due to change.. so dont expect me to maintain a tree :) just sharing what ever I found interesting ;)

Signature · 2 lines
Regards,
Nishanth Menon