Commit f5a0be8
platform/x86/intel: power-domains: Use topology_logical_package_id() for package ID
commit aa28991 upstream.
Currently, tpmi_get_logical_id() calls topology_physical_package_id()
to set the pkg_id of the info structure. Since some VM hosts assign non
contiguous package IDs, topology_physical_package_id() can return a
larger value than topology_max_packages(). This will result in an
invalid reference into tpmi_power_domain_mask[] as that is allocatead
based on topology_max_packages() as the maximum package ID.
Intel-SIG: commit aa28991 platform/x86/intel: power-domains: Use topology_logical_package_id() for package ID
Backport PLR (Power Limit Reasons) TPMI driver
Fixes: 17ca278 ("platform/x86/intel: TPMI domain id and CPU mapping")
Signed-off-by: David Arcari <[email protected]>
Acked-by: Srinivas Pandruvada <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
[ Zhang Rui: amend commit log ]
Signed-off-by: Zhang Rui <[email protected]>
Signed-off-by: WangYuli <[email protected]>1 parent 8fd6a45 commit f5a0be8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
0 commit comments