summaryrefslogtreecommitdiff
path: root/meta-quanta/meta-gbs/recipes-gbs
AgeCommit message (Collapse)AuthorFilesLines
2021-11-30meta-quanta: gbs: Change the BIOS main flash label to bios-primaryGeorgeHuang1-4/+4
Change the BIOS main flash label to 'bios-primary' from 'pnor' for the bios-update.sh ref: https://github.com/openbmc/linux/commit/2eea476 Signed-off-by: GeorgeHuang <george.hung@quantatw.com> Change-Id: I208a24cd5f7956cc3461986eb0aed0348c186ebf
2021-08-19Revert "meta-quanta: gbs: update the related states D-bus service name"George Hung2-4/+4
This reverts commit 97466ae307a67c30d592c9d97a1e9d6e458e0e5b. Reason for revert: x86-power-control supports DBUS service name numbering for single and multi hosts now. ref: https://gerrit.openbmc-project.xyz/45004 Change-Id: Id1fb9e61a10a457158c52990fe6c196d6fc44708 Signed-off-by: George Hung <george.hung@quantatw.com>
2021-08-11meta-quanta: meta-gbs: Cleanup for Yocto override syntax changeBrandon Kim8-23/+23
Cleanup with ``` convert-overrides.py meta-quanta/meta-gbs git grep "_[a-z0-9_/-]*[ :]" -- meta-quanta/meta-gbs git grep -l _gbs -- meta-quanta/meta-gbs \ | xargs sed -i 's/_gbs/:gbs/' ``` After cleanup ``` $ git grep "_[a-z0-9_/-]*[ :]" -- meta-quanta/meta-gbs/ | grep '.bb' meta-quanta/meta-gbs/recipes-bsp/images/npcm7xx-igps-native_%.bbappend:addtask do_gbs_prepare_xmls after do_patch before do_install meta-quanta/meta-gbs/recipes-gbs/gbs-sysinit/gbs-sysinit.bb:do_install () { meta-quanta/meta-gbs/recipes-google/acpi-power-state/acpi-power-state-daemon_%.bbappend:do_install:append:gbs() { meta-quanta/meta-gbs/recipes-phosphor/fans/phosphor-pid-control_%.bbappend:do_install:append:gbs() { meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor_%.bbappend:do_install:append:gbs() { meta-quanta/meta-gbs/recipes-phosphor/interfaces/bmcweb_%.bbappend:do_install:append:gbs(){ meta-quanta/meta-gbs/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend:do_install:append:gbs() { meta-quanta/meta-gbs/recipes-phosphor/ipmi/phosphor-ipmi-blobs-binarystore_%.bbappend:do_install:append:gbs() { meta-quanta/meta-gbs/recipes-phosphor/leds/phosphor-led-manager_%.bbappend:do_install:append:gbs() { meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-nvme_%.bbappend:do_install:append:gbs() { meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-virtual-sensor_%.bbappend:do_install:append:gbs() { meta-quanta/meta-gbs/recipes-quanta/network/usb-network.bbappend:do_install:append:gbs() { meta-quanta/meta-gbs/recipes-x86/chassis/x86-power-control_%.bbappend:do_install:append:gbs() { ``` Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: If640ddd3c6f6084bb0a1d82e2d18fa2640d9d83e
2021-08-02meta-quanta: gbs: Move gbs-bmc-update to virtual providerBrandon Kim1-2/+3
This is to avoid conflicts with inplace-gbmc-update that's defualt on gBMC overrides. Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I8ccab5760dd8d4b0b5eb8de5cd270e756d5fa2aa
2021-07-30meta-quanta: gbs: expose pwrgd_p12v_all_slots as an IPMI sensorGeorge Hung1-2/+3
- monitor pwrgd_p12v_all_slots GPIO signal - add pwrgd_p12v_all_slots as IPMI sensor with pwrgd_p12v_slots sensor name Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I70ce89ad2a065cdc9ee59ace73085fea7036da0d
2021-07-28meta-quanta: gbs: update the related states D-bus service nameGeorge Hung2-4/+4
Since x86-power-control add multi-node support, the all related states D-bus service name add the node instance additionally Thus, update the Chassis/Host/RestartCause D-bus service name for all related scripts/services Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: If6ba080ff8757e01e230ee7d636e293922cdc127
2021-07-08meta-quanta: gbs: Improve gbs-sysinit.shBrandon Kim1-7/+4
Remove using external command in gbs-sysinit.sh Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I9fab3e275c822a0c87f5935cf912b258b923e33e
2021-07-01meta-quanta: gbs: update some changes to gbs-sysinit scriptGeorge Hung1-10/+24
- remove unnecessary reset PHY action - check the FIU node for different kernel version - rebind the module for the I2C switch on I2C bus 11 as it only can work with the normal power Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I9b4390d146902484c75bdce20ef6eead2833fc14
2021-07-01meta-quanta: gbs: remove gbs-nvme-pwr-ctrl/mac-address packagesGeorge Hung1-19/+0
remove packages and recipe files: - mac-address - gbs-nvme-pwr-ctrl Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ic9d6a48d16ec058d1f444badc2f3e69628f77859
2021-06-04meta-quanta: gbs: fix bios update script minior issueGeorge Hung1-2/+14
- check the FIU node for different kernel version - replace sh by bash for the script Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I20f72f2979f75cb6d22a9870c48619a507891005
2021-05-21meta-quanta: gbs: add the virtual provider for gbs-bios-updateGeorge Hung1-0/+3
Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I032031d25b0755611e870c779792844ef87d9e57
2021-05-13meta-quanta: gbs: srcrev bump f7d2dbd6b4..3b39e92a8George Hung1-1/+1
David Wang(1): Fix missing includes Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I95a1f9081c1db5eb858fd5202d35a3e9b772e436
2021-04-29meta-quanta: gbs: Add explicit RDEPENDS for toolsBrandon Kim2-1/+3
gbs-sysinit requires i2c-tools and gbs-hotswap-powercycle requires libgpiod-tools. Declare the RDEPENDS in the bitbake file. Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I28bdb2cc138e301faa395eb9150cc7624b93c8a3
2021-04-16meta-quanta: gbs: monitor fans e-fuse PG GPIO signalGeorge Hung1-2/+3
- 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-01meta-quanta: gbs: failsafe fan speed control dynamicallyGeorge Hung4-106/+2
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: 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-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-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
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-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-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-09meta-quanta: gbs: change the sensor type of pwrdis/pwrenGeorge Hung1-1/+1
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-09-04meta-quanta: gbs: fix only detect POST done state onceGeorge Hung2-14/+29
Fix the boot status LED behavior: 1. turn off boot status LED when system power off 2. keep monitoring POST done state GPIO to blink or turn on LED (From meta-quanta rev: d967cf675b25186828187c32e39ac29e70088c26) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I74c13a88a8c52cb430261653a99501841d634106 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-09-03meta-quanta: gbs: fix BMC can't record gpio present SEL logsGeorge Hung3-19/+20
It needs to set the correct sensor type in sensor DBus path and then records the gpio present SEL logs successfully cable sensors -> set sensor type 'cable' Non-cable sensors -> set sensor type 'entity presence' (From meta-quanta rev: c144969b7fc813610fa55a24629ead297ff24cfe) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I454d87439141b1b55d995a3276384429ad10d9a9 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-08-17meta-quanta: gbs: Add tray_powercycle.shBrandon Kim3-7/+32
Fix hotswap-power-cycle.service as well. (From meta-quanta rev: f27143480d654623b6e576b2ce236af3b6f0950d) Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I63e105c27a61475ffc84565a933c7c98bd3d268c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2020-08-07meta-quanta: gbs: fix nvme power control service name issueGeorge Hung1-2/+2
The nvme power control service name for mapper wait should be all lower case (From meta-quanta rev: e2d7195cab61bca8bbc1cfe9f03bb73b5bc97fa9) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Id7bcfa0a1024efd4dff39c58cedd7ccc6b5fd3b0 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-23meta-quanta: gbs: expose more GPIO signals as IPMI SDRGeorge Hung5-73/+75
1. monitor more GPIO signals gpio_net_name / gpio_number: ['SATA0_PRSNT_N']=5 ['HSBP_CABLE_PRSNT_BUF_N']=57 ['FAN_BRD_CABLE_PRSNT_BUF']=58 ['HSBP_P12V_STBY_CABLE_PRSNT']=69 ['PE_SLOT0_PRSNT_N']=120 ['PE_SLOT1_PRSNT_N']=121 2. add these GPIO signals to the sensor YAML config (From meta-quanta rev: de864a90b91c72a9d31a36688d744a12926a57b3) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ie39512763757e222ca386349a4c45af135500d65 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-23meta-quanta: gbs: add GBS system initial scriptGeorge Hung4-0/+506
system initial script: 1. get MB/HSBP/Fan boards REV/SKU ID 2. read FRUs on PE slots 3. reset PHY 4. SATA power enable 5. check HSBP/Fan board cables present 5. verfiy BIOS image 6. Host power on 7. gpio persistence (From meta-quanta rev: 3a9aa27f5ba286922f4d93470f30ac66cd9ff2d6) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ib15171e1828b08b159ff835150ceb4a577fe1a01 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-18meta-quanta: gbs: rename fan2/3/4 to fb_fan0/1/2George Hung2-6/+6
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 detect fan fail serviceGeorge Hung3-0/+106
When detecting fan fail, set other fans full speed (From meta-quanta rev: fe75a9e492d94088d5d70b9cf5bce24e47898b2f) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I764c9d90f551475de773dfc563763112127bde73 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-10meta-quanta: gbs: NVMe SSD power control for GBSGeorge Hung1-0/+19
add NVMe SSD power enable/disable DBus for sensors and allow host to set SSD power Note: Need to set gpio-line-names in kernel dts for SSD power enable/disable (From meta-quanta rev: 41dd1473c5fc9eef12366ad13c36461010860f5f) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Iab1fefc7c51176cf62b7d238e2de3837148eaebd Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-10meta-quanta: gbs: add GBS Entity Association MapGeorge Hung2-0/+45
Add entity association map for Google OEM IPMI command (get entity name) Tested: For example, get entity name, "fan0": ~# ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x06 0x1d 0x00 79 2b 00 06 05 2f 66 61 6e 30 (From meta-quanta rev: 52ce287bfcb8c7a4cdeb07fcd80903af5a0dd26b) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I173da270c29745518293133597a5a389d17bf1ce Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-24meta-quanta: gbs: check CPLD versionGeorge Hung3-0/+159
Read CPLD version by i2c bus and dump to file Tested: Check /run/cpld0.version file (From meta-quanta rev: 895ca7cf8514321c1000f914dd4fa96638d39904) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I371a70878f09a3d1ee5fed8a2926ed739ce30adf Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-12meta-quanta: gbs: boot status led actionGeorge Hung3-0/+73
The sys_boot_status LED would be set blinking until host post done. When host post done, the action of sys_boot_status would be set on Note: 1. LED action is set in led.yaml under "gbs-led-manager-config" directory 2. sys_boot_status LED gpio is set in kernel dts (From meta-quanta rev: 961e0f5890d3bc7b25491a024a694ea9ed01cb70) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ia2f5ff923b8dc6a7eda31d8d37e63a31d6d62028 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-12meta-quanta: gbs: detect SlimSAS cable presenceGeorge Hung3-0/+82
Add gpio configuration for SlimSAS cable0~3 and detect cables connected or not (From meta-quanta rev: 09b8cd98a953ef96fabd7bc1c8d090bd02c53d88) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ifee5ebf1a1055943ade8defce6be63b690bea8d2 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-12meta-quanta: gbs: inband bmc/bios image updateGeorge Hung10-0/+279
gbs-bmc-update and gbs-bios-update packages do inband bmc/bios image update via Nuvoton PCI mailbox Tested: Set PCI mailbox memory space as writable ~# sudo setpci -d 1050:0750 04.B=02 bmc update: ~# sudo burn_my_bmc --command update --interface ipmipci --image image-bmc --sig image-bmc.sig --type image bios update: ~# sudo burn_my_bmc --command update --interface ipmipci --image image-bios --sig image-bios.sig --type bios (From meta-quanta rev: 85d9f2a992421ca981ac11c6227ceb3531a3bb1a) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I1a73f724c4cf16636c460d20c6efd409eac4e80f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-08meta-quanta: gbs: add Hotswap Power Cycle ServiceGeorge Hung2-0/+35
Add a hotswap power cycle service for oem google sys command, "Delay hard reset". Tested: Setting 5 secs delay for delay hard reset: ~# ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x05 0x00 0x00 0x00 79 2b 00 03 (From meta-quanta rev: 4f20ff8ff1a9ea91f0e2a4f55ec7a2525bfc8a9a) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ib114ba2c47d652cb9c9999b45b503698e7fc5207 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>