/openbmc/linux/drivers/power/reset/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 bool "Board level reset or power off" 6 or shut it down, by manipulating the main power supply on the board. 8 Say Y here to enable board reset and power off 13 bool "ams AS3722 power-off driver" 16 This driver supports turning off board via a ams AS3722 power-off. 35 tristate "Atmel AT91 SAMA5D2-Compatible shutdown controller driver" 43 tristate "Actions Semi ATC260x PMIC power-off driver" 46 This driver provides power-off and restart support for a system 64 Say Y here if you have a Broadcom Kona-based board and you wish [all …]
|
/openbmc/phosphor-fan-presence/docs/monitor/ |
H A D | power_off_config.md | 5 A list of power off rules based on the monitoring state of the fans configured. 6 These power off rules can perform different system power off types to protect a 12 - `type` - ["hard", "soft", "epow"] 13 - "hard" - Perform a hard shutdown that immediately powers off the system. 14 - "soft" - Perform an orderly shutdown requesting that the host OS power off 16 - "epow" - Sets the thermal alert D-Bus property that a power off is imminent 18 - `cause` - ["missing_fan_frus", "nonfunc_fan_rotors"] 19 - "missing_fan_frus" - Power off due to missing fan enclosures 20 - "nonfunc_fan_rotors" - Power off due to nonfunctional fan 22 - "fan_frus_with_nonfunc_rotors" - Power off due to the number of fan FRUs [all …]
|
/openbmc/openbmc-test-automation/docs/ |
H A D | boot_test.md | 3 The boot plugins are used in the test and as well can be use a stand-alone 9 robot -v OPENBMC_HOST:xx.xx.xx.xx -v OPENBMC_PASSWORD:xxx -v 'boot_stack:<boot1>:<boot2>:<bootn>:' … 13 [data/boot_lists/All](https://github.com/openbmc/openbmc-test-automation/blob/master/data/boot_list… 18 robot -v OPENBMC_HOST:xx.xx.xx.xx -v OPENBMC_PASSWORD:xxx -v 'boot_stack:Redfish Power On:Redfish … 25 ---------------------------------------- ----- ---- ---- 26 Redfish Power On 1 1 0 27 Redfish Power On (mfg) 0 0 0 28 IPMI Power On 0 0 0 29 IPMI Power On (mfg) 0 0 0 30 Istep Power On 0 0 0 [all …]
|
/openbmc/phosphor-fan-presence/monitor/ |
H A D | power_off_action.hpp | 20 * This is the base class for a power off action, which is 22 * power offs based on fan failures. 24 * The power off is started with the start() method, and the 27 * there is a delay before the power off. 30 * the D-Bus call to do the power off, so it can be mocked 48 * @param[in] name - The action name. Used for tracing. 49 * @param[in] powerInterface - The object used to invoke the power off. 50 * @param[in] powerOffFunc - A function to call right before the power 51 * off occurs (after any delays). May be 63 * @brief Starts the power off. [all …]
|
H A D | power_off_rule.hpp | 19 runtime // Anytime that power is on. 25 * This class implements a power off rule, which has a cause 27 * power off that will occur when the cause is satisfied. 30 * status may have changed, and then the power off action may 46 * @param[in] validState - What state the rule is valid for 47 * @param[in] cause - The power off cause to use 48 * @param[in] action - The power off action to use 58 * @brief Used to cancel a delay based power off when 66 _action->cancel(true); in cancel() 71 * and starts the power off action if the cause [all …]
|
/openbmc/openbmc-test-automation/gui/gui_test/operations_menu/ |
H A D | test_server_power_operations_sub_menu.robot | 3 Documentation Test OpenBMC GUI "Server power operations" sub-menu of "Operations". 8 Test Setup Run Keywords Launch Browser And Login GUI AND Navigate to Server Power Operation… 15 ${xpath_server_power_heading} //h1[text()="Server power operations"] 16 ${xpath_enable_onetime_boot_checkbox} //*[contains(@class,'custom-checkbox')] 17 ${xpath_boot_option_select} //*[@id='boot-option'] 18 ${xpath_shutdown_button} //*[@data-test-id='serverPowerOperations-button-shutDown… 19 ${xpath_reboot_button} //*[@data-test-id='serverPowerOperations-button-reboot'] 20 ${xpath_poweron_button} //*[@data-test-id='serverPowerOperations-button-powerOn'] 22 ${xpath_shutdown_orderly_radio} //*[@data-test-id='serverPowerOperations-radio-shutdownO… 23 ${xpath_shutdown_immediate_radio} //*[@data-test-id='serverPowerOperations-radio-shutdownI… [all …]
|
/openbmc/openbmc-test-automation/redfish/extended/ |
H A D | test_power_capping.robot | 2 Documentation Energy scale power capping tests. 6 # PL Power Limit 35 [Documentation] Change active power limit with system power on and 36 ... Power limit active. 39 Set DCMI Power Limit And Verify ${max_power} 41 Redfish Power On stack_mode=skip 43 Tool Exist opal-prd 47 ${cmd}= Set Variable /tmp/occtoolp9 -p | grep -e State: -e Sensor: 57 ${output} ${stderr} ${rc}= OS Execute Command opal-prd occ disable 62 # Re-enable OCC for remaining tests. [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/State/ |
H A D | Chassis.interface.yaml | 1 description: Implement to provide the chassis power management 4 - name: RequestedPowerTransition 6 default: "Off" 8 The desired power transition to start on this chassis. This will be 9 preserved across AC power cycles of the BMC. 11 - xyz.openbmc_project.State.Chassis.Error.BMCNotReady 12 - xyz.openbmc_project.Common.Error.Unavailable 14 - name: CurrentPowerState 17 A read-only property describing the current chassis power state. A 21 - name: CurrentPowerStatus [all …]
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/state/phosphor-state-manager/ |
H A D | host-poweroff | 6 # shellcheck source=meta-facebook/meta-yosemite4/recipes-phosphor/state/phosphor-state-manager/powe… 7 source /usr/libexec/phosphor-state-manager/power-cmd 9 CHASSIS_BUS=$(($1 - 1)) 11 GPIOCHIP_IO_EXP_HOST_POWER_STATUS=$(basename "/sys/bus/i2c/devices/$CHASSIS_BUS-0023/"*gpiochip*) 26 echo "Already host power off." 30 # Check if PRSNT_SB_SLOT{1~8}_N is exist, if not exist, continues power-off process 31 if [ ! -f "/tmp/gpio/PRSNT_SB_SLOT${1}_N" ]; then 32 echo "PRSNT_SB_SLOT${1}_N is not exist, continue power-off process" 35 if [ "$slot_presence" -ne 0 ]; then 36 echo "Host$1 is not present, skip power-off process" [all …]
|
H A D | host-powercycle | 6 # shellcheck source=meta-facebook/meta-yosemite4/recipes-phosphor/state/phosphor-state-manager/powe… 7 source /usr/libexec/phosphor-state-manager/power-cmd 10 CHASSIS_BUS=$((CHASSIS_ID - 1)) 12 GPIOCHIP_IO_EXP_HOST_POWER_STATUS=$(basename "/sys/bus/i2c/devices/$CHASSIS_BUS-0023/"*gpiochip*) 28 # Current power is ON, cycle do OFF to ON. If current power is OFF then do ON 30 # Set state effecter state: Entity ID 0x0000 for host power control, 0x2 for power off 31 pldmtool raw -d 0x80 0x02 0x39 0x00 0x00 0x01 0x00 0x02 -m "$EID" 33 # Set host state to off 34 …busctl set-property "$HOST_BUS_NAME""$CHASSIS_ID" "$HOST_OBJ_PATH""$CHASSIS_ID" "$HOST_INTF_NAME" … 35 msg="Host$CHASSIS_ID system DC power is off" [all …]
|
H A D | chassis-poweroff | 6 # shellcheck source=meta-facebook/meta-yosemite4/recipes-phosphor/state/phosphor-state-manager/powe… 7 source /usr/libexec/phosphor-state-manager/power-cmd 8 # shellcheck source=meta-facebook/meta-yosemite4/recipes-yosemite4/plat-tool/files/yosemite4-common… 9 source /usr/libexec/yosemite4-common-functions 11 #IO 0:7 input port for showing slot 1:8 power status 12 #IO 8:16 output port for controlling slot 1:8 power status 14 IO_EXP_SLOT_PWR_STATUS=$((CHASSIS_ID - 1)) 19 GPIOCHIP_IO_EXP_SLOT_PWR_CTRL=$(basename "/sys/bus/i2c/devices/$SPIDER_BOARD_IO_EXP_BUS_NUM-00$IO_E… 20 #GPIOCHIP_IO_EXP_BIC_PWR_CTRL=$(basename "/sys/bus/i2c/devices/$IO_EXP_SLOT_PWR_STATUS-00$IO_EXP_BI… 21 …TATUS_CTRL=$(basename "/sys/bus/i2c/devices/$MANAGEMENT_BOARD_IO_EXP_BUS_NUM-00$IO_EXP_SLED_PWR_CT… [all …]
|
/openbmc/phosphor-buttons/inc/ |
H A D | host_then_chassis_poweroff.hpp | 17 * A custom power button handler that will do the following: 19 * If power is off: 20 * - A button press will power on as long as the BMC is 23 * If power is on: 24 * - A button press less than 4s won't do anything. 25 * - At 4s, issue a host power off and start a 10s timer. 26 * - If the button is released within that 10s and not pressed 27 * again, continue with the host power off. 28 * - If the button is released within that 10s and also 29 * pressed again in that 10s, do a hard power (chassis) [all …]
|
/openbmc/phosphor-power/phosphor-power-sequencer/docs/ |
H A D | README.md | 1 # phosphor-power-sequencer 5 The phosphor-power-sequencer application powers the chassis on/off and monitors 6 the power sequencer device. 8 If the chassis power good (pgood) status changes to false unexpectedly, the 9 application uses information from the power sequencer device to determine the 14 The application is a single-threaded C++ executable. It is a 'daemon' process 18 The application is driven by an optional, system-specific JSON configuration 20 creates a collection of C++ objects. These objects represent the power sequencer 23 ## Power sequencer device 25 A power sequencer device enables (turns on) the voltage rails in the correct [all …]
|
/openbmc/openbmc-test-automation/gui/test/server_control/ |
H A D | test_obmc_gui_server_power_operations.robot | 3 Documentation Test OpenBMC GUI "Server power operation" sub-menu of 13 ${xpath_power_indicator_bar} //*[@id='power-indicator-bar'] 16 ${xpath_power_on_button} //button[contains(text(), "Power on")] 17 ${xpath_tpm_toggle_switch} //label[@for="toggle__switch-round"] 18 ${xpath_select_boot_override} //select[@id="boot-selected"] 19 ${xpath_select_one_time_boot} //label[@id="one-time-label"] 23 Verify System State At Power Off 24 [Documentation] Verify system state at power off. 28 Element Should Contain ${xpath_power_indicator_bar} Off 31 Verify BMC IP In Server Power Operation Page [all …]
|
/openbmc/openbmc-test-automation/xcat/ |
H A D | test_power_operation.robot | 17 Verify Power On Via XCAT 18 [Documentation] Power on system via XCAT and verify using REST. 25 Verify Power Off Via XCAT 26 [Documentation] Power off system via XCAT and verify using REST. 29 Execute Command On XCAT rpower off 30 Wait Until Keyword Succeeds 6 min 10 sec Is Host Off 42 Verify Soft Power Off Followed With Power On 43 [Documentation] Verify soft power off system followed with power on. 48 Wait Until Keyword Succeeds 6 min 10 sec Is Host Off 54 Verify Hard Power Off Followed With Power On [all …]
|
/openbmc/openbmc-test-automation/ipmi/ |
H A D | test_ipmi_chassis.robot | 28 [Documentation] This test case verifies system power on status 32 Redfish Power On stack_mode=skip quiet=1 34 ${power_status}= Get Lines Containing String ${resp} System Power 37 IPMI Chassis Status Off 38 [Documentation] This test case verifies system power off status 42 Redfish Power Off stack_mode=skip quiet=1 44 ${power_status}= Get Lines Containing String ${resp} System Power 45 Should Contain ${power_status} off 48 [Documentation] Verify host power off operation using external IPMI command. 51 IPMI Power Off [all …]
|
/openbmc/openbmc-test-automation/data/ |
H A D | boot_table.json | 2 "REST Power On": { 5 "chassis": "^Off$", 6 "boot_progress": "^Off|Unspecified$", 8 "host": "^Off$" 25 "Redfish Power On": { 28 "chassis": "^Off$", 29 "boot_progress": "^Off|Unspecified$", 31 "host": "^Off$" 45 "method": "Redfish Power Operation On", 48 "IPMI Power On": { [all …]
|
H A D | boot_table_x86.json | 2 "Redfish Power On": { 5 "chassis": "^Off$", 18 "method": "Redfish Power Operation On", 21 "IPMI Power On": { 24 "chassis": "^Off$", 37 "method": "Run External IPMI Standard Command power on -N 10 -R 1", 41 "Redfish Power Off": { 48 "chassis": "^Off$", 56 "method": "Redfish Power Operation GracefulShutdown", 59 "Redfish Hard Power Off": { [all …]
|
H A D | boot_table_redfish.json | 2 "Redfish Power On": { 5 "chassis": "^Off$", 20 "method": "Redfish Power Operation On", 23 "IPMI Power On": { 26 "chassis": "^Off$", 41 "method": "Run External IPMI Standard Command power on -N 10 -R 1", 44 "Istep Power On": { 47 "chassis": "^Off$", 64 "Redfish Power Off": { 71 "chassis": "^Off$", [all …]
|
/openbmc/docs/architecture/ |
H A D | openbmc-systemd.md | 9 [Unit](https://www.freedesktop.org/software/systemd/man/systemd.unit.html#) - 11 [Service](https://www.freedesktop.org/software/systemd/man/systemd.service.html) - 13 [Target](https://www.freedesktop.org/software/systemd/man/systemd.target.html) - 27 --- 29 ## Initial Power 31 When an OpenBMC system first has power applied, it starts the "default.target" 33 OpenBMC, there is a link from `default.target` to `multi-user.target`. 35 You'll find all the phosphor services associated with `multi-user.target`. 37 ## Server Power On 40 [obmc-host-start@.target](https://github.com/openbmc/phosphor-state-manager/blob/master/target_file… [all …]
|
/openbmc/openbmc/meta-facebook/meta-greatlakes/recipes-phosphor/state/phosphor-state-manager/ |
H A D | host-poweroff | 4 # shellcheck source=meta-facebook/meta-greatlakes/recipes-phosphor/state/phosphor-state-manager/pow… 5 source /usr/libexec/phosphor-state-manager/power-cmd 8 SLOT_ID=$(( $1-1 << 2 )) 10 # Host Power Off 11 host-power-off() 17 result=$(echo "$response" | cut -d" " -f "$IPMB_CMD_COMPLETE_CODE_INDEX") 18 if [ "$result" -ne 0 ] 29 # Check host stattus after doing host power off 30 host_status=$(host-power-status $SLOT_ID) 33 …busctl set-property "$HOST_BUS_NAME""$HOST_ID" "$HOST_OBJ_PATH""$HOST_ID" "$HOST_INTF_NAME" "$HOST… [all …]
|
H A D | chassis-poweroff | 4 # shellcheck source=meta-facebook/meta-greatlakes/recipes-phosphor/state/phosphor-state-manager/pow… 5 source /usr/libexec/phosphor-state-manager/power-cmd 8 SLOT=$(( $1-1 )) 11 # Server 12v power off 12 chassis-power-off() 14 result=$(i2cset -y "$CPLD_BUS_NUM" "$CPLD_PWR_CTRL_ADDR" "$OFFSET" "$POW_OFF_SLOT") 18 # Check chassis status after doing 12V off 19 chassis_status=$(chassis-power-status $SLOT) 22 …busctl set-property "$CHASSIS_BUS_NAME""$CHASSIS_ID" "$CHASSIS_OBJ_PATH""$CHASSIS_ID" "$CHASSIS_IN… 23 echo "Chassis is power off" [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | twl4030-power.txt | 1 Texas Instruments TWL family (twl4030) reset and power management module 3 The power management module inside the TWL family provides several facilities 4 to control the power resources, including power scripts. For now, the 8 - compatible : must be one of the following 9 "ti,twl4030-power" 10 "ti,twl4030-power-reset" 11 "ti,twl4030-power-idle" 12 "ti,twl4030-power-idle-osc-off" 14 The use of ti,twl4030-power-reset is recommended at least on 17 When using ti,twl4030-power-idle, the TI recommended configuration [all …]
|
/openbmc/openbmc-test-automation/lib/ |
H A D | state_manager.robot | 17 [Documentation] Initiate host power on. 35 [Documentation] Initiate host power off. 36 # 1. Request soft power off 37 # 2. Hard power off, if failed. 41 # wait Indicates that this keyword should wait for host off state. 52 Run Keyword if '${status}' == '${False}' Hard Power Off 56 [Documentation] Wait for power off state. 58 # TODO: Reference to open-power/skiboot#81. 60 Wait Until Keyword Succeeds 6 min 10 sec Is Host Off 63 Hard Power Off [all …]
|
/openbmc/linux/arch/sparc/include/asm/ |
H A D | auxio_64.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 * sbus-based NCR89C105 "Slavio" 15 * Power (AUX2) register 17 * ebus-based auxio on PCIO 19 * Power Auxio Register 24 * ------------------------------------------------- 26 * ------------------------------------------------- 27 * (R) - bit 7:6,4 are reserved and should be masked in s/w 28 * D - Floppy Density Sense (1=high density) R/O 29 * E - Link Test Enable, directly reflected on AT&T 7213 LTE pin [all …]
|