Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# e81cec1e 16-Oct-2024 Bright Cheng <bright_cheng@wiwynn.com>

meta-facebook: yosemite4: set powerstate for empty slots

The power state of empty slot is not handled correctly due to
obmc-chassis-poweron@{}.target keeping active.

1. Get present pins of slots in

meta-facebook: yosemite4: set powerstate for empty slots

The power state of empty slot is not handled correctly due to
obmc-chassis-poweron@{}.target keeping active.

1. Get present pins of slots in yosemite4-early-sys-init.
2. Add a judgement in power control scripts to return fail when slot is
not present.
3. Add service to handle power control failure.

Tested:
1. Get power state while Yv4 being powered on with some empty slots, the
power state of empty slots should be off - pass.

Change-Id: I3b8c10bb12d6e54cbe89834962e52039bb497c83
Signed-off-by: Bright Cheng <bright.cheng.wiwynn@gmail.com>

show more ...


# 2a0ff542 22-Oct-2024 Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>

meta-facebook: yosemite4: Add flock when enabling and disabling i3c hub

Add flock when setting the i3c hub register to enable and disable
the i3c hub port to prevent the i3c hub register was locked

meta-facebook: yosemite4: Add flock when enabling and disabling i3c hub

Add flock when setting the i3c hub register to enable and disable
the i3c hub port to prevent the i3c hub register was locked by power
control process of other slots when the current power control process
wanted to enable or disable the i3c hub port.

Tested:
Ran power cycle stress test and didn't reproduce the issue.

Change-Id: If6b137c82662c60701dcc80e4455cdd671dd4f31
Signed-off-by: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>

show more ...


# d3be3088 10-Sep-2024 Eric Yang <eric.yang.wiwynn@gmail.com>

meta-facebook: yosemite4: Disable/Enable I3C Hub when AC OFF/ON

There is a leakage current on P1V2_STBY (channel 2) and P3V3_STBY (channel 1) when the slot is AC-OFF
This leakage originates from the

meta-facebook: yosemite4: Disable/Enable I3C Hub when AC OFF/ON

There is a leakage current on P1V2_STBY (channel 2) and P3V3_STBY (channel 1) when the slot is AC-OFF
This leakage originates from the I3C Hub.

To address this issue, modified the process as follows:
- Before turning off AC, disable the I3C Hub.
- After turning on AC, enable the I3C Hub.

Tested:
1. Disabled the slot’s corresponding I3C port before AC-OFF - pass
2. Enabled the slot’s corresponding I3C port after confirming AC-ON - pass
3. No longer observed leakage current after AC-OFF - pass

Change-Id: I72f0e0b5245f9dd427546b3f14c700d7fba30f5d
Signed-off-by: Eric Yang <eric.yang.wiwynn@gmail.com>

show more ...


# 3841660f 28-Aug-2024 Lora Lin <lora.lin.wiwynn@gmail.com>

meta-facebook: yosemite4: Remove the workaround to manually remove eid

Description:
- Remove the workaround on the chassis power off script to remove
the eid. mctpd needs to be able to handle this s

meta-facebook: yosemite4: Remove the workaround to manually remove eid

Description:
- Remove the workaround on the chassis power off script to remove
the eid. mctpd needs to be able to handle this situation.

Test Plan:
- eid disappears after 12V-off: Pass
- eid appears after 12V-on: Pass
- Check whether eid appears and disappears after 12-off/12-on: 200
rounds Pass

Test Log:
- original eid
busctl tree xyz.openbmc_project.MCTP
└─ /xyz
└─ /xyz/openbmc_project
└─ /xyz/openbmc_project/mctp
└─ /xyz/openbmc_project/mctp/1
├─ /xyz/openbmc_project/mctp/1/10
├─ /xyz/openbmc_project/mctp/1/12
├─ /xyz/openbmc_project/mctp/1/14
├─ /xyz/openbmc_project/mctp/1/15
├─ /xyz/openbmc_project/mctp/1/20
├─ /xyz/openbmc_project/mctp/1/22
├─ /xyz/openbmc_project/mctp/1/24
├─ /xyz/openbmc_project/mctp/1/25
├─ /xyz/openbmc_project/mctp/1/30
├─ /xyz/openbmc_project/mctp/1/32
├─ /xyz/openbmc_project/mctp/1/40
├─ /xyz/openbmc_project/mctp/1/42
├─ /xyz/openbmc_project/mctp/1/50
├─ /xyz/openbmc_project/mctp/1/52
├─ /xyz/openbmc_project/mctp/1/54
├─ /xyz/openbmc_project/mctp/1/60
├─ /xyz/openbmc_project/mctp/1/62
├─ /xyz/openbmc_project/mctp/1/64
├─ /xyz/openbmc_project/mctp/1/70
├─ /xyz/openbmc_project/mctp/1/72
├─ /xyz/openbmc_project/mctp/1/74
├─ /xyz/openbmc_project/mctp/1/75
├─ /xyz/openbmc_project/mctp/1/8
├─ /xyz/openbmc_project/mctp/1/80
├─ /xyz/openbmc_project/mctp/1/82
├─ /xyz/openbmc_project/mctp/1/84
├─ /xyz/openbmc_project/mctp/1/85
├─ /xyz/openbmc_project/mctp/1/91
├─ /xyz/openbmc_project/mctp/1/92
└─ /xyz/openbmc_project/mctp/1/93

- eid disappears after 12V-off
busctl tree xyz.openbmc_project.MCTP
└─ /xyz
└─ /xyz/openbmc_project
└─ /xyz/openbmc_project/mctp
└─ /xyz/openbmc_project/mctp/1
├─ /xyz/openbmc_project/mctp/1/8
├─ /xyz/openbmc_project/mctp/1/91
├─ /xyz/openbmc_project/mctp/1/92
└─ /xyz/openbmc_project/mctp/1/93

- eid appears after 12V-on
busctl tree xyz.openbmc_project.MCTP
└─ /xyz
└─ /xyz/openbmc_project
└─ /xyz/openbmc_project/mctp
└─ /xyz/openbmc_project/mctp/1
├─ /xyz/openbmc_project/mctp/1/10
├─ /xyz/openbmc_project/mctp/1/12
├─ /xyz/openbmc_project/mctp/1/14
├─ /xyz/openbmc_project/mctp/1/15
├─ /xyz/openbmc_project/mctp/1/20
├─ /xyz/openbmc_project/mctp/1/22
├─ /xyz/openbmc_project/mctp/1/24
├─ /xyz/openbmc_project/mctp/1/25
├─ /xyz/openbmc_project/mctp/1/30
├─ /xyz/openbmc_project/mctp/1/32
├─ /xyz/openbmc_project/mctp/1/40
├─ /xyz/openbmc_project/mctp/1/42
├─ /xyz/openbmc_project/mctp/1/50
├─ /xyz/openbmc_project/mctp/1/52
├─ /xyz/openbmc_project/mctp/1/54
├─ /xyz/openbmc_project/mctp/1/60
├─ /xyz/openbmc_project/mctp/1/62
├─ /xyz/openbmc_project/mctp/1/64
├─ /xyz/openbmc_project/mctp/1/70
├─ /xyz/openbmc_project/mctp/1/72
├─ /xyz/openbmc_project/mctp/1/74
├─ /xyz/openbmc_project/mctp/1/75
├─ /xyz/openbmc_project/mctp/1/8
├─ /xyz/openbmc_project/mctp/1/80
├─ /xyz/openbmc_project/mctp/1/82
├─ /xyz/openbmc_project/mctp/1/84
├─ /xyz/openbmc_project/mctp/1/85
├─ /xyz/openbmc_project/mctp/1/91
├─ /xyz/openbmc_project/mctp/1/92
└─ /xyz/openbmc_project/mctp/1/93

Change-Id: I703e33bf0bebf57135bfa6079bec819c87e782d7
Signed-off-by: Lora Lin <lora.lin.wiwynn@gmail.com>

show more ...


# 46b1116e 18-Jul-2024 Bright Cheng <bright_cheng@wiwynn.com>

meta-facebook: yosemite4: enhance power control events

1. Add event logs while power control is failed

Change-Id: Ib5f7e0c139004ecce765a9ad4ef5ee0b4566b7fe
Signed-off-by: Bright Cheng <bright_cheng

meta-facebook: yosemite4: enhance power control events

1. Add event logs while power control is failed

Change-Id: Ib5f7e0c139004ecce765a9ad4ef5ee0b4566b7fe
Signed-off-by: Bright Cheng <bright_cheng@wiwynn.com>

show more ...


# 52b63362 22-Jul-2024 Tim Lee <timlee660101@gmail.com>

meta-facebook: yosemite4: refactor common function for stability

Refactor `check_nuvoton_board` function to avoid some scritps define
`set -e` in the beginning of `#!/bin/bash` that will think faile

meta-facebook: yosemite4: refactor common function for stability

Refactor `check_nuvoton_board` function to avoid some scritps define
`set -e` in the beginning of `#!/bin/bash` that will think failed when
return value is non-zero and related services might got failed also.

Tested:
Run related services successfully.
root@bmc:/# systemctl status yosemite4-sys-init.service
bmc systemd[1]: Starting Yosemite4 Early System Init...
bmc systemd[1]: yosemite4-sys-init.service: Deactivated successfully.
bmc systemd[1]: Finished Yosemite4 Early System Init.

root@bmc:/# systemctl status mctpd.service
* mctpd.service - MCTP control protocol daemon
Drop-In: /usr/lib/systemd/system/mctpd.service.d
`-setup-local-eid.conf, setup-static-endpoints.conf

Signed-off-by: Tim Lee <timlee660101@gmail.com>
Change-Id: I6045d6ae6349cf84f0e920e4d219def602515809

show more ...


# ff661bb8 18-Jul-2024 Tim Lee <timlee660101@gmail.com>

meta-facebook: yosemite4: state: inform MGM CPLD the 12V status of slots

Add this for yosemite4n only to inform MGM CPLD the 12V status of slots
when doing 12V power control.

Tested:
Run all chassi

meta-facebook: yosemite4: state: inform MGM CPLD the 12V status of slots

Add this for yosemite4n only to inform MGM CPLD the 12V status of slots
when doing 12V power control.

Tested:
Run all chassis-poweron/chassis-poweroff/chassis-powercycle pass.

Signed-off-by: Tim Lee <timlee660101@gmail.com>
Change-Id: I8318af7136d88f122c4ba5878bfddb6a0390c7e0

show more ...


Revision tags: 2.17.0-dev
# cc6df074 21-Jun-2024 Delphine CC Chiu <delphine_cc_chiu@wiwynn.com>

meta-facebook: yosemite4: enhance power control

1. Add retry of gpioget/gpioset function since gpio control is mutual
exclusive
2. Remove EID removal workaround.
3. Extend 12v cycle interval which l

meta-facebook: yosemite4: enhance power control

1. Add retry of gpioget/gpioset function since gpio control is mutual
exclusive
2. Remove EID removal workaround.
3. Extend 12v cycle interval which let entity-manager have enough time
to detect FRU removal.

Change-Id: I736ea4cdac9ea9d27efa3c31f40be847be0c50a8
Signed-off-by: Delphine CC Chiu <delphine_cc_chiu@wiwynn.com>

show more ...


# 6a339a98 13-Jun-2024 Delphine CC Chiu <delphine_cc_chiu@wiwynn.com>

meta-facebook: yosemite4: fix power control failure

1. Remove SD/WF BIC EID before 12V off.
2. Remove unnecessary BIC power control.

Change-Id: I493ce5b035c1940062cb826a96f53a1ff2cc52f0
Signed-off-

meta-facebook: yosemite4: fix power control failure

1. Remove SD/WF BIC EID before 12V off.
2. Remove unnecessary BIC power control.

Change-Id: I493ce5b035c1940062cb826a96f53a1ff2cc52f0
Signed-off-by: Delphine CC Chiu <delphine_cc_chiu@wiwynn.com>
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# 3f547b49 21-May-2024 Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>

meta-facebook: yosemite4: Add Power Control Status Check

Implement pre-operation and post-operation status checks for
each power control action.

Change the power cycle behavior to do host on and of

meta-facebook: yosemite4: Add Power Control Status Check

Implement pre-operation and post-operation status checks for
each power control action.

Change the power cycle behavior to do host on and off on BMC side,
so that each power operation can be checked.

Change-Id: Ib59626ed35965e852bd5ce8c4b776711872bc656
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>

show more ...


# 9afd92ec 15-Feb-2024 Patrick Williams <patrick@stwcx.xyz>

meta-facebook: phosphor-state-manager: move greatlakes overrides to system

Greatlakes was a prototype and introduced a lot of noise at the top
level. Move this into the system-specific side.

Signe

meta-facebook: phosphor-state-manager: move greatlakes overrides to system

Greatlakes was a prototype and introduced a lot of noise at the top
level. Move this into the system-specific side.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ibf3310c7e3ccc4d400f5d422ef577fb2bfdbd685

show more ...


Revision tags: 2.16.0-dev
# 1958659d 02-Nov-2023 Eric <Eric_LC_Chen@wiwynn.com>

yosemite4: Support bic power off before 12v off

Support BIC power off before 12v power off/cycle for power sequence

Tested:
record the BIC power and 12v stby power with EE

Change-Id: If3d6fafed119

yosemite4: Support bic power off before 12v off

Support BIC power off before 12v power off/cycle for power sequence

Tested:
record the BIC power and 12v stby power with EE

Change-Id: If3d6fafed1196186297c3ede18c67f45c33ff9b9
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>

show more ...


# 94e15830 22-Aug-2023 Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>

meta-facebook: yosemite4: Support sled power cycle

Description:
- Support sled power cycle
- Revise 12v power control and host power control

Design:
- Add sled power cycle action as chassis 0 by se

meta-facebook: yosemite4: Support sled power cycle

Description:
- Support sled power cycle
- Revise 12v power control and host power control

Design:
- Add sled power cycle action as chassis 0 by setting virtual i/o exp output port.
- Revise gpio setting and command parameter for 12v power control and host power control.

Test Case:
- Set sled cycle by phosphor-state-manager: pass
- Set 12V on/off/cycle by phosphor-state-manager: pass
- Set host on/off/cycle/reset by phosphor-state-manager: pass

Test Log:
root@yosemite4:~# 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"
root@yosemite4:~# journalctl --since "20 second ago"
Jul 28 07:03:44 yosemite4 phosphor-chassis-state-manager[349]: Change to Chassis Requested Power State: xyz.openbmc_project.State.Chassis.Transition.PowerCycle
Jul 28 07:03:44 yosemite4 systemd[1]: Created slice Slice /system/chassis-powercycle.
Jul 28 07:03:44 yosemite4 systemd[1]: Starting Chassis Power Cycle: 0...
Jul 28 07:03:45 yosemite4 chassis-powercycle[661]: Starting sled cycle...

Change-Id: I6cdb26a2fd8d4d445ca41302d070a369a40c79dd
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>

show more ...


# ad82d62b 26-Jul-2023 Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>

meta-facebook: yosemite4: Support host and chassis power control

Description:
- Support host and chassis power control by setting dbus property from phosphor-state-manager

Design:
- Add host/chassi

meta-facebook: yosemite4: Support host and chassis power control

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>

show more ...