summaryrefslogtreecommitdiff
path: root/meta-quanta/meta-gbs/recipes-phosphor/fans/phosphor-pid-control/fan-table-init.sh
AgeCommit message (Collapse)AuthorFilesLines
2021-06-18meta-quanta: gbs: Modified pid sensor type from margin to tempGeorge Hung1-4/+65
- Remove read-margin-temp files and codes - Modified sensor type in pid json to temp setpoint set to target temp Kp set to Kp * scalar Ki set to Ki * scalar - Pre-detect nvme present status in fan-table-init.sh, and delete settings if nvme present is false. Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Iba4ac164a7a39ca1be109301402911d432294997
2021-04-01meta-quanta: gbs: improve overwrite fan hwmon to json configGeorge Hung1-7/+8
update the fan hwmon variables to be wrapped in @@ to avoid any mis-replacement Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I6ecfb868fe1b58b2918bdb2760462250f0c4ae3a
2021-04-01meta-quanta: gbs: failsafe fan speed control dynamicallyGeorge Hung1-3/+1
1. add acpi-power-state daemon to check the ACPI power states from BIOS 2. set failsafe fan speed at different states - S0_G0_D0: 90% - S5_G2: 40% Note: this item depends on the commit and will add as the patches first in another PR https://gerrit.openbmc-project.xyz/38112 3. add gbs-check-host-state.sh to monitor the power state D-Bus and then trigger to set fan failsafe speed 4. remove gbs-detect-fan-fail service and unused scripts from phosphor-pid-control 5. update read-margin-temp srcrev to avoid nvme temperature sensor failed due to nvme SSD not-present Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I496dd7bc59076a2b3690e367877d49533855c9fe
2021-01-22meta-quanta: gbs: fix the config json issueGeorge Hung1-3/+8
Since the fan hwmon sysfs path may change, if the hwmon path of config json is already replaced by fan-table-init.sh, it would never change in rw partition. Add config-sku.json to make sure the correct fan hwmon sysfs path is replaced (From meta-quanta rev: fb6723490cc9cbc8fd806cdd6d795e7feca4173b) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ic4ae24f3311a1ced845b60bddf247cef6b3c1e1e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-18meta-quanta: gbs: rename fan2/3/4 to fb_fan0/1/2George Hung1-3/+3
Change the sensor name of fans: fan2 -> fb_fan0 fan3 -> fb_fan1 fan4 -> fb_fan2 (From meta-quanta rev: 43bbb292c0d151841db415802849df965f6151ce) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: If81cf92c50da512986344b31ba20d93af6dcf061 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-15meta-quanta: gbs: add pid controller with configGeorge Hung1-0/+23
1. add pid control with fan table config 2. add reboot control service to set fan duty to expected default value before pid control up 3. initial read-margin-temp with json file and the script waits related hwmon sensor could monitor (From meta-quanta rev: b67a01a728b268b9aa61ebde63354ad1a6f46bdd) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I5ae6f5d163dbaee8839bf5222bb650483531e68a Signed-off-by: Andrew Geissler <geissonator@yahoo.com>