/openbmc/linux/tools/testing/selftests/livepatch/ |
H A D | test-callbacks.sh | 19 # - On livepatch enable, before the livepatch transition starts, 23 # transition completes. 26 # unpatching transition starts. klp_objects are reverted, post-patch 27 # callbacks execute and the transition completes. 41 livepatch: '$MOD_LIVEPATCH': initializing patching transition 44 livepatch: '$MOD_LIVEPATCH': starting patching transition 45 livepatch: '$MOD_LIVEPATCH': completing patching transition 50 livepatch: '$MOD_LIVEPATCH': initializing unpatching transition 53 livepatch: '$MOD_LIVEPATCH': starting unpatching transition 54 livepatch: '$MOD_LIVEPATCH': completing unpatching transition [all …]
|
H A D | test-state.sh | 24 livepatch: '$MOD_LIVEPATCH': initializing patching transition 27 livepatch: '$MOD_LIVEPATCH': starting patching transition 28 livepatch: '$MOD_LIVEPATCH': completing patching transition 33 livepatch: '$MOD_LIVEPATCH': initializing unpatching transition 36 livepatch: '$MOD_LIVEPATCH': starting unpatching transition 37 livepatch: '$MOD_LIVEPATCH': completing unpatching transition 56 livepatch: '$MOD_LIVEPATCH': initializing patching transition 59 livepatch: '$MOD_LIVEPATCH': starting patching transition 60 livepatch: '$MOD_LIVEPATCH': completing patching transition 66 livepatch: '$MOD_LIVEPATCH2': initializing patching transition [all …]
|
H A D | test-livepatch.sh | 36 livepatch: '$MOD_LIVEPATCH': initializing patching transition 37 livepatch: '$MOD_LIVEPATCH': starting patching transition 38 livepatch: '$MOD_LIVEPATCH': completing patching transition 41 livepatch: '$MOD_LIVEPATCH': initializing unpatching transition 42 livepatch: '$MOD_LIVEPATCH': starting unpatching transition 43 livepatch: '$MOD_LIVEPATCH': completing unpatching transition 80 livepatch: '$MOD_LIVEPATCH': initializing patching transition 81 livepatch: '$MOD_LIVEPATCH': starting patching transition 82 livepatch: '$MOD_LIVEPATCH': completing patching transition 87 livepatch: '$MOD_REPLACE': initializing patching transition [all …]
|
H A D | test-sysfs.sh | 21 check_sysfs_rights "$MOD_LIVEPATCH" "transition" "-r--r--r--" 22 check_sysfs_value "$MOD_LIVEPATCH" "transition" "0" 32 livepatch: '$MOD_LIVEPATCH': initializing patching transition 33 livepatch: '$MOD_LIVEPATCH': starting patching transition 34 livepatch: '$MOD_LIVEPATCH': completing patching transition 37 livepatch: '$MOD_LIVEPATCH': initializing unpatching transition 38 livepatch: '$MOD_LIVEPATCH': starting unpatching transition 39 livepatch: '$MOD_LIVEPATCH': completing unpatching transition 61 livepatch: 'test_klp_callbacks_demo': initializing patching transition 63 livepatch: 'test_klp_callbacks_demo': starting patching transition [all …]
|
H A D | test-ftrace.sh | 40 livepatch: '$MOD_LIVEPATCH': initializing patching transition 44 livepatch: '$MOD_LIVEPATCH': canceling patching transition, going to unpatch 45 livepatch: '$MOD_LIVEPATCH': completing unpatching transition 51 livepatch: '$MOD_LIVEPATCH': initializing patching transition 52 livepatch: '$MOD_LIVEPATCH': starting patching transition 53 livepatch: '$MOD_LIVEPATCH': completing patching transition 57 livepatch: '$MOD_LIVEPATCH': initializing unpatching transition 58 livepatch: '$MOD_LIVEPATCH': starting unpatching transition 59 livepatch: '$MOD_LIVEPATCH': completing unpatching transition
|
/openbmc/linux/drivers/platform/x86/amd/pmf/ |
H A D | auto-mode.c | 27 data->transition[AUTO_TRANSITION_TO_PERFORMANCE].time_constant); in amd_pmf_dump_auto_mode_defaults() 29 data->transition[AUTO_TRANSITION_FROM_PERFORMANCE_TO_BALANCE].time_constant); in amd_pmf_dump_auto_mode_defaults() 31 data->transition[AUTO_TRANSITION_FROM_QUIET_TO_BALANCE].time_constant); in amd_pmf_dump_auto_mode_defaults() 33 data->transition[AUTO_TRANSITION_TO_QUIET].time_constant); in amd_pmf_dump_auto_mode_defaults() 42 data->transition[AUTO_TRANSITION_TO_PERFORMANCE].power_delta); in amd_pmf_dump_auto_mode_defaults() 44 data->transition[AUTO_TRANSITION_FROM_PERFORMANCE_TO_BALANCE].power_delta); in amd_pmf_dump_auto_mode_defaults() 46 data->transition[AUTO_TRANSITION_FROM_QUIET_TO_BALANCE].power_delta); in amd_pmf_dump_auto_mode_defaults() 48 data->transition[AUTO_TRANSITION_TO_QUIET].power_delta); in amd_pmf_dump_auto_mode_defaults() 160 if ((config_store.transition[i].shifting_up && avg_power >= in amd_pmf_trans_automode() 161 config_store.transition[i].power_threshold) || in amd_pmf_trans_automode() [all …]
|
/openbmc/linux/Documentation/admin-guide/pm/ |
H A D | suspend-flows.rst | 12 At least one global system-wide transition needs to be carried out for the 15 transition to occur for this purpose, but the other sleep states, commonly 19 For those sleep states, the transition from the working state of the system into 21 of cases, whether this means a transition or a sleep state of the system should 22 be clear from the context) and the transition back from the sleep state into the 45 The following steps are taken in order to transition the system from the working 51 transition is about to occur and when the resume transition has finished. 61 of the transition is in progress (which might have been problematic for 66 transition. 93 deferred till the subsequent system resume transition as described [all …]
|
/openbmc/linux/net/llc/ |
H A D | llc_s_st.c | 23 /* dummy last-transition indicator; common to all state transition groups 29 /* state LLC_SAP_STATE_INACTIVE transition for 43 /* array of pointers; one to each transition */ 49 /* state LLC_SAP_STATE_ACTIVE transition for LLC_SAP_EV_RX_UI event */ 61 /* state LLC_SAP_STATE_ACTIVE transition for LLC_SAP_EV_UNITDATA_REQ event */ 73 /* state LLC_SAP_STATE_ACTIVE transition for LLC_SAP_EV_XID_REQ event */ 85 /* state LLC_SAP_STATE_ACTIVE transition for LLC_SAP_EV_RX_XID_C event */ 97 /* state LLC_SAP_STATE_ACTIVE transition for LLC_SAP_EV_RX_XID_R event */ 109 /* state LLC_SAP_STATE_ACTIVE transition for LLC_SAP_EV_TEST_REQ event */ 121 /* state LLC_SAP_STATE_ACTIVE transition for LLC_SAP_EV_RX_TEST_C event */ [all …]
|
/openbmc/phosphor-state-manager/ |
H A D | host_state_manager.cpp | 70 server::Host::requestedHostTransition(Transition::On, true); in determineInitialState() 76 server::Host::requestedHostTransition(Transition::Off, true); in determineInitialState() 82 server::Host::requestedHostTransition(Transition::Off, true); in determineInitialState() 89 std::set<Transition> supportedTransitions = { in setupSupportedTransitions() 90 Transition::On, in setupSupportedTransitions() 91 Transition::Off, in setupSupportedTransitions() 92 Transition::Reboot, in setupSupportedTransitions() 93 Transition::GracefulWarmReboot, in setupSupportedTransitions() 95 Transition::ForceWarmReboot, in setupSupportedTransitions() 111 {Transition::Off, std::format("obmc-host-shutdown@{}.target", id)}, in createSystemdTargetMaps() [all …]
|
H A D | scheduled_host_transition.cpp | 51 info("A scheduled host transition request has been made for {TIME}", "TIME", in scheduledTime() 55 // 0 means the function Scheduled Host Transition is disabled in scheduledTime() 61 "scheduledTime: The function Scheduled Host Transition is disabled."); in scheduledTime() 70 "Scheduled time is earlier than current time. Fail to schedule host transition."); in scheduledTime() 76 // Start a timer to do host transition at scheduled time in scheduledTime() 111 // Set RestartCause to indicate this transition is occurring due to a in hostTransition() 112 // scheduled host transition as long as it's not an off request in hostTransition() 113 if (HostTransition::scheduledTransition() != HostState::Transition::Off) in hostTransition() 125 // Stop timer, since we need to do host transition once only in callback() 128 // Set scheduledTime to 0 to disable host transition and update scheduled in callback() [all …]
|
H A D | scheduled_host_transition.hpp | 20 using Transition = typedef 21 sdbusplus::server::xyz::openbmc_project::state::Host::Transition; 26 * @brief Scheduled host transition implementation. 54 * @return The time for the transition. It is the same as the input value if 72 /** @brief Timer used for host transition with seconds */ 84 /** @brief Implement host transition 91 /** @brief Used by the timer to do host transition */ 131 * @param[out] trans - Deserialized requested transition 135 static bool deserializeScheduledValues(uint64_t& time, Transition& trans); 137 /** @brief Restore scheduled time and requested transition from persisted
|
H A D | hypervisor_state_manager.cpp | 28 server::Host::Transition Hypervisor::requestedHostTransition(Transition value) in requestedHostTransition() 30 info("Hypervisor state transition request of {TRAN_REQUEST}", in requestedHostTransition() 33 // Only support the transition to On in requestedHostTransition() 34 if (value != server::Host::Transition::On) in requestedHostTransition() 36 error("Hypervisor state only supports a transition to On"); in requestedHostTransition() 38 return server::Host::Transition::Off; in requestedHostTransition() 83 server::Host::requestedHostTransition(server::Host::Transition::Off); in updateCurrentHostState()
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/broadwellx/ |
H A D | uncore-power.json | 10 "BriefDescription": "Core C State Transition Cycles", 18 "BriefDescription": "Core C State Transition Cycles", 26 "BriefDescription": "Core C State Transition Cycles", 34 "BriefDescription": "Core C State Transition Cycles", 42 "BriefDescription": "Core C State Transition Cycles", 50 "BriefDescription": "Core C State Transition Cycles", 58 "BriefDescription": "Core C State Transition Cycles", 66 "BriefDescription": "Core C State Transition Cycles", 74 "BriefDescription": "Core C State Transition Cycles", 82 "BriefDescription": "Core C State Transition Cycles", [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/broadwellde/ |
H A D | uncore-power.json | 10 "BriefDescription": "Core C State Transition Cycles", 18 "BriefDescription": "Core C State Transition Cycles", 26 "BriefDescription": "Core C State Transition Cycles", 34 "BriefDescription": "Core C State Transition Cycles", 42 "BriefDescription": "Core C State Transition Cycles", 50 "BriefDescription": "Core C State Transition Cycles", 58 "BriefDescription": "Core C State Transition Cycles", 66 "BriefDescription": "Core C State Transition Cycles", 74 "BriefDescription": "Core C State Transition Cycles", 82 "BriefDescription": "Core C State Transition Cycles", [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/ivytown/ |
H A D | uncore-power.json | 10 "BriefDescription": "Core 0 C State Transition Cycles", 18 "BriefDescription": "Core 10 C State Transition Cycles", 26 "BriefDescription": "Core 11 C State Transition Cycles", 34 "BriefDescription": "Core 12 C State Transition Cycles", 42 "BriefDescription": "Core 13 C State Transition Cycles", 50 "BriefDescription": "Core 14 C State Transition Cycles", 58 "BriefDescription": "Core 1 C State Transition Cycles", 66 "BriefDescription": "Core 2 C State Transition Cycles", 74 "BriefDescription": "Core 3 C State Transition Cycles", 82 "BriefDescription": "Core 4 C State Transition Cycles", [all …]
|
/openbmc/linux/kernel/livepatch/ |
H A D | transition.c | 3 * transition.c - Kernel Live Patching transition functions 15 #include "transition.h" 51 * "straggler" tasks which failed to transition in the first attempt. 87 * The transition to the target patch state is complete. Clean up the data 97 pr_debug("'%s': completing %s transition\n", in klp_complete_transition() 116 * func->transition gets cleared, the handler may choose a in klp_complete_transition() 124 func->transition = false; in klp_complete_transition() 160 * This is called in the error path, to cancel a transition before it has 162 * klp_start_transition() hasn't. If the transition *has* been started, 170 pr_debug("'%s': canceling patching transition, going to unpatch\n", in klp_cancel_transition() [all …]
|
/openbmc/docs/designs/ |
H A D | state-management-and-external-interfaces.md | 94 - Keep legacy support where `xyz.openbmc_project.State.Host.Transition.Reboot` 109 Create two new `xyz.openbmc_project.State.Host.Transition` options: 113 Create a new `xyz.openbmc_project.State.Chassis.Transition` option: 123 - `ForceRestart` -> `xyz.openbmc_project.State.Chassis.Transition.Reset` 124 - `PowerCycle` -> `xyz.openbmc_project.State.Chassis.Transition.PowerCycle` 127 change the current bmcweb mapping for `ForceRestart` to a new host transition: 128 `xyz.openbmc_project.State.Host.Transition.ForceWarmReboot` 130 A `GracefulRestart` will map to our new host transition: 131 `xyz.openbmc_project.State.Host.Transition.GracefulWarmReboot` 134 host is on, it will map to `xyz.openbmc_project.State.Host.Transition.Reboot` [all …]
|
/openbmc/linux/include/linux/mfd/ |
H A D | db8500-prcmu.h | 137 * enum ap_pwrst_trans - Transition states defined in PRCMU firmware 138 * @NO_TRANSITION: No power state transition 139 * @APEXECUTE_TO_APSLEEP: Power state transition from ApExecute to ApSleep 140 * @APIDLE_TO_APSLEEP: Power state transition from ApIdle to ApSleep 141 * @APBOOT_TO_APEXECUTE: Power state transition from ApBoot to ApExecute 142 * @APEXECUTE_TO_APDEEPSLEEP: Power state transition from ApExecute to 144 * @APEXECUTE_TO_APIDLE: Power state transition from ApExecute to ApIdle 179 * @BOOT_TO_EXECUTEOK: The apBoot to apExecute state transition has been 181 * @DEEPSLEEPOK: The apExecute to apDeepSleep state transition has been 183 * @SLEEPOK: The apExecute to apSleep state transition has been completed [all …]
|
/openbmc/u-boot/drivers/misc/ |
H A D | fsl_sec_mon.c | 28 * Security Violation Bit and transition to Non-Secure State. in set_sec_mon_state_non_sec() 47 printf("SEC_MON state transition timeout.\n"); in set_sec_mon_state_non_sec() 54 * the Software Security Violation Bit and transition to Soft-Fail in set_sec_mon_state_non_sec() 76 printf("SEC_MON state transition timeout.\n"); in set_sec_mon_state_non_sec() 83 * If SSM Soft Fail to Non-Secure State Transition in set_sec_mon_state_non_sec() 85 * transition to Non-Secure State. in set_sec_mon_state_non_sec() 105 printf("SEC_MON state transition timeout.\n"); in set_sec_mon_state_non_sec() 140 printf("SEC_MON state transition timeout.\n"); in set_sec_mon_state_soft_fail() 158 printf("SEC_MON state transition not supported.\n"); in set_sec_mon_state()
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/haswellx/ |
H A D | uncore-power.json | 10 "BriefDescription": "Core C State Transition Cycles", 18 "BriefDescription": "Core C State Transition Cycles", 26 "BriefDescription": "Core C State Transition Cycles", 34 "BriefDescription": "Core C State Transition Cycles", 42 "BriefDescription": "Core C State Transition Cycles", 50 "BriefDescription": "Core C State Transition Cycles", 58 "BriefDescription": "Core C State Transition Cycles", 66 "BriefDescription": "Core C State Transition Cycles", 74 "BriefDescription": "Core C State Transition Cycles", 82 "BriefDescription": "Core C State Transition Cycles", [all …]
|
/openbmc/phosphor-buttons/src/ |
H A D | button_handler.cpp | 25 const std::map<std::string, Chassis::Transition> chassisPwrCtls = { 26 {"chassis-on", Chassis::Transition::On}, 27 {"chassis-off", Chassis::Transition::Off}, 28 {"chassis-cycle", Chassis::Transition::PowerCycle}}; 49 std::vector<std::map<uint16_t, Chassis::Transition>> multiPwrBtnActConf; 77 std::map<uint16_t, Chassis::Transition> mapEntry; in Handler() 290 std::variant<Host::Transition, Chassis::Transition> transition; in handlePowerEvent() local 327 transition = iter.second; in handlePowerEvent() 338 transition = Host::Transition::On; in handlePowerEvent() 342 transition = Host::Transition::Off; in handlePowerEvent() [all …]
|
/openbmc/linux/Documentation/livepatch/ |
H A D | livepatch.rst | 85 transition state where tasks are converging to the patched state. 86 Usually this transition state can complete in a few seconds. The same 132 The /sys/kernel/livepatch/<patch>/transition file shows whether a patch 133 is in transition. Only a single patch can be in transition at a given 134 time. A patch can remain in transition indefinitely, if any of the tasks 137 A transition can be reversed and effectively canceled by writing the 139 the transition is in progress. Then all the tasks will attempt to 144 If a patch is in transition, this file shows 0 to indicate the task is 146 transition, it shows -1. Any tasks which are blocking the transition 154 Administrator can also affect a transition through [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/State/ |
H A D | Drive.interface.yaml | 11 type: enum[self.Transition] 14 The desired Drive transition 33 - name: Transition 35 The desired transition for the Drive 48 No transition is in progress. 51 Transition request is not supported.
|
/openbmc/phosphor-state-manager/test/ |
H A D | test_scheduled_host_transition.cpp | 83 // set requested transition to be on in TEST_F() 84 scheduledHostTransition.scheduledTransition(Transition::On); in TEST_F() 85 EXPECT_EQ(scheduledHostTransition.scheduledTransition(), Transition::On); in TEST_F() 86 // set requested transition to be off in TEST_F() 87 scheduledHostTransition.scheduledTransition(Transition::Off); in TEST_F() 88 EXPECT_EQ(scheduledHostTransition.scheduledTransition(), Transition::Off); in TEST_F() 93 // Disable host transition in TEST_F()
|
/openbmc/linux/include/linux/ |
H A D | livepatch.h | 39 * @transition: the func is currently being applied or reverted 41 * The patched and transition variables define the func's patching state. When 44 * patched=0 transition=0: unpatched 45 * patched=0 transition=1: unpatched, temporary starting state 46 * patched=1 transition=1: patched, may be visible to some tasks 47 * patched=1 transition=0: patched, visible to all tasks 51 * patched=1 transition=0: patched, visible to all tasks 52 * patched=1 transition=1: patched, may be visible to some tasks 53 * patched=0 transition=1: unpatched, temporary ending state 54 * patched=0 transition=0: unpatched [all …]
|