<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/drivers/powercap, branch v4.4.159</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.4.159</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.4.159'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2018-04-13T17:50:05Z</updated>
<entry>
<title>PowerCap: Fix an error code in powercap_register_zone()</title>
<updated>2018-04-13T17:50:05Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2017-05-10T19:40:06Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=d57f7ddcc20589ba05b30fc48dd42a40ece32e56'/>
<id>urn:sha1:d57f7ddcc20589ba05b30fc48dd42a40ece32e56</id>
<content type='text'>
[ Upstream commit 216c4e9db4c9d1d2a382b42880442dc632cd47d9 ]

In the current code we accidentally return the successful result from
idr_alloc() instead of a negative error pointer.  The caller is looking
for an error pointer and so it treats the returned value as a valid
pointer.

This one might be a bit serious because if it lets people get around the
kernel's protection for remapping NULL.  I'm not sure.

Fixes: 75d2364ea0ca (PowerCap: Add class driver)
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Reviewed-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>powercap / RAPL: fix BIOS lock check</title>
<updated>2015-12-12T01:31:11Z</updated>
<author>
<name>Prarit Bhargava</name>
<email>prarit@redhat.com</email>
</author>
<published>2015-12-09T13:31:12Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=79a21dbfae3cd40d5a801778071a9967b79c2c20'/>
<id>urn:sha1:79a21dbfae3cd40d5a801778071a9967b79c2c20</id>
<content type='text'>
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 &lt;prarit@redhat.com&gt;
Acked-by: Jacob Pan &lt;jacob.jun.pan@linux.intel.com&gt;
Cc: All applicable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>powercap / RAPL: Enable Broxton RAPL support</title>
<updated>2015-10-16T20:30:48Z</updated>
<author>
<name>Amy Wiles</name>
<email>amy.l.wiles@intel.com</email>
</author>
<published>2015-10-14T15:09:15Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=89e7b2553ae182a4b2a19e2e99a59ad0d3ccb1ed'/>
<id>urn:sha1:89e7b2553ae182a4b2a19e2e99a59ad0d3ccb1ed</id>
<content type='text'>
Broxton CPU ID for the RAPL driver.

Signed-off-by: Amy Wiles &lt;amy.l.wiles@intel.com&gt;
[ rjw: Subject and changelog. ]
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>powercap / RAPL: disable the 2nd power limit properly</title>
<updated>2015-08-28T23:46:40Z</updated>
<author>
<name>Seiichi Ikarashi</name>
<email>s.ikarashi@jp.fujitsu.com</email>
</author>
<published>2015-08-19T05:26:03Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=5021282cc483d4126c1704942adb74806f7d15d6'/>
<id>urn:sha1:5021282cc483d4126c1704942adb74806f7d15d6</id>
<content type='text'>
Let rapl_unregister_powercap() disable the second power limit
only if it exists.
Intel64 SDM Vol.3 14.9 says that the package domain has it
but neither the power plane domain nor the DRAM domain has it.

Signed-off-by: Seiichi Ikarashi &lt;s.ikarashi@jp.fujitsu.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>powercap / RAPL: Add support for Broadwell-H</title>
<updated>2015-08-01T00:05:57Z</updated>
<author>
<name>Radivoje Jovanovic</name>
<email>radivoje.jovanovic@intel.com</email>
</author>
<published>2015-07-31T15:07:36Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=4e0bec9e833a6884dc2e242e45e0ebd99f46624e'/>
<id>urn:sha1:4e0bec9e833a6884dc2e242e45e0ebd99f46624e</id>
<content type='text'>
This patch enabled RAPL to support Broadwell-H

Signed-off-by: Radivoje Jovanovic &lt;radivoje.jovanovic@intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>powercap / RAPL: Add support for Skylake H/S</title>
<updated>2015-08-01T00:05:57Z</updated>
<author>
<name>Radivoje Jovanovic</name>
<email>radivoje.jovanovic@intel.com</email>
</author>
<published>2015-07-31T15:07:10Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=2cac1f700c2c6baf836f24c778a73a847a48f484'/>
<id>urn:sha1:2cac1f700c2c6baf836f24c778a73a847a48f484</id>
<content type='text'>
This patche enabled RAPL to support Intel Skylake H/S

Signed-off-by: Radivoje Jovanovic &lt;radivoje.jovanovic@intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>powercap / RAPL: Support Knights Landing</title>
<updated>2015-05-21T00:34:54Z</updated>
<author>
<name>Dasaratharaman Chandramouli</name>
<email>dasaratharaman.chandramouli@intel.com</email>
</author>
<published>2015-05-19T22:37:49Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=6f066d4d2621affdbc510b5b0bd624af7ae74e1b'/>
<id>urn:sha1:6f066d4d2621affdbc510b5b0bd624af7ae74e1b</id>
<content type='text'>
This patch enables intel_rapl driver to run on the
next-generation Intel(R) Xeon Phi Microarchitecture
code named "Knights Landing"

Signed-off-by: Dasaratharaman Chandramouli &lt;dasaratharaman.chandramouli@intel.com&gt;
Acked-by: Jacob Pan &lt;jacob.jun.pan@linux.intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>powercap / RAPL: Floor frequency setting in Atom SoC</title>
<updated>2015-05-04T22:51:22Z</updated>
<author>
<name>Ajay Thomas</name>
<email>ajay.thomas.david.rajamanickam@intel.com</email>
</author>
<published>2015-04-29T20:13:23Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=51b63409b75980753f52edb45da7d1b3e2b9405d'/>
<id>urn:sha1:51b63409b75980753f52edb45da7d1b3e2b9405d</id>
<content type='text'>
CPU Floor frequency is set in BIOS for newer Atom
SoCs. This patch handles configuration of floor
frequency for different variants of Atom SoCs
appropriately and ensures configuration of floor
frequency is not done from driver for these
newer Atom SoCs.

Since address of the register for configuring
floor frequency might change for different
Atom SoCs, this patch also prevents potential
overwriting of wrong registers.

Reviewed-by: Jacob Pan &lt;jacob.jun.pan@linux.intel.com&gt;
Signed-off-by: Ajay Thomas &lt;ajay.thomas.david.rajamanickam@intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>powercap / RAPL: Add support for Intel Skylake processors</title>
<updated>2015-04-15T21:06:16Z</updated>
<author>
<name>Brian Bian</name>
<email>brian.bian@intel.com</email>
</author>
<published>2015-04-14T17:53:35Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=5fa0fa4b01cd9c52c4be0ff69ce0d922cd724812'/>
<id>urn:sha1:5fa0fa4b01cd9c52c4be0ff69ce0d922cd724812</id>
<content type='text'>
Signed-off-by: Brian Bian &lt;brian.bian@intel.com&gt;
Acked-by: Jacob Pan &lt;jacob.jun.pan@linux.intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>powercap / RAPL: mark rapl_ids array as __initconst</title>
<updated>2015-04-11T00:21:15Z</updated>
<author>
<name>Mathias Krause</name>
<email>minipli@googlemail.com</email>
</author>
<published>2015-03-25T21:15:52Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=ea85dbcaec0ff29f2c3f84be4c8a01a94e8bd449'/>
<id>urn:sha1:ea85dbcaec0ff29f2c3f84be4c8a01a94e8bd449</id>
<content type='text'>
The RAPL ids are only tested in rapl_init() which is itself an __init
function. For the MODULE_DEVICE_TABLE() file2alias doesn't care about
the section, just about the symbol name. Therefore it's safe to mark the
rapl_ids[] array as __initconst so its memory can be released after
initialization is done.

Signed-off-by: Mathias Krause &lt;minipli@googlemail.com&gt;
Acked-by: Jacob Pan &lt;jacob.jun.pan@linux.intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
</feed>
