<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/powercap/intel_rapl_common.c, branch linux-5.11.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.11.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.11.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-11-10T18:59:07Z</updated>
<entry>
<title>powercap: RAPL: Add AMD Fam19h RAPL support</title>
<updated>2020-11-10T18:59:07Z</updated>
<author>
<name>Kim Phillips</name>
</author>
<published>2020-10-27T07:23:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8a9d881f22d7a0e06a46a326d0880fb45a06d3b5'/>
<id>urn:sha1:8a9d881f22d7a0e06a46a326d0880fb45a06d3b5</id>
<content type='text'>
AMD Family 19h's RAPL MSRs are identical to Family 17h's.  Extend
Family 17h's support to Family 19h.

Signed-off-by: Kim Phillips &lt;kim.phillips@amd.com&gt;
Signed-off-by: Victor Ding &lt;victording@google.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>powercap: Add AMD Fam17h RAPL support</title>
<updated>2020-11-10T18:59:07Z</updated>
<author>
<name>Victor Ding</name>
</author>
<published>2020-10-27T07:23:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=43756a298928c9a4e8201baaeb205c0c103728af'/>
<id>urn:sha1:43756a298928c9a4e8201baaeb205c0c103728af</id>
<content type='text'>
Enable AMD Fam17h RAPL support for the power capping framework.

The support is as per AMD Fam17h Model31h (Zen2) and model 00-ffh
(Zen1) PPR.

Tested by comparing the results of following two sysfs entries and the
values directly read from corresponding MSRs via /dev/cpu/[x]/msr:
  /sys/class/powercap/intel-rapl/intel-rapl:0/energy_uj
  /sys/class/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:0/energy_uj

Signed-off-by: Victor Ding &lt;victording@google.com&gt;
Acked-by: Kim Phillips &lt;kim.phillips@amd.com&gt;
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>powercap/intel_rapl: remove unneeded semicolon</title>
<updated>2020-11-02T17:04:34Z</updated>
<author>
<name>Tom Rix</name>
</author>
<published>2020-11-01T14:11:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a8193af7ec0db73c0c86d02a5d5ffc1dc2ab4e88'/>
<id>urn:sha1:a8193af7ec0db73c0c86d02a5d5ffc1dc2ab4e88</id>
<content type='text'>
A semicolon is not needed after a switch statement.

Signed-off-by: Tom Rix &lt;trix@redhat.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>powercap/intel_rapl: enumerate Psys RAPL domain together with package RAPL domain</title>
<updated>2020-10-16T15:35:36Z</updated>
<author>
<name>Zhang Rui</name>
</author>
<published>2020-10-13T07:42:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f1e8d7560d3051b38f73a0cf6acc1b0bf5305ad9'/>
<id>urn:sha1:f1e8d7560d3051b38f73a0cf6acc1b0bf5305ad9</id>
<content type='text'>
On multi-package systems, the Psys MSR is only valid for CPUs on
specific package (master package). The current code makes the
assumption that package 0 is the master package, but this is not
true on new platforms like SPR.

Fix the problem by emuerating the Psys RAPL domain for every
package, so CPUs in slave packages will read 0 for the Psys energy
counter and only CPUs in master packages can get a valid reading
and register the Psys RAPL domain.

The sysfs I/F for the Psys RAPL domain is not changed.

Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>powercap/intel_rapl: Fix domain detection</title>
<updated>2020-10-16T15:35:36Z</updated>
<author>
<name>Zhang Rui</name>
</author>
<published>2020-10-13T07:42:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7a57e9f112adebc9e5dc787c2a59dbc06ae5060d'/>
<id>urn:sha1:7a57e9f112adebc9e5dc787c2a59dbc06ae5060d</id>
<content type='text'>
As only the low 32 bits of the RAPL_DOMAIN_REG_STATUS register
represents the energy counter, and the high 32 bits are reserved,
detect the existence of a RAPL domain by checking the low 32 bits only.

Signed-off-by: Zhang Rui &lt;rui.zhang@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 Lakefield</title>
<updated>2020-09-16T12:16:04Z</updated>
<author>
<name>Ricardo Neri</name>
</author>
<published>2020-08-21T18:48:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e1c2d96cd0196383e6c390c8abf0b9045a9616b2'/>
<id>urn:sha1:e1c2d96cd0196383e6c390c8abf0b9045a9616b2</id>
<content type='text'>
Simply add Lakefield model ID. No additional changes are needed.

Signed-off-by: Ricardo Neri &lt;ricardo.neri-calderon@linux.intel.com&gt;
[ rjw: Minor subject edit ]
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>powercap/intel_rapl: add support for AlderLake</title>
<updated>2020-09-10T17:17:29Z</updated>
<author>
<name>Zhang Rui</name>
</author>
<published>2020-09-10T07:49:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ba92a4201167d945ccdc5a84e6a0994f7ab71870'/>
<id>urn:sha1:ba92a4201167d945ccdc5a84e6a0994f7ab71870</id>
<content type='text'>
Add intel_rapl support for the AlderLake platform.

Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>powercap/intel_rapl: add support for RocketLake</title>
<updated>2020-09-10T17:17:29Z</updated>
<author>
<name>Zhang Rui</name>
</author>
<published>2020-09-10T07:49:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=64e5f367155fe64854a0555bfa809af45f6e7e39'/>
<id>urn:sha1:64e5f367155fe64854a0555bfa809af45f6e7e39</id>
<content type='text'>
Add intel_rapl support for the RocketLake platform.

Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>powercap/intel_rapl: add support for TigerLake Desktop</title>
<updated>2020-09-10T17:17:29Z</updated>
<author>
<name>Zhang Rui</name>
</author>
<published>2020-09-10T07:48:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=57a2fb068a9513bf0fe51a1f2057235423330709'/>
<id>urn:sha1:57a2fb068a9513bf0fe51a1f2057235423330709</id>
<content type='text'>
Add intel_rapl support for the TigerLake desktop platform.

Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>powercap: Add Power Limit4 support</title>
<updated>2020-07-27T12:17:36Z</updated>
<author>
<name>Sumeet Pawnikar</name>
</author>
<published>2020-07-16T17:44:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8365a898fe53f85529566501d3b3d88640b3975e'/>
<id>urn:sha1:8365a898fe53f85529566501d3b3d88640b3975e</id>
<content type='text'>
Modern Intel Mobile platforms support power limit4 (PL4), which is
the SoC package level maximum power limit (in Watts). It can be used
to preemptively limits potential SoC power to prevent power spikes
from tripping the power adapter and battery over-current protection.
This patch enables this feature by exposing package level peak power
capping control to userspace via RAPL sysfs interface. With this,
application like DTPF can modify PL4 power limit, the similar way
of other package power limit (PL1).
As this feature is not tested on previous generations, here it is
enabled only for the platform that has been verified to work,
for safety concerns.

Signed-off-by: Sumeet Pawnikar &lt;sumeet.r.pawnikar@intel.com&gt;
Co-developed-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Reviewed-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
Tested-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
</feed>
