<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/tools/power/x86/intel-speed-select, branch master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/tools/power/x86/intel-speed-select?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/tools/power/x86/intel-speed-select?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2022-09-15T18:16:06Z</updated>
<entry>
<title>tools/power/x86/intel-speed-select: Release v1.13</title>
<updated>2022-09-15T18:16:06Z</updated>
<author>
<name>Srinivas Pandruvada</name>
<email>srinivas.pandruvada@linux.intel.com</email>
</author>
<published>2022-09-15T17:43:44Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=97ec890d070158f15fe8ef2419a5ff677bdbbc20'/>
<id>urn:sha1:97ec890d070158f15fe8ef2419a5ff677bdbbc20</id>
<content type='text'>
Update version number.

This version includes fixes for:
- fix build failure when using gcc options -Wl,--as-needed
- Fix warning for perf_cap.cpu may be uninitialized
- Fix off by one check for MAX_DIE_PER_PACKAGE
- Fix issue with use of get_physical_die_id instead of
get_physical_die_id

Optimizations:
- Removed unused interfaces and functions
- Better handle package, die, cpu combination by
defining a struct and set at one place instead
at each user level.

New functional change:
- Warn if turbo is disabled and SST turbo-freq feature is requested

Signed-off-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>tools/power/x86/intel-speed-select: Optimize CPU initialization</title>
<updated>2022-09-15T18:16:06Z</updated>
<author>
<name>Zhang Rui</name>
<email>rui.zhang@intel.com</email>
</author>
<published>2022-08-20T15:58:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=921604b409cc52d7f5196721ae07b54275e5ebe2'/>
<id>urn:sha1:921604b409cc52d7f5196721ae07b54275e5ebe2</id>
<content type='text'>
Optimize CPU initialization.
Do cpu related initialization in one function, including setting the cpu
present_cpumask, target_cpumask, and cpu_map and core_count arrays.

Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Signed-off-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>tools/power/x86/intel-speed-select: Utilize cpu_map to get physical id</title>
<updated>2022-09-15T18:16:06Z</updated>
<author>
<name>Zhang Rui</name>
<email>rui.zhang@intel.com</email>
</author>
<published>2022-08-20T15:58:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=ca56725d78c5241f65cc565e5a865f45d943dc04'/>
<id>urn:sha1:ca56725d78c5241f65cc565e5a865f45d943dc04</id>
<content type='text'>
cpu_map already has the cpu package id, die id information.
Thus there is no need to re-evaluating sysfs attributes or stored data
file to get the package id and die id of a given CPU each time.

In order to unitlize this, cpu_map needs to be created unconditionally.

Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Signed-off-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>tools/power/x86/intel-speed-select: Remove unused struct clos_config fields</title>
<updated>2022-09-15T18:16:06Z</updated>
<author>
<name>Zhang Rui</name>
<email>rui.zhang@intel.com</email>
</author>
<published>2022-08-20T15:58:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=a05b925ace3ea977fdadb32c969c22ef51029ee7'/>
<id>urn:sha1:a05b925ace3ea977fdadb32c969c22ef51029ee7</id>
<content type='text'>
pkg_id/die_id can be retrieved from struct isst_id, remove the redundant
clos_config-&gt;pkg_id/die_id fields.

Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Signed-off-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>tools/power/x86/intel-speed-select: Enforce isst_id value</title>
<updated>2022-09-15T18:16:05Z</updated>
<author>
<name>Zhang Rui</name>
<email>rui.zhang@intel.com</email>
</author>
<published>2022-08-20T15:58:24Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=3ba6a27566a53030b3013f9f841ba5889a344cb8'/>
<id>urn:sha1:3ba6a27566a53030b3013f9f841ba5889a344cb8</id>
<content type='text'>
Enforce the pkg/die value in struct isst_id are either -1 or a valid
value.

This helps avoid inconsistent or redundant checks.

Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Signed-off-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>tools/power/x86/intel-speed-select: Do not export get_physical_id</title>
<updated>2022-09-15T18:16:05Z</updated>
<author>
<name>Zhang Rui</name>
<email>rui.zhang@intel.com</email>
</author>
<published>2022-08-20T15:58:23Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=e616059ee6830242ffc68adc91a5486ac957dc1b'/>
<id>urn:sha1:e616059ee6830242ffc68adc91a5486ac957dc1b</id>
<content type='text'>
Now, all the get_physical_pkg/die/core_id() users are inside
isst-config.c, so no need to export these APIs.

Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Signed-off-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>tools/power/x86/intel-speed-select: Introduce is_cpu_in_power_domain helper</title>
<updated>2022-09-15T18:16:05Z</updated>
<author>
<name>Zhang Rui</name>
<email>rui.zhang@intel.com</email>
</author>
<published>2022-08-20T15:58:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=00bb07db5a42c91f4a74e836c6ae70fff20f7f8a'/>
<id>urn:sha1:00bb07db5a42c91f4a74e836c6ae70fff20f7f8a</id>
<content type='text'>
struct isst_id contains cpu, package and die info, and it can represent
a specific SST power domain.

Introduce is_cpu_in_power_domain() helper to identify if a cpu is in a
specified power_domain.

And cleanup the code to use the new helper.

Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Signed-off-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>tools/power/x86/intel-speed-select: Cleanup get_physical_id usage</title>
<updated>2022-09-15T18:16:05Z</updated>
<author>
<name>Zhang Rui</name>
<email>rui.zhang@intel.com</email>
</author>
<published>2022-08-20T15:58:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=56d6469291f8b1e1ab2f78e401c564163d3ee0f0'/>
<id>urn:sha1:56d6469291f8b1e1ab2f78e401c564163d3ee0f0</id>
<content type='text'>
struct isst_id already contains package and die id information, thus
there is no need to get the package and die id information, when struct
isst_id is already available.

Remove unneeded get_physical_package_id/get_physical_die_id usage.

Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Signed-off-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>tools/power/x86/intel-speed-select: Convert more function to use isst_id</title>
<updated>2022-09-15T18:16:05Z</updated>
<author>
<name>Zhang Rui</name>
<email>rui.zhang@intel.com</email>
</author>
<published>2022-08-20T15:58:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=30e0600e2f849434e9a86824e2eced6a6c534723'/>
<id>urn:sha1:30e0600e2f849434e9a86824e2eced6a6c534723</id>
<content type='text'>
With pkg and die info added into struct isst_id, more functions can
be converted to use struct isst_id as parameter.

Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Signed-off-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>tools/power/x86/intel-speed-select: Add pkg and die in isst_id</title>
<updated>2022-09-15T18:16:05Z</updated>
<author>
<name>Zhang Rui</name>
<email>rui.zhang@intel.com</email>
</author>
<published>2022-08-20T15:58:19Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=32d6ab45511c65e64202bc0b436301fc8ee83ad8'/>
<id>urn:sha1:32d6ab45511c65e64202bc0b436301fc8ee83ad8</id>
<content type='text'>
Code uses pkg_id and die_id to refer to a specific power domain.

The pkg/die information is already settled at start time. Adding package
id and die id information into struct isst_id so that code does not need
to retrieve them at runtime.

More code cleanups can be done with the package/die info available.

Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Signed-off-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
</content>
</entry>
</feed>
