diff options
author | Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com> | 2024-01-12 12:22:20 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2024-01-12 18:35:02 +0300 |
commit | 2f1f94c46259dbc9a085a1640a10663a6b159a39 (patch) | |
tree | 31f21ea47fb78a1cd392a6d2d8007844f76e7318 /meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor | |
parent | 67ab205ecdc015bb8d70ca768deca750d1f3115a (diff) | |
download | openbmc-2f1f94c46259dbc9a085a1640a10663a6b159a39.tar.xz |
meta-facebook: yosemite4: Support power policy after doing slot hot-plug
Add systemd service slot-hot-plug to recover host status by power policy
Tested:
plug out then in slot, check host status and journal
Change-Id: I8168b32a40c34d787fbfdd6c6a0c944ace919514
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
Diffstat (limited to 'meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor')
2 files changed, 95 insertions, 0 deletions
diff --git a/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/slot-hot-plug@.service b/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/slot-hot-plug@.service new file mode 100644 index 0000000000..66403a2a23 --- /dev/null +++ b/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/slot-hot-plug@.service @@ -0,0 +1,7 @@ +[Unit] +Description=slot hot-plug:%i + +[Service] +Type=oneshot +ExecStartPre=/usr/libexec/phosphor-state-manager/wait-until-mctp-connection-done %i +ExecStart=/bin/systemctl restart phosphor-discover-system-state@%i.service diff --git a/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/yosemite4-phosphor-multi-gpio-monitor.json b/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/yosemite4-phosphor-multi-gpio-monitor.json index a7bbcb1ae5..87073889fa 100644 --- a/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/yosemite4-phosphor-multi-gpio-monitor.json +++ b/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/yosemite4-phosphor-multi-gpio-monitor.json @@ -148,5 +148,93 @@ ] }, "Continue": true + }, + { + "Name": "PRSNT_SB_SLOT1_BMC_N", + "ChipId": "0", + "GpioNum": 44, + "EventMon": "FALLING", + "Targets": { + "FALLING": [ + "slot-hot-plug@1.service"] + }, + "Continue": true + }, + { + "Name": "PRSNT_SB_SLOT2_BMC_N", + "ChipId": "0", + "GpioNum": 45, + "EventMon": "FALLING", + "Targets": { + "FALLING": [ + "slot-hot-plug@2.service"] + }, + "Continue": true + }, + { + "Name": "PRSNT_SB_SLOT3_BMC_N", + "ChipId": "0", + "GpioNum": 46, + "EventMon": "FALLING", + "Targets": { + "FALLING": [ + "slot-hot-plug@3.service"] + }, + "Continue": true + }, + { + "Name": "PRSNT_SB_SLOT4_BMC_N", + "ChipId": "0", + "GpioNum": 47, + "EventMon": "FALLING", + "Targets": { + "FALLING": [ + "slot-hot-plug@4.service"] + }, + "Continue": true + }, + { + "Name": "PRSNT_SB_SLOT5_BMC_N", + "ChipId": "0", + "GpioNum": 132, + "EventMon": "FALLING", + "Targets": { + "FALLING": [ + "slot-hot-plug@5.service"] + }, + "Continue": true + }, + { + "Name": "PRSNT_SB_SLOT6_BMC_N", + "ChipId": "0", + "GpioNum": 133, + "EventMon": "FALLING", + "Targets": { + "FALLING": [ + "slot-hot-plug@6.service"] + }, + "Continue": true + }, + { + "Name": "PRSNT_SB_SLOT7_BMC_N", + "ChipId": "0", + "GpioNum": 134, + "EventMon": "FALLING", + "Targets": { + "FALLING": [ + "slot-hot-plug@7.service"] + }, + "Continue": true + }, + { + "Name": "PRSNT_SB_SLOT8_BMC_N", + "ChipId": "0", + "GpioNum": 135, + "EventMon": "FALLING", + "Targets": { + "FALLING": [ + "slot-hot-plug@8.service"] + }, + "Continue": true } ] |