]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86/intel-uncore-freq: Do not present separate package-die domain
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tue, 20 Aug 2024 20:45:58 +0000 (13:45 -0700)
committerHans de Goede <hdegoede@redhat.com>
Mon, 26 Aug 2024 14:47:58 +0000 (16:47 +0200)
commitbb9a9bf2787fbe1a4e003daabc8f7a31c17740d6
tree33717b0727e19ed4410f9ee04e536ef50190bb3e
parent1e701372d7ac1939d5f8a1dc8172de00192394a8
platform/x86/intel-uncore-freq: Do not present separate package-die domain

The scope of uncore control is per power domain with TPMI.

There are two types of processor topologies can be presented by CPUID
extended topology leaf irrespective of the hardware architecture:

1. A die is not enumerated in CPUID. In this case there is only one die
in a package is visible. In this case there can be multiple power domains
in a single die.
2. A power domain in a package is enumerated as a die in CPUID. So
there is one power domain per die.

To allow die level controls, the current implementation creates a root
domain and aggregates all information from power domains in it. This
is well suited for configuration 1 above.

But for configuration 2 above, the root domain will present the same
information as present by power domain. So, no use of aggregating. To
check the configuration, call topology_max_dies_per_package(). If it is
more than one, avoid creating root domain.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240820204558.1296319-1-srinivas.pandruvada@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/uncore-frequency/uncore-frequency-tpmi.c