mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 06:43:52 +07:00
arm64: dts: fsl: Add all CPUs in cooling maps
Each CPU can (and does) participate in cooling down the system but the DT only captures a handful of them, normally CPU0, in the cooling maps. Things work by chance currently as under normal circumstances its the first CPU of each cluster which is used by the operating systems to probe the cooling devices. But as soon as this CPU ordering changes and any other CPU is used to bring up the cooling device, we will start seeing failures. Also the DT is rather incomplete when we list only one CPU in the cooling maps, as the hardware doesn't have any such limitations. Update cooling maps to include all devices affected by individual trip points. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
This commit is contained in:
parent
8897f3255c
commit
c9a1f24304
@ -171,8 +171,10 @@ cooling-maps {
|
|||||||
map0 {
|
map0 {
|
||||||
trip = <&cpu_alert>;
|
trip = <&cpu_alert>;
|
||||||
cooling-device =
|
cooling-device =
|
||||||
<&cpu0 THERMAL_NO_LIMIT
|
<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
THERMAL_NO_LIMIT>;
|
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
|
<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
|
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -140,8 +140,10 @@ cooling-maps {
|
|||||||
map0 {
|
map0 {
|
||||||
trip = <&cpu_alert>;
|
trip = <&cpu_alert>;
|
||||||
cooling-device =
|
cooling-device =
|
||||||
<&cpu0 THERMAL_NO_LIMIT
|
<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
THERMAL_NO_LIMIT>;
|
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
|
<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
|
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -152,15 +152,14 @@ cooling-maps {
|
|||||||
map0 {
|
map0 {
|
||||||
trip = <&cpu_alert>;
|
trip = <&cpu_alert>;
|
||||||
cooling-device =
|
cooling-device =
|
||||||
<&cpu0 THERMAL_NO_LIMIT
|
<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
THERMAL_NO_LIMIT>;
|
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
};
|
<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
|
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
map1 {
|
<&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
trip = <&cpu_alert>;
|
<&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
cooling-device =
|
<&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
<&cpu4 THERMAL_NO_LIMIT
|
<&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
|
||||||
THERMAL_NO_LIMIT>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -101,26 +101,14 @@ cooling-maps {
|
|||||||
map0 {
|
map0 {
|
||||||
trip = <&cpu_alert>;
|
trip = <&cpu_alert>;
|
||||||
cooling-device =
|
cooling-device =
|
||||||
<&cpu0 THERMAL_NO_LIMIT
|
<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
THERMAL_NO_LIMIT>;
|
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
};
|
<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
map1 {
|
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
trip = <&cpu_alert>;
|
<&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
cooling-device =
|
<&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
<&cpu2 THERMAL_NO_LIMIT
|
<&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||||||
THERMAL_NO_LIMIT>;
|
<&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
|
||||||
};
|
|
||||||
map2 {
|
|
||||||
trip = <&cpu_alert>;
|
|
||||||
cooling-device =
|
|
||||||
<&cpu4 THERMAL_NO_LIMIT
|
|
||||||
THERMAL_NO_LIMIT>;
|
|
||||||
};
|
|
||||||
map3 {
|
|
||||||
trip = <&cpu_alert>;
|
|
||||||
cooling-device =
|
|
||||||
<&cpu6 THERMAL_NO_LIMIT
|
|
||||||
THERMAL_NO_LIMIT>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user