selftests/thermel/intel: Add test to read power floor status
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 9 Oct 2023 19:05:38 +0000 (12:05 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 12 Oct 2023 19:09:48 +0000 (21:09 +0200)
commitd4d27e5a1a88f433a4fabf748e00d626be48cd75
tree44fc782c07b435400c2fbe3538f6c10709f50937
parent0e509253924b5eed886029a3b49dcef9f6001c49
selftests/thermel/intel: Add test to read power floor status

Some SoCs have firmware support to notify, if the system can't lower
power limit to a value requested from user space via RAPL constraints.

This test program waits for notification of power floor and prints. This
program can be used to test this feature and also allows other user space
programs to use as a reference.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/testing/selftests/Makefile
tools/testing/selftests/thermal/intel/power_floor/Makefile [new file with mode: 0644]
tools/testing/selftests/thermal/intel/power_floor/power_floor_test.c [new file with mode: 0644]