summaryrefslogtreecommitdiff
path: root/meta-quanta/meta-gbs/recipes-gbs/gbs-sysinit
AgeCommit message (Collapse)AuthorFilesLines
2021-08-19Revert "meta-quanta: gbs: update the related states D-bus service name"George Hung1-2/+2
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 Kim1-5/+5
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-07-28meta-quanta: gbs: update the related states D-bus service nameGeorge Hung1-2/+2
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-04-29meta-quanta: gbs: Add explicit RDEPENDS for toolsBrandon Kim1-1/+2
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-01meta-quanta: gbs: failsafe fan speed control dynamicallyGeorge Hung1-0/+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
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-09-03meta-quanta: gbs: fix BMC can't record gpio present SEL logsGeorge Hung1-6/+7
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-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: 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>