From f29dd7b7c401c1562e48a46e5991cb62f96a2679 Mon Sep 17 00:00:00 2001 From: Yi-Wei Wang Date: Tue, 8 Aug 2023 19:04:32 +0800 Subject: [PATCH] t23x: overlay: Disable throttling for safety IGX The clock frequency should be static and avoid any kind of throttling mechanism for safety IGX. So, this change overwrites the cooling states of the cpufreq and the devfreq cooling devices to 0 to avoid entering any other cooling states that could throttle the clocks. Bug 4035713 Bug 4084478 Signed-off-by: Yi-Wei Wang Change-Id: I9756787c0e22f9325d32a4c6f3a2e7bccdd41274 Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2952583 Tested-by: mobile promotions Reviewed-by: mobile promotions --- .../tegra234-p3740-0002+p3701-0008-safety.dts | 119 ++++++++++++++++++ 1 file changed, 119 insertions(+) diff --git a/overlay/tegra234-p3740-0002+p3701-0008-safety.dts b/overlay/tegra234-p3740-0002+p3701-0008-safety.dts index af6f713..ba14535 100644 --- a/overlay/tegra234-p3740-0002+p3701-0008-safety.dts +++ b/overlay/tegra234-p3740-0002+p3701-0008-safety.dts @@ -70,4 +70,123 @@ }; }; }; + + fragment-t234-p3740-p3701-safety@2 { + target-path = "/"; + __overlay__ { + thermal-zones { + cpu-thermal { + cooling-maps { + map-cpufreq { + cooling-device = <&cpu0_0 0 0>, + <&cpu1_0 0 0>, + <&cpu2_0 0 0>; + }; + + map-devfreq { + cooling-device = <&ga10b 0 0>; + }; + }; + }; + + gpu-thermal { + cooling-maps { + map-cpufreq { + cooling-device = <&cpu0_0 0 0>, + <&cpu1_0 0 0>, + <&cpu2_0 0 0>; + }; + + map-devfreq { + cooling-device = <&ga10b 0 0>; + }; + }; + }; + + cv0-thermal { + cooling-maps { + map-cpufreq { + cooling-device = <&cpu0_0 0 0>, + <&cpu1_0 0 0>, + <&cpu2_0 0 0>; + }; + + map-devfreq { + cooling-device = <&ga10b 0 0>; + }; + }; + }; + + cv1-thermal { + cooling-maps { + map-cpufreq { + cooling-device = <&cpu0_0 0 0>, + <&cpu1_0 0 0>, + <&cpu2_0 0 0>; + }; + + map-devfreq { + cooling-device = <&ga10b 0 0>; + }; + }; + }; + + cv2-thermal { + cooling-maps { + map-cpufreq { + cooling-device = <&cpu0_0 0 0>, + <&cpu1_0 0 0>, + <&cpu2_0 0 0>; + }; + + map-devfreq { + cooling-device = <&ga10b 0 0>; + }; + }; + }; + + soc0-thermal { + cooling-maps { + map-cpufreq { + cooling-device = <&cpu0_0 0 0>, + <&cpu1_0 0 0>, + <&cpu2_0 0 0>; + }; + + map-devfreq { + cooling-device = <&ga10b 0 0>; + }; + }; + }; + + soc1-thermal { + cooling-maps { + map-cpufreq { + cooling-device = <&cpu0_0 0 0>, + <&cpu1_0 0 0>, + <&cpu2_0 0 0>; + }; + + map-devfreq { + cooling-device = <&ga10b 0 0>; + }; + }; + }; + + soc2-thermal { + cooling-maps { + map-cpufreq { + cooling-device = <&cpu0_0 0 0>, + <&cpu1_0 0 0>, + <&cpu2_0 0 0>; + }; + + map-devfreq { + cooling-device = <&ga10b 0 0>; + }; + }; + }; + }; + }; + }; }; \ No newline at end of file