summaryrefslogtreecommitdiff
path: root/meta-quanta/meta-gbs
AgeCommit message (Collapse)AuthorFilesLines
2021-04-22build phosphor-hwmon with mesonMatt Spinler1-1/+1
The repository supports it, so switch it over in bitbake. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I8d96c79b395ee2614ddd869091569f245426c5c7
2021-04-21meta-quanta: gbs: back to upstream and enable chassis-system resetGeorge Hung3-3/+31
- change back to x86-power-control upstream - enable chassis-system reset for hard power cycle by Redfish Usage by Redfish: curl -k -u ${username}:${password} https://${bmcip}/redfish/v1/Chassis/chassis/Actions/Chassis.Reset -d '{"ResetType": "PowerCycle"}' Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Icff87d590c911289cb15bdc34dafce69e55c9e2a
2021-04-21meta-quanta: gbs: Fix WCTemp in read-margin-temp-wait.shBrandon Kim1-4/+4
The backup WCTemp was being set to 72000 * 1000, clean up the logic. Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: Ic752b188cb06f9755fcfa6f21f530dcb979ac813
2021-04-20meta-quanta: gbs: Add retry to read-margin-temp-wait.shBrandon Kim1-7/+22
Add 3 x 1 second retries for WCTemp and default to a sane WCTemp if 0 is read. Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: Ia87e704d2e5e0990a0727cd37290084f8eda2df6
2021-04-16meta-quanta: gbs: monitor fans e-fuse PG GPIO signalGeorge Hung4-3/+32
- add fans e-fuse PG GPIO config file - add fans e-fuse PG GPIO as the sensor - monitor fans e-fuse PG GPIO and when it assert low, record the SEL log Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I32298097b1e79036b67edea65b84ef4d78cbacfc
2021-04-08meta-quanta: gbs: populated the JSON according to the installed drivesGeorge Hung2-23/+16
Add the @nvmeList@ template and dynamically detect for which drives we should have and populated the JSON accordingly Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Id0f6cefe80ae72dc8d3601d0a03dd1039341175c
2021-04-06hardknott: yocto releaseAndrew Geissler1-1/+1
Latest upstream yocto has moved on to the 3.3 hardknott release Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: Ieae36798d66d21c2c642931f06407d3bb2acf163
2021-04-01meta-quanta: gbs: add the nvme service dependencyGeorge Hung1-0/+1
Since it needs to read WCTEMP from the nvme SSD to overwirte read-margin-temp json config, add the dependency to make sure the pid control service start after the nvme service Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Id11ee5eb9e4cb994c700849d58996d7c25c4618e
2021-04-01meta-quanta: gbs: add failsafe patch for pid controlGeorge Hung2-0/+118
- Add the ability to dynamically set the failSafe percent https://gerrit.openbmc-project.xyz/38112 Note: It's already submitted to Gerrit and under review Also, it will be removed until it's merged Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I0df3c413f46df880aa585af2c8cbc0fa8a5140a6
2021-04-01meta-quanta: gbs: improve overwrite fan hwmon to json configGeorge Hung3-17/+18
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 Hung19-139/+214
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-03-30meta-quanta: gbs: revert back the pwm/tach for fb_fan1 and fb_fan2George Hung1-2/+2
Change to work-round for the kernel dts, so revert back the following commit: https://gerrit.openbmc-project.xyz/c/openbmc/meta-quanta/+/38877 Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I21af8da577f2554b55886fc0133f94be77bc3520
2021-03-30meta-quanta: gbs: detect-gpio-present: Mapper wait onceBrandon Kim1-1/+5
mapper wait call should not be called every loop Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I7763f8dfbd78fdacbdbf21076cbc56cde8b7bc17
2021-03-25meta-quanta: gbs: the unit change to degree from millidegreeGeorge Hung1-24/+24
The D-bus type for the sensor value change to use double and the read-margin-temp already update for that, so replace millidegree by degree for the unit Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ib2725e7834ea2bd0021807ee5395f45c07b08c49
2021-03-25meta-quanta: gbs: overwrite the WCTEMP reading to json configGeorge Hung3-35/+32
Read WCTEMP reading and overwrite to config-margin.json and update the WCTEMP variables to be wrapped in @@ to avoid any mis-replacement Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I2f6eae64acc1db089c1a3ca48288ae360d555dac
2021-03-25meta-quanta: gbs: Use gBMC KCS daemonBrandon Kim3-11/+2
Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: If3358964f776d0f9ae55f4eee5ea05d6d95b050a
2021-03-23meta-quanta: gbs: add fleeting2 to entity_association_mapBrandon Kim1-1/+2
Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: Ia161322f75a9c967dab489cdb93776e8abbc828a
2021-03-23meta-quanta: gbs: fix phosphor-inventory-manager DEPENDSBrandon Kim1-1/+1
Recipe name as updated to gbs-inventory-cleanup. DEPENDS also need to be updated to ensure compilation. Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: Icc43de8501e3eea2da437074ece62d3a02746b88
2021-03-23meta-quanta: gbs: set Max/Min value to i2cool sensorsGeorge Hung3-0/+22
Set the Max/Min value to i2cool sensors to avoid the abnormal current/thershold values in the SEL logs Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ie46e07a9a41f65b820258675f0e213e5434583cc
2021-03-22openbmc: add meta-security layerAnton D. Kachalov1-0/+4
This layer provides libseccomp. Signed-off-by: Anton D. Kachalov <gmouse@google.com> Change-Id: I84513d56f2ed75fab49043196b98ef8b858e394f
2021-03-19meta-quanta: gbs: add retry when LED manager service start failedGeorge Hung2-0/+7
Sometimes LED manager service will get sdbus "the name is not activatable" error for the first start, so add retry 10 times to make sure the service start successfully Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ic9e429bca70cae3272547de6f8c8f96df0d02a9c
2021-03-19meta-quanta: gbs: rename to gbs-inventory-cleanupGeorge Hung2-0/+0
Use a unique name for this recipe so it won't conflict Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ie2d5d71a73288ad7b6d1d35812cb8bfc7a11e5ae
2021-03-18meta-quanta: gbs: fix the service restart config errorGeorge Hung1-1/+1
Specify the Restart as on-failure to fix the config error Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I39e9e4d79e36f1222a3e54c12702b9b8b0ee56fa
2021-03-11meta-quanta: gbs: remove the nftables kernel configsGeorge Hung1-20/+0
It's already added in meta-google layer, so remove the nftables kernel configs from here https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/41161 Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ib9a0201987da19e94a225b3487f506af388c536f
2021-03-09meta-quanta: gbs: add gbmc distro overrideGeorge Hung3-1/+23
1. add gbmc distro override 2. add GBMC_NCSI_IF_NAME to enable gbmc-ncsi-config 3. enable kernel netfilter configurations to be compatible with gbmc network config rules Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I5b36f79d4a6dcb31753deb860d2e0c7f3349efbd
2021-03-09meta-quanta: gbs: update NVMe SSD and CPU margin temperatures configGeorge Hung2-49/+74
1. Change CPU margin from 13C to 15C 2. NVMe SSD margin = WCTemp - 7 (WCTemp = Warning Composite Temperature Threshold) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Id9af01305764132fa537afada073826f3d37125e
2021-02-18meta-quanta: gbs: update thermal config to R04George Hung2-1/+40
Add the fleeting2 sensor for the hda temperature Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I5dd3ebfcedc07df15677bacdf0f029e009213adf
2021-02-18meta-quanta: gbs: change to set CRITILO fan speed to 1800 RPMGeorge Hung1-5/+5
Change to set CRITILO fan speed to 1800 RPM for fan failsafe consideration according to the thermal team suggestion Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I2fef191d53b095bce6518583dea072700ff9a0e7
2021-01-27meta-quanta: gbs: set CRITILO fan speed to 600 RPMGeorge Hung1-5/+5
Set CRITILO fan speed to 600 RPM for host tool fan pwm calculation (From meta-quanta rev: 3bee1ba439c56ccb37ee1465a7d4209f757db015) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ica5a0e030f32425f74c30ad5c2dd80b875227b87 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2021-01-22meta-quanta: gbs: add i2cool temperature calibrationGeorge Hung7-15/+158
Do i2cool temperature calibration by phosphor-virtual-sensor Also, as the phosphor-virtual-sensor generate the same D-Bus path, chage the sensor name in hwmon to avoid the duplicate D-Bus path (From meta-quanta rev: e1562d81de2b88bfee04cd2440133caa334b726f) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I31f000c8ab3cdcef100e95a2fd4de5ecb19ad14a Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2021-01-22meta-quanta: gbs: enable enhanced mode for Boot BlockGeorge Hung1-1/+1
Enable enhanced mode to improve the memory training (From meta-quanta rev: caf2eedb93f5b0f7e0764d1bfdfdb0a758ea1477) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I46f745d8450aa330b76f815cbf7bccbb15b84674 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2021-01-22meta-quanta: gbs: fix the config json issueGeorge Hung3-9/+14
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>
2021-01-22meta-quanta: gbs: reverse the ss_cabx_prsnt numbering for the silkscreenGeorge Hung4-8/+8
Work-round to correct the SlimSAS cable sensor names/GPIO associations for the silkscreen (From meta-quanta rev: 60e4870a9a3949b941d5e054cafca0aae1891671) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I36aa91674bfe5bb565142675ebe2209fd5fdd1b8 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2021-01-22meta-quanta: gbs: adjust the IOUT/POUT GAIN for ADM1272George Hung1-4/+4
Adjust the IOUT/POUT GAIN for ADM1272 since main source changed for DVT/PVT HW (From meta-quanta rev: 1c42eb58913bf5d2af803a774e623ebcc64ec252) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Iae21f6ff4b840019b1b3e6dbf470212d71ff2514 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-12-31meta-quanta: gbs: stop hwmon while doing tray resetGeorge Hung1-0/+21
Stop phosphor-hwmon before performing a tray power cycle to avoid ADM1272 doing an abnormal I2C transaction and causing ADM1272 driver probe to fail due to wrong Manufacturer ID. (From meta-quanta rev: 2143eac88d3643e4a8d461eec2ed9a2d2e6a32f3) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ibd69cb956d76dbe08f0bb6e6bce115d5bab469df Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-12-10meta-quanta: gbs: exchange the pwm/tach for fb_fan1 and fb_fan2George Hung1-2/+2
Since their pwm/tach are inverted physically, so work-round to exchange the pwm/tach for fb_fan1 and fb_fan2 (From meta-quanta rev: b673c1f821cf041b4cb178ea09cd0fdb5095d421) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: If148239ed199000b20d1782579f344a3e3bd72ee Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-12-10meta-quanta: gbs: adjust VR/Hotswap sensors threshold and M valueGeorge Hung6-20/+20
1. adjust VR/Hotswap sensors threshold: hotswap_iout current vddcr_cpu_out voltage vddcr_cpu_in current vddcr_soc_out voltage vddio_abcd/efgh_out voltage 2. adjust M value in sensors.yaml: hotswap_iout current vddcr_cpu_in current (From meta-quanta rev: 2297095f43ad8bdff5bdfc2031acfa878ae4250b) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I46310ec035c8294ee7147bc2d6f4b8e3b14e2828 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-12-10meta-quanta: gbs: update thermal config to R03George Hung3-45/+95
1. Fan LCT = 3330 RPM 2. Minimum fan duty = 15% 3. NVMe Kp=1250,Ki=12 (From meta-quanta rev: b6ba0ea2d0007b1db640ea9d15d171ab7d79938e) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I541dce79aab0b6dc48964cfb0657c19f13f9520f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-11-23meta-quanta: update Yocto compat for gatesgarthPatrick Williams1-1/+1
The next release of Yocto is soon and most of the upstream layers have switched support strings for it. Support layer compat for gatesgarth (current) and dunfell (previous). (From meta-quanta rev: 34f30a0dca7ab63d93d56132f93e96244b02aeff) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I388aa5bf43235718668da109ebdb800e27b856d0 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-11-20meta-quanta: gbs: fix getting SATA/PE gpio present statusGeorge Hung1-6/+5
Add mapper wait for the GPIO present dbus to make sure we get the SATA/PE GPIO Present status successfully (From meta-quanta rev: ac35d89c6a02f67ae2b7a40aa014570f279f5426) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I67cfd417b6d4e7ee04dd0ef2b01a82fca63b5b92 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-11-11meta-quanta: gbs: fix command parsing error for SATA present LEDGeorge Hung1-1/+1
Fix get SATA present command parsing error due to the last change to the command parsing string (From meta-quanta rev: 529a8df55b2af8eed0d1eb0594a162cfff631aab) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I86d2923b331e19b77dca784ffcf691c5e5f4f708 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-10-29meta-quanta: gbs: fix pwr_u2_11_en name typo and add watchdog sensorGeorge Hung1-1/+28
1. fix "pwr_u2_11_en" sensor name typo 2. add host watchdog sensor (From meta-quanta rev: e5859df7d6c1d29656648c775e24836826082b2b) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I06eb7c1f4a9a92044c382ab1b5ea5149204e88d4 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-10-29meta-quanta: gbs: fix the SpeedMbps of ethernet interfaces in RedfishGeorge Hung1-0/+1
Enable it if your NIC driver supports the ETHTOOL features and it will fix showing 0 for the SpeedMbps of ethernet interfaces in Redfish (From meta-quanta rev: 3a1b489db1f65c4afe4c74c623f3023cfe4964ed) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I4c7b8d59fa942da5aa09177b749da0838c02a846 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-10-16meta-quanta: gbs: rename 99-ipmi-kcs.rules.rulesBrandon Kim2-2/+2
Take out the extra ".rules" suffix. (From meta-quanta rev: 4ff780bc39096dfc144a3910aa82bef8ebd29104) Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: Iffb1794af30f8d8844e328d9a398db054f6c017e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-10-16meta-quanta: gbs: update thermal config to R02George Hung2-3/+3
1. update the Ki for cputemp 2. update the target temp offset for cputemp (From meta-quanta rev: cd759de50c46b900255d5da4a5b4d03d322e8458) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I5f6ae87d50dd8883564c2a9084833983ea94aa66 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-10-16meta-quanta: gbs: fix gpio presence issueGeorge Hung1-34/+8
gpio presence service startup had the following issue: https://gerrit.openbmc-project.xyz/c/openbmc/meta-quanta/+/37359 This may cause gpio present status to be misjudged leading to wrong actions, thus add return code check to prevent them. Also, remove unused present messages (From meta-quanta rev: 18307556359068d936254d14f38392243bf80821) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ie955f2cec14ad1e8d51c6e6df9a47fd5db9e6720 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-10-14meta-quanta: gbs: add retry 10 times when service start on failureGeorge Hung1-0/+2
Sometimes gpio presence service will get sdbus "path not found" error for getting Inventory Manager service while bmc boot up with cleaning rw partition (From meta-quanta rev: b45c44a3903ae01ff8425ca965f091724363cbed) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ia625a27fb50c723d41ec3e789b611c0f82c05d95 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-10-09meta-quanta: gbs: change the sensor type of pwrdis/pwrenGeorge Hung2-40/+54
1. change the sensor type of pwrdis/pwren to slot/connector(21h) 2. gbs-nvme-pwr-ctrl: srcrev bump 9bc98c2de5..f7d2dbd6b4 George Hung (1): Update the state assertion of pwrdis/pwren (From meta-quanta rev: c512b3c4a98f2e7ab933564ee5484211de7e9ac1) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I3f26258487bdbb65524a2b4a063f2b82a2915f05 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-10-09meta-quanta: gbs: fix can't get MB FRU for RedfishGeorge Hung1-0/+1
Add system interface to FRU yaml to fix no MB FRU for Redfish (From meta-quanta rev: e2c1d850ae844ccaf59c779d8967e8de74df322f) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I3af6db27a6da657e6b17d7d3c3c11bd6815391b3 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-10-09meta-quanta: gbs: filter out vddcr_cpu_in/out current noise valueGeorge Hung1-4/+4
Set threshold to filter out the negative noise value reported from the VR sometimes (From meta-quanta rev: 6a7ec660d02d63631a71b0bb1a13f00a55e93603) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Id9f88bae0af56c99ab9528f7dd7d69cb4baa4a44 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>