lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250522061122.2149188-1-fj5851bi@fujitsu.com>
Date: Thu, 22 May 2025 15:10:57 +0900
From: Shinji Nomoto <fj5851bi@...itsu.com>
To: Thomas Renninger <trenn@...e.com>,
	Shuah Khan <shuah@...nel.org>,
	"John B. Wyatt IV" <jwyatt@...hat.com>,
	John Kacur <jkacur@...hat.com>,
	Shinji Nomoto <fj5851bi@...itsu.com>,
	linux-pm@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH 0/2] cpupower: Allow control of boost feature on non-x86 based systems with boost support.

The cpufreq subsystem has a generic sysfs interface for controlling boost
(/sys/devices/system/cpu/cpufreq/boost).
The sysfs interface can be used to enable boost control from the cpupower
command on non-x86 platforms as well. So, allow boost controlling on
non-x86 system if boost sysfs file exists.

The set subcommand enables/disables the boost feature using the following
syntax:
  cpupower set --boost 1
  cpupower set --boost 0

The --boost option is an alias for --turbo-boost. We provided the neutral
option name because the name "turbo boost" is specific to Intel technology.

The frequency-info subcommand displays the enabled/disabled state of
the boost feature as follows:
  boost state support:
    Active: yes (or no)

Additionally, there was an existing bug in the option handling,
which I fixed in the first commit.  The fix is independent of the added
functionality.

Shinji Nomoto (2):
  cpupower: Fix a bug where the -t option of the set subcommand was not
    working.
  cpupower: Allow control of boost feature on non-x86 based systems with
    boost support.

 tools/power/cpupower/man/cpupower-set.1      |  7 +-
 tools/power/cpupower/utils/cpufreq-info.c    | 16 ++++-
 tools/power/cpupower/utils/cpupower-set.c    |  5 +-
 tools/power/cpupower/utils/helpers/helpers.h | 14 ++--
 tools/power/cpupower/utils/helpers/misc.c    | 76 ++++++++++++++------
 5 files changed, 83 insertions(+), 35 deletions(-)

-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ