From bad8d82c5c28a2dcda255807ac0f617ba7ab7a97 Mon Sep 17 00:00:00 2001 From: John Wang Date: Sat, 24 Oct 2020 16:44:52 +0800 Subject: bytedance: g220a: Enable swampd tuning mode Do not enter the failmode if a temperature sensor's value is NAN, It's useful for debug. We always want the pid-controler to run, when debugging. (From meta-bytedance rev: ae79ff9e289c85498e656172e99d44b11d969109) Signed-off-by: John Wang Change-Id: I957528b2e2f336bdf3abbd78ec105bdc249e3716 Signed-off-by: Andrew Geissler --- .../fans/phosphor-pid-control/phosphor-pid-control.service | 14 ++++++++++++++ .../recipes-phosphor/fans/phosphor-pid-control_%.bbappend | 5 +++++ 2 files changed, 19 insertions(+) create mode 100644 meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control/phosphor-pid-control.service create mode 100644 meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control_%.bbappend (limited to 'meta-bytedance') diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control/phosphor-pid-control.service b/meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control/phosphor-pid-control.service new file mode 100644 index 000000000..659ff3e1e --- /dev/null +++ b/meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control/phosphor-pid-control.service @@ -0,0 +1,14 @@ +[Unit] +Description=Phosphor-Pid-Control Margin-based Fan Control Daemon +After=xyz.openbmc_project.EntityManager.service +After=xyz.openbmc_project.ObjectMapper.service + +[Service] +Restart=always +ExecStart={bindir}/swampd -t +RestartSec=5 +StartLimitInterval=0 +Type=simple + +[Install] +WantedBy=multi-user.target diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control_%.bbappend b/meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control_%.bbappend new file mode 100644 index 000000000..66646996c --- /dev/null +++ b/meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control_%.bbappend @@ -0,0 +1,5 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +inherit obmc-phosphor-systemd + +SYSTEMD_SERVICE_${PN} = "phosphor-pid-control.service" -- cgit v1.2.3