Commit 275e4eb3 authored by Viresh Kumar's avatar Viresh Kumar Committed by Simon Horman

arm64: dts: renesas: 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: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 8f1ee2a1
......@@ -3115,7 +3115,10 @@ sensor1_crit: sensor1-crit {
cooling-maps {
map0 {
trip = <&sensor1_passive>;
cooling-device = <&a57_0 4 4>;
cooling-device = <&a57_0 4 4>,
<&a57_1 4 4>,
<&a57_2 4 4>,
<&a57_3 4 4>;
};
};
};
......@@ -3141,7 +3144,10 @@ sensor2_crit: sensor2-crit {
cooling-maps {
map0 {
trip = <&sensor2_passive>;
cooling-device = <&a57_0 4 4>;
cooling-device = <&a57_0 4 4>,
<&a57_1 4 4>,
<&a57_2 4 4>,
<&a57_3 4 4>;
};
};
};
......@@ -3167,7 +3173,10 @@ sensor3_crit: sensor3-crit {
cooling-maps {
map0 {
trip = <&sensor3_passive>;
cooling-device = <&a57_0 4 4>;
cooling-device = <&a57_0 4 4>,
<&a57_1 4 4>,
<&a57_2 4 4>,
<&a57_3 4 4>;
};
};
};
......
......@@ -2839,7 +2839,7 @@ sensor1_crit: sensor1-crit {
cooling-maps {
map0 {
trip = <&sensor1_passive>;
cooling-device = <&a57_0 5 5>;
cooling-device = <&a57_0 5 5>, <&a57_1 5 5>;
};
};
};
......@@ -2865,7 +2865,7 @@ sensor2_crit: sensor2-crit {
cooling-maps {
map0 {
trip = <&sensor2_passive>;
cooling-device = <&a57_0 5 5>;
cooling-device = <&a57_0 5 5>, <&a57_1 5 5>;
};
};
};
......@@ -2891,7 +2891,7 @@ sensor3_crit: sensor3-crit {
cooling-maps {
map0 {
trip = <&sensor3_passive>;
cooling-device = <&a57_0 5 5>;
cooling-device = <&a57_0 5 5>, <&a57_1 5 5>;
};
};
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment