Age | Commit message (Collapse) | Author | Files | Lines |
|
`:append` calls usually need to have a space at the beginning since
it does a literal direct append of the string. Without this we end
up with an invalid PACKAGECONFIG of
"only-allow-boot-when-bmc-readyno-warm-reboot".
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I9a1f302b1b9c64b32dd6f32a1925d41916e2969f
|
|
The WF BIC and CXL might not ready when BMC setting up MCTP network.
Add rescan mechanism to make sure it get the EIDs.
Change-Id: I7d57f549a4b7c9441eadab08d4df0d1e4b46e4d1
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
|
|
Most systems are fine with supporting a warm reboot so don't make it a
default.
Change-Id: Ifb906f0b0d81b97265b6b6a79104408161bded7e
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
When a bbappend file is already in a meta-machine layer, there is no
reason for extra ":machine" override syntax usage. Remove them all.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I610e72633adb5bc36b63fe2b727e394c61070185
|
|
Some systems have separate voltage domains between the chassis and
the host, so they disable the host-shutdown to chassis-poweroff
dependency. As a side-effect, the host never stops as part of the
host-shutdown. (The current default dependency is host-shutdown ->
chassis-poweroff -> power-stop -> host-stop ). Adding an additional
dependency from host-shutdown directly to host-stop, so that the
host is stopped when shutdown.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I7141dbe4ec4590158cc25147a9b387bc562ed957
|
|
Now that OBMC_POWER_INSTANCES is eliminated, we get the correct target
links created between host-startmin and chassis-poweron. This extra
link is not necessary.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ida433ee178f3ef05fef2312d8fa6e9c2a5744dbd
|
|
There were a few issues in the phosphor-state-manager relationships
that prevented the Host and Chassis dbus objects from reflecting
reality. Adjust them accordingly.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I3bac67d447d0e99fbe1b0f32ee04c1e5a12b8d98
|
|
Scripts should be installed with 0755 permissions and not 0777,
otherwise non-root users can potentially modify or delete them.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I41270a2bb3fb940d8ca49ed6230545d98efb2fea
|
|
We found out the power policy failed after doing 12v cycle.
Because the 12v power on and cycles execute using pldmtool cmd,
we need to wait until the mctp connection is done, so it can send
cmd to BIC normally.
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
Change-Id: I519340e786a5eaf4dcb27d0eff149c137658434d
|
|
There are three power policy options: AlwaysOn, AlwaysOff, and Restore.
After the system AC returns, the service `phosphor-discover-system-state`
would get the property `PowerRestorePolicy` under `/xyz/openbmc_project/
control/host{id}/power_restore_policy` to do its power policy.
The power policy also needs to be done after chassis power returns. Support
restarting the `phosphor-discover-system-state` service for doing the policy
after the chassis power on and cycle.
Tested: tested on yv4 system.
Change-Id: I3412741cd25aff1e980b377a9af16606314e6965
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
|
|
Remove two depnedencies being redundant in yosemite4:
1. slot host off was waiting the invalid ipmi host service,
and we won't use Ipmi.Internal.SoftPowerOff.service.
2. obmc-host-shutdown@.target required by obmc-host-reboot:
power cycle and off will be both triggered with this dependency.
For these reasons, remove dependencies,
and it was verified that power control will be fine with changes.
Tested:
host power on/off/cycle: pass
Change-Id: Ieb0e82b5297d05ec552ccec967d9dc41de4aa756
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
|
|
Description:
- Support host and chassis power control by setting dbus property from phosphor-state-manager
Design:
- Add host/chassis power control services and scripts
- chassis power control:
- do 12V power on/off/cycle by setting virtual i/o exp output port.
Limitation:
- Implementation of host power control and sled cycle are not support for now.
- Host power control will be implemented after both BMC/BIC support PDLM commands.
- Sled cycle will be implemented after power control between CPLD and HSC was ready.
Test Case:
- host power on:
- command:
- busctl set-property xyz.openbmc_project.State.Host8 /xyz/openbmc_project/state/host8 xyz.openbmc_project.State.Host RequestedHostTransition s "xyz.openbmc_proct.State.Host.Transition.On"
- show "Host power on is not support for now" in journal
- host power off:
- command:
- busctl set-property xyz.openbmc_project.State.Host8 /xyz/openbmc_project/state/host8 xyz.openbmc_project.State.Host RequestedHostTransition s "xyz.openbmc_project.State.Host.Transition.Off"
- show "Host power off is not support for now" in journal
- host power cycle:
- command:
- busctl set-property xyz.openbmc_project.State.Host8 /xyz/openbmc_project/state/host8 xyz.openbmc_project.State.Host RequestedHostTransition s "xyz.openbmc_project.State.Host.Transition.Powercycle"
- show "Host power cycle is not support for now" in journal
- host power reset:
- command:
- busctl set-property xyz.openbmc_project.State.Host8 /xyz/openbmc_project/state/host8 xyz.openbmc_project.State.Host RequestedHostTransition s "xyz.openbmc_project.State.Host.Transition.ForceWarmReboot"
- show "Host power reset is not support for now" in journal
- chassis power on:
- command:
- busctl set-property xyz.openbmc_project.State.Chassis8 /xyz/openbmc_project/state/chassis8 xyz.openbmc_project.State.Chassis RequestedPowerTransition s "xyz.openbmc_project.State.Chassis.Transition.On"
- show chassis-poweron started in journal
- chassis power off:
- command:
- busctl set-property xyz.openbmc_project.State.Chassis8 /xyz/openbmc_project/state/chassis8 xyz.openbmc_project.State.Chassis RequestedPowerTransition s "xyz.openbmc_project.State.Chassis.Transition.Off"
- show chassis-poweroff started in journal
- chassis power cycle:
- command:
- busctl set-property xyz.openbmc_project.State.Chassis8 /xyz/openbmc_project/state/chassis8 xyz.openbmc_project.State.Chassis RequestedPowerTransition s "xyz.openbmc_project.State.Chassis.Transition.PowerCycle"
- show chassis-powecycle started in journal
- sled cycle:
- command:
- busctl set-property xyz.openbmc_project.State.Chassis0 /xyz/openbmc_project/state/chassis0 xyz.openbmc_project.State.Chassis RequestedPowerTransition s "xyz.openbmc_project.State.Chassis.Transition.PowerCycle
- show "SLED-cycle is not support for now" in journal
Change-Id: I021e2c438974765bebeff6c7ed7e7d5b56c586a3
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
|