tools/power/x86/intel-speed-select: Fix the condition to check multi die system
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Wed, 5 Mar 2025 19:01:56 +0000 (11:01 -0800)
committerSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 7 Mar 2025 16:00:21 +0000 (08:00 -0800)
commitc49e805db30674293d6a595db52549addd9d611f
tree12e1d128b1b7e7c09bb00d5061041e45b12455d5
parentd74e6e29d2b29919253f625f0c560f4ca2606900
tools/power/x86/intel-speed-select: Fix the condition to check multi die system

Even when there is no die exported by CPUID leaf 0x1F, the kernel version
after 6.9 will show non zero die_id in the sysfs. In that case maximum
die_id can still match maximum power domain ID. So the condition to check
if the power domain ID is same a die_id to prevent duplicate display
doesn't hold true.

The better condition is to check if the maximum die_id is more than the
maximum package_id. If the die_id is exposed by CPUID leaf 0x1F, the
maximum die_id will be more than maximum package_id.

With this change tracking of max_punit_id is not used, so remove storing
max_punit_id.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
tools/power/x86/intel-speed-select/isst-config.c