Bug 1351346 - CPU Freq Scaling module not loaded by default for ppc64le
Summary: CPU Freq Scaling module not loaded by default for ppc64le
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 23
Hardware: ppc64le
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-29 20:04 UTC by adi.gangidi
Modified: 2016-08-16 00:50 UTC (History)
6 users (show)

Fixed In Version: kernel-4.6.6-300.fc24
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-15 21:24:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description adi.gangidi 2016-06-29 20:04:53 UTC
Description of problem:

In Fedora PPC64LE, to optimize CPU frequency and observe CPU frequency scaling we first need load the kernel module specific to CPU freq (powernv-cpufreq) manually. Not loading this kernel module will force the system to run in defensive CPU Frequency setting (for eg 2GHz instead of 3.5GHz on Barreleye running Fedora 23)

In other platforms in Fedora and in other ppc64le distributions CPU frequency scaling kernel module corresponding to the platform is enabled by default. 

"sudo modprobe powernv-cpufreq" seems to enable the frequency scaling .

Version-Release number of selected component (if applicable):
Fedora 23 

How reproducible:
Always

Steps to Reproduce:
1.Install Fedora 23 on PPC system
2.Bootup
3.Measure frequency (ppc64_cpu --frequency)
4.Observe that measured frequency will be much lesser than max frequency of the system

Actual results:
For Barreleye (openpower ppc64le server)
Before loading the module:
[root@localhost ~]# sudo ppc64_cpu  –frequency
min:    2.063 GHz (cpu 126)
max:    2.063 GHz (cpu 0)
avg:    2.063 GHz


Expected results:
[live@localhost ~]$ sudo ppc64_cpu  –frequency
min:    3.494 GHz (cpu 120)
max:    3.494 GHz (cpu 7)
avg:    3.494 GHz

Additional info:

Comment 1 Josh Boyer 2016-06-29 20:10:40 UTC
In the other distributions, is the functionality built into the kernel or is it also loaded as a module?

Typically the kernel doesn't load modules itself.  Userspace is responsible for doing that, so if those distributions are doing it then it would be good to know how.

Comment 2 adi.gangidi 2016-07-07 23:10:37 UTC
hi John Boyer

I believe it's loaded as a module. But here's a issue that was created to implement similar feature in Ubuntu. You can use it as cross reference

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1324571

Comment 3 Josh Boyer 2016-07-13 18:07:16 UTC
(In reply to adi.gangidi from comment #2)
> hi John Boyer
> 
> I believe it's loaded as a module. But here's a issue that was created to
> implement similar feature in Ubuntu. You can use it as cross reference
> 
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1324571

It's not loaded as a module.  They built it into the kernel.

Comment 4 adi.gangidi 2016-07-13 18:13:50 UTC
True. It WAS loaded as a module and the request was to make it built in to the kernel. How do we proceed ?

Comment 5 Josh Boyer 2016-08-08 17:13:05 UTC
I've made the change on all branches today.  It will show up in the next build of each.

Comment 6 adi.gangidi 2016-08-08 17:34:43 UTC
Thanks for getting this change. Will test and provide feedback.

Comment 7 Fedora Update System 2016-08-11 13:52:58 UTC
kernel-4.6.6-300.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-90f142aa64

Comment 8 Fedora Update System 2016-08-11 13:54:27 UTC
kernel-4.6.6-200.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-4b67f775fe

Comment 9 Fedora Update System 2016-08-12 02:54:41 UTC
kernel-4.6.6-200.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-4b67f775fe

Comment 10 Fedora Update System 2016-08-12 03:02:36 UTC
kernel-4.6.6-300.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-90f142aa64

Comment 11 Fedora Update System 2016-08-15 21:23:42 UTC
kernel-4.6.6-300.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2016-08-16 00:50:32 UTC
kernel-4.6.6-200.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.