linux/drivers/powercap
Prarit Bhargava ec9f4ebc15 powercap / RAPL: fix BIOS lock check
commit 79a21dbfae upstream.

Intel RAPL initialized on several systems where the BIOS lock bit (msr
0x610, bit 63) was set.  This occured because the return value of
rapl_read_data_raw() was being checked, rather than the value of the variable
passed in, locked.

This patch properly implments the rapl_read_data_raw() call to check the
variable locked, and now the Intel RAPL driver outputs the warning:

	intel_rapl: RAPL package 0 domain package locked by BIOS

and does not initialize for the package.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Acked-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
History 2016-01-25 10:43:36 +00:00
..
intel_rapl.c powercap / RAPL: fix BIOS lock check 2016-01-25 10:43:36 +00:00
Kconfig PowerCap: Introduce Intel RAPL power capping driver 2013-10-18 13:29:52 +02:00
Makefile PowerCap: Introduce Intel RAPL power capping driver 2013-10-18 13:29:52 +02:00
powercap_sys.c PowerCap: Fix mode for energy counter 2013-12-05 02:05:48 +01:00