tools, testing, add test for intel_pstate driver
authorPrarit Bhargava <prarit@redhat.com>
Wed, 18 Nov 2015 17:04:48 +0000 (12:04 -0500)
committerShuah Khan <shuahkh@osg.samsung.com>
Mon, 23 Nov 2015 20:30:59 +0000 (13:30 -0700)
commited2d26d7cbccb1aa719a5d3fb8e87ef6610cb530
treebd01c870e88e65bdf0dd6e0794fcf0d1f12d7ee0
parent7e722473811a4f82a48bb2ef934ff44ca9ab8fa5
tools, testing, add test for intel_pstate driver

This test used the cpupower utility to set the cpu frequency from the
maximum turbo value to the minimum supported value in steps of 100 MHz.

The results are displayed in a table which indicate the "Target" state,
or the requested frequency in MHz, the Actual frequency, as read from
/proc/cpuinfo, the difference between the Target and Actual frequencies,
and the value of MSR 0x199 (MSR_IA32_PERF_CTL) which indicates what
pstate the cpu is in, and the value of
/sys/devices/system/cpu/intel_pstate/max_perf_pct X maximum turbo state

Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: linux-api@vger.kernel.org
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/intel_pstate/Makefile [new file with mode: 0644]
tools/testing/selftests/intel_pstate/aperf.c [new file with mode: 0644]
tools/testing/selftests/intel_pstate/msr.c [new file with mode: 0644]
tools/testing/selftests/intel_pstate/run.sh [new file with mode: 0755]