Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mellanox]Add patch which disables thermal policy in hw-mgmt #28

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
From 42cefa91796e8768792eb64538714cc55d5a11e2 Mon Sep 17 00:00:00 2001
From: Stephen Sun <[email protected]>
Date: Fri, 14 Feb 2020 13:48:00 +0800
Subject: [PATCH] [hw-management.sh]Disable thermal policy running in hw-mgmt
service SONiC thermal control algorithm has been supported.

---
usr/usr/bin/hw-management.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/usr/usr/bin/hw-management.sh b/usr/usr/bin/hw-management.sh
index cff10fe..605ba23 100755
--- a/usr/usr/bin/hw-management.sh
+++ b/usr/usr/bin/hw-management.sh
@@ -593,7 +593,11 @@ do_start()
echo $asic_bus > $config_path/asic_bus
connect_platform

- $THERMAL_CONTROL $thermal_type $max_tachos $max_psus&
+#
+# Disable thermal control algorithm in hw-management service
+# because there has already been that in SONiC
+#
+# $THERMAL_CONTROL $thermal_type $max_tachos $max_psus&
}

do_stop()
--
1.9.1