[PATCH 0/2] powerpc powernv platform support
by Stewart Smith
Hi!
These two patches get powertop to work on current powernv machines.
These are POWER8 based systems from IBM (and others) running OPAL firmware.
The first patch correctly parses /proc/cpuinfo so information about
processors and pstates is displayed (at all).
The second uses the existing userspace interface for getting power consumption.
Stewart Smith (2):
cpu: support powerpc /proc/cpuinfo
Add support for power consumption sensors through opal-sensors sysfs
src/Makefile.am | 2 ++
src/cpu/cpu.cpp | 20 ++++++----------
src/measurement/measurement.cpp | 14 +++++++++++
src/measurement/opal-sensors.cpp | 50 ++++++++++++++++++++++++++++++++++++++++
src/measurement/opal-sensors.h | 41 ++++++++++++++++++++++++++++++++
5 files changed, 114 insertions(+), 13 deletions(-)
create mode 100644 src/measurement/opal-sensors.cpp
create mode 100644 src/measurement/opal-sensors.h
--
2.1.4
6 years, 5 months
Fix crash due to unbounded string copies
by Jan Engelhardt
The following changes since commit 35057dc9d707076a9fe5fee17e2c8357a942e167:
PowerTOP v2.8 (2015-11-05 15:47:37 -0800)
are available in the git repository at:
git://github.com/jengelh/powertop master
for you to fetch changes up to f212625d0acbc6340e6b61b1538f318302c8cb90:
Avoid hardcoding magic values when sizeof can be used (2015-11-13 15:07:56 +0100)
----------------------------------------------------------------
Jan Engelhardt (2):
Fix crash due to buffer overruns
Avoid hardcoding magic values when sizeof can be used
src/calibrate/calibrate.cpp | 16 ++++++------
src/cpu/abstract_cpu.cpp | 18 ++++++-------
src/cpu/cpu.cpp | 18 ++++++-------
src/cpu/cpu_linux.cpp | 36 +++++++++++++-------------
src/cpu/cpudevice.cpp | 5 ++--
src/cpu/intel_cpus.cpp | 6 ++---
src/devices/ahci.cpp | 58 +++++++++++++++++++++---------------------
src/devices/alsa.cpp | 34 ++++++++++++-------------
src/devices/backlight.cpp | 18 ++++++-------
src/devices/devfreq.cpp | 2 +-
src/devices/device.cpp | 4 +--
src/devices/i915-gpu.cpp | 6 ++---
src/devices/network.cpp | 35 ++++++++++++-------------
src/devices/rfkill.cpp | 30 +++++++++++-----------
src/devices/runtime_pm.cpp | 34 ++++++++++++-------------
src/devices/thinkpad-fan.cpp | 2 +-
src/devices/thinkpad-light.cpp | 2 +-
src/devices/usb.cpp | 40 ++++++++++++++---------------
src/devlist.cpp | 14 +++++-----
src/lib.cpp | 10 ++++----
src/lib.h | 7 +++++
src/main.cpp | 6 ++---
src/measurement/acpi.cpp | 11 ++++----
src/measurement/sysfs.cpp | 2 +-
src/parameters/parameters.cpp | 4 +--
src/process/do_process.cpp | 36 +++++++++++++-------------
src/process/interrupt.cpp | 4 +--
src/process/process.cpp | 7 ++---
src/process/processdevice.cpp | 2 +-
src/process/timer.cpp | 2 +-
src/process/work.cpp | 2 +-
src/report/report.cpp | 4 +--
src/tuning/bluetooth.cpp | 4 +--
src/tuning/ethernet.cpp | 6 ++---
src/tuning/runtime.cpp | 14 +++++-----
src/tuning/tunable.cpp | 15 ++++++-----
src/tuning/tuning.cpp | 4 +--
src/tuning/tuningi2c.cpp | 18 ++++++-------
src/tuning/tuningsysfs.cpp | 14 +++++-----
src/tuning/tuningusb.cpp | 28 ++++++++++----------
src/tuning/wifi.cpp | 6 ++---
41 files changed, 298 insertions(+), 286 deletions(-)
6 years, 5 months
[Announce] PowerTOP v2.8
by Alexandra Yates
PowerTOP v2.8 Release
We are pleased to announce the release of PowerTOP v2.8.
About PowerTOP
PowerTOP is a Linux tool to diagnose issues with power consumption and
power management. In addition to being a diagnostic tool, PowerTOP also
has an interactive mode you can use to experiment with various power
management settings, for cases where the Linux distribution has not
enabled those settings.
PowerTOP reports which components in the system are most likely to blame
for higher-than-needed power consumption, ranging from software
applications to active components in the system. Detailed screens are
available for CPU C and P states, device activity, and software activity.
For many years, PowerTOP has been used heavily by Intel, Linux
distributors, and various parts of the open source community.
Highlights
Thank you to everyone who contributed to this release!
Alexandra Yates (26):
Enable PowerTOP support for: BSW, BDW-H
bug-fix: added devices/devreq.h to Makefile
Merge remote-tracking branch 'ext_pwd/master'
Adding support to SKY platforms.
Merge branch 'ext_pwt'
Update internal repo with external mainline
Android Support
Add C7- C10 support for Intel SKY
Merge branch 'pw_ext_gh'
Enabling Intel SKL support
PowerTOP v2.8-rc1
Intel Support BSW C-States
Added SKL C7 support
Update version to PowerTOP v2.8-rc2
Merge branch 'master' of github.com:fenrus75/powertop
Revert "Assign line level based on linux name"
Fix style bugs inherited from the header and menu
PowerTOP v2.8-rc3
Transifex Update
Transifex Update
PowerTOP 2.8-rc4
Transifex Translations
PowerTOP v2.8
David E. Box (1):
Fix Powertop support for Intel Braswell SOC
Jaroslav Škarvada (3):
Patch: Add navigation hint
Use PATH_MAX from limits.h and snprintf instead of sprintf
Improve handling of reporting filenames
More sprintf fixes
Lorenzo Pieralisi (1):
powertop: fix erroneous C state detection on ARM
Michael Mullin (1):
Powertop crashes with 'powertop --auto-tune'
Nivedita Swaminathan (1):
Additional message printed to the powertop output
Romain Naour (2):
add missing sys/time.h header
add missing stdio.h header
Sami Kerola (15):
configure: require new enough automake version
configure: use autoconf-archive ax_pthread.m4
add missing space to --version print out
csstoh.sh: check every single return value
configure: use AC_USE_SYSTEM_EXTENSIONS to determine features
move variables to protected scope
make --quiet option to suppress various info messages
add missing include
squeeze all extra bits from size of binary and html report
fix typo in message
textual: add new line to a message
powertop.m4: GCC_FORTIFY_SOURCE_CC copy idea of macro from
Archlinux pacman
add timestamp to html report
main: fix incompatible operand type
configure: use autoconf-archive ax_cxx_compile_stdcxx_11.m4
--
Thank you,
<Alexandra>
6 years, 6 months
Re: [Powertop] Incorrect reporting for Intel 3930K model and others
by Jan Engelhardt
On Thursday 2015-03-26 19:39, Jan Engelhardt wrote:
>Using powertop v2.7-28-g3f5bccb, combined with the following CPU/system:
[some intel i7-3930K]
>
># powertop
><Frequency Stats tab>:
> Package | Core | CPU 0 CPU 1
> | | Actual 3.4 GHz 3.4 GHz
>Idle 100.0% | Idle 100.0% | Idle 100.0% 100.0%
>
> | Core | CPU 2 CPU 3
> | | Actual 3.4 GHz 3.4 GHz
> | Idle 100.0% | Idle 100.0% 100.0%
>
> | Core | CPU 4 CPU 5
> | | Actual 3.4 GHz 3.4 GHz
> | Idle 100.0% | Idle 100.0% 100.0%
>
> | Core | CPU 6 CPU 7
> | | Actual 3.4 GHz 3.4 GHz
> | Idle 100.0% | Idle 100.0% 100.0%
>
> | Core | CPU 8 CPU 9
> | | Actual 3.4 GHz 3.4 GHz
> | Idle 100.0% | Idle 100.0% 100.0%
This appears fixed when using Linux 4.3.
Both powertop 2.6 and 2.8 show useful info then.
Package | Core | CPU 0 CPU 1
| | Actual 1325 MHz 1331 MHz
Idle 0.3% | Idle 9.5% | Idle 27.1% 28.7%
3.81 GHz 1.2% | 3.81 GHz 0.9% | 3.81 GHz 0.9% 1.5%
3.50 GHz 0.1% | 3.50 GHz 0.1% | 3.50 GHz 0.1% 0.8%
3.60 GHz 0.0% | 3.60 GHz 0.0% | 3.60 GHz 0.0% 10.0%
3.31 GHz 0.0% | 3.31 GHz 0.0% | 3.31 GHz 0.0% 25.9%
3.00 GHz 0.0% | 3.00 GHz 0.0% | 3.00 GHz 0.0% 2.4%
1200 MHz 3.1% | 1200 MHz 1.9% | 1200 MHz 1.0% 1.1%
1.71 GHz 2.8% | 1.71 GHz 2.5% | 1.71 GHz 1.5% 8.4%
1400 MHz 16.8% | 1400 MHz 16.6% | 1400 MHz 14.6% 13.1%
2.31 GHz 1.0% | 2.31 GHz 0.9% | 2.31 GHz 0.7% 7.6%
2.21 GHz 0.0% | 2.21 GHz 0.0% | 2.21 GHz 0.0% 0.5%
1.91 GHz 10.0% | 1.91 GHz 10.0% | 1.91 GHz 5.9%
1300 MHz 36.4% | 1300 MHz 33.2% | 1300 MHz 29.2%
1.80 GHz 1.2% | 1.80 GHz 1.1% | 1.60 GHz 7.8%
1500 MHz 15.6% | 1500 MHz 12.8% | 1500 MHz 10.1%
1.60 GHz 10.9% | 1.60 GHz 9.9% | 1.80 GHz 0.6%
2.00 GHz 0.5% | 2.00 GHz 0.5% | 2.00 GHz 0.5%
[...]
6 years, 6 months
[Announce] PowerTOP v2.8-rc4
by Alexandra Yates
This contains the accepted patches from mailing list. Some bug fixes,
and version string changes. Please give it a test.
--
Thank you,
<Alexandra>
6 years, 6 months