/openbmc/phosphor-psu-code-mgmt/test/ |
H A D | test_activation.cpp | 1 #include "activation.hpp" 24 using Status = Activation::Status; 25 using RequestedStatus = Activation::RequestedActivations; 54 activation->onUpdateDone(); in onUpdateDone() 58 activation->onUpdateFailed(); in onUpdateFailed() 62 return activation->activationProgress->progress(); in getProgress() 66 return activation->psuQueue; in getPsuQueue() 70 return activation->getUpdateService(psuInventoryPath); in getUpdateService() 78 std::unique_ptr<Activation> activation; member in TestActivation 89 activation = std::make_unique<Activation>( in TEST_F() [all …]
|
/openbmc/phosphor-bmc-code-mgmt/bmc/ |
H A D | activation.cpp | 1 #include "activation.hpp" 39 void Activation::subscribeToSystemdSignals() in subscribeToSystemdSignals() 52 // If an Activation attempt fails, the Unsubscribe method is not in subscribeToSystemdSignals() 54 // Activation is re-attempted. in subscribeToSystemdSignals() 65 void Activation::unsubscribeFromSystemdSignals() in unsubscribeFromSystemdSignals() 81 auto Activation::activation(Activations value) -> Activations in activation() function in phosphor::software::updater::Activation 83 if ((value != softwareServer::Activation::Activations::Active) && in activation() 84 (value != softwareServer::Activation::Activations::Activating)) in activation() 89 if (value == softwareServer::Activation::Activations::Activating) in activation() 98 // Stop the activation process, if fieldMode is enabled. in activation() [all …]
|
H A D | activation.hpp | 13 #include <xyz/openbmc_project/Software/Activation/server.hpp> 35 sdbusplus::server::xyz::openbmc_project::software::Activation, 57 class Activation; 77 Activation& parent, uint8_t value, in RedundancyPriority() 118 Activation& parent; 180 /** @class Activation 181 * @brief OpenBMC activation software management implementation. 183 * xyz.openbmc_project.Software.Activation DBus API. 185 class Activation : public ActivationInherit, public Flash class 188 /** @brief Constructs Activation Software Manager [all …]
|
H A D | item_updater.hpp | 3 #include "activation.hpp" 28 sdbusplus::xyz::openbmc_project::Software::server::Activation; 62 * @brief Manages the activation of the BMC version items. 68 * @brief Types of Activation status for image validation. 148 * activation object. In case activation object already exists for the 149 * specified id, update the activation status based on image verification. 165 * @brief Creates the activation object 167 * @param[in] path - The object path for the activation object. 175 * @brief Request the activation for the specified update. 182 * @brief Change the activation status for the specified update. [all …]
|
/openbmc/openpower-pnor-code-mgmt/ubi/ |
H A D | activation_ubi.cpp | 25 auto ActivationUbi::activation(Activations value) -> Activations in activation() function in openpower::software::updater::ActivationUbi 27 if (value != softwareServer::Activation::Activations::Active) in activation() 32 if (value == softwareServer::Activation::Activations::Activating) in activation() 35 softwareServer::Activation::activation(value); in activation() 50 return softwareServer::Activation::activation( in activation() 51 softwareServer::Activation::Activations::Failed); in activation() 55 return softwareServer::Activation::activation(value); in activation() 60 // volumes have been created do we proceed with activation. To in activation() 69 if (Activation::checkApplyTimeImmediate()) in activation() 73 Activation::rebootHost(); in activation() [all …]
|
H A D | activation_ubi.hpp | 3 #include "activation.hpp" 20 Activation& parent, uint8_t value) : in RedundancyPriorityUbi() 37 * @brief OpenBMC activation software management implementation. 39 * xyz.openbmc_project.Software.Activation DBus API. 41 class ActivationUbi : public Activation 44 using Activation::Activation; 47 /** @brief Overloaded Activation property setter function 49 * @param[in] value - One of Activation::Activations 53 Activations activation(Activations value) override; 60 *created as part of the activation process. **/
|
/openbmc/linux/Documentation/driver-api/nvdimm/ |
D | firmware-activate.rst |
|
/openbmc/phosphor-psu-code-mgmt/src/ |
H A D | activation.cpp | 3 #include "activation.hpp" 31 sdbusplus::server::xyz::openbmc_project::software::Activation; 35 auto Activation::activation(Activations value) -> Activations in activation() function in phosphor::software::updater::Activation 47 return SoftwareActivation::activation(value); in activation() 50 auto Activation::requestedActivation(RequestedActivations value) in requestedActivation() 61 if ((activation() == Status::Ready) || in requestedActivation() 62 (activation() == Status::Failed) || in requestedActivation() 63 (activation() == Status::Active)) in requestedActivation() 65 if (activation(Status::Activating) != Status::Activating) in requestedActivation() 67 // Activation attempt failed in requestedActivation() [all …]
|
H A D | activation.hpp | 13 #include <xyz/openbmc_project/Software/Activation/server.hpp> 101 sdbusplus::xyz::openbmc_project::Software::server::Activation, 105 /** @class Activation 106 * @brief OpenBMC activation software management implementation. 108 * xyz.openbmc_project.Software.Activation DBus API. 110 class Activation : public ActivationInherit class 116 /** @brief Constructs Activation Software Manager 122 * @param[in] activationStatus - The status of Activation 126 Activation(sdbusplus::bus_t& bus, const std::string& objPath, in Activation() function in phosphor::software::updater::Activation 140 std::bind(&Activation::unitStateChange, this, in Activation() [all …]
|
H A D | item_updater.cpp | 119 // Determine the Activation state by processing the given image dir. in onVersionInterfacesAdded() 121 auto activationState = Activation::Status::Ready; in onVersionInterfacesAdded() 132 auto activation = in onVersionInterfacesAdded() local 135 activations.emplace(versionId, std::move(activation)); in onVersionInterfacesAdded() 212 // After update is done, remove old activation objects in onUpdateDone() 226 lg2::error("Unable to find Activation for version ID {VERSION_ID}", in onUpdateDone() 235 std::unique_ptr<Activation> ItemUpdater::createActivationObject( in createActivationObject() 237 const std::string& extVersion, Activation::Status activationStatus, in createActivationObject() 240 return std::make_unique<Activation>(bus, path, versionId, extVersion, in createActivationObject() 266 auto activationState = Activation::Status::Active; in createPsuObject() [all …]
|
H A D | item_updater.hpp | 5 #include "activation.hpp" 41 * @brief Manages the activation of the PSU version items. 109 * @param[in] versionId - The versionId of the activation 129 * @details Creates an Activation D-Bus object if appropriate 145 * @details Update an Activation D-Bus object for PSU inventory. 154 /** @brief Create Activation object */ 155 std::unique_ptr<Activation> createActivationObject( 157 const std::string& extVersion, Activation::Status activationStatus, 167 /** @brief Create Activation and Version object for PSU inventory 174 /** @brief Remove Activation and Version object for PSU inventory [all …]
|
/openbmc/openpower-pnor-code-mgmt/ |
H A D | activation.cpp | 3 #include "activation.hpp" 42 void Activation::subscribeToSystemdSignals() in subscribeToSystemdSignals() 55 // If an Activation attempt fails, the Unsubscribe method is not in subscribeToSystemdSignals() 57 // Activation is re-attempted. in subscribeToSystemdSignals() 68 void Activation::unsubscribeFromSystemdSignals() in unsubscribeFromSystemdSignals() 77 auto Activation::requestedActivation(RequestedActivations value) in requestedActivation() 80 if ((value == softwareServer::Activation::RequestedActivations::Active) && in requestedActivation() 81 (softwareServer::Activation::requestedActivation() != in requestedActivation() 82 softwareServer::Activation::RequestedActivations::Active)) in requestedActivation() 84 if ((softwareServer::Activation::activation() == in requestedActivation() [all …]
|
H A D | activation.hpp | 12 #include <xyz/openbmc_project/Software/Activation/server.hpp> 28 sdbusplus::xyz::openbmc_project::Software::server::Activation, 54 class Activation; 73 Activation& parent, uint8_t value) : in RedundancyPriority() 97 Activation& parent; 136 /** @class Activation 137 * @brief OpenBMC activation software management implementation. 139 * xyz.openbmc_project.Software.Activation DBus API. 141 class Activation : public ActivationInherit class 144 /** @brief Constructs Activation Software Manager [all …]
|
/openbmc/pldm/fw-update/ |
H A D | activation.hpp | 5 #include <xyz/openbmc_project/Software/Activation/server.hpp> 19 sdbusplus::xyz::openbmc_project::Software::server::Activation>; 65 /** @brief Delete the Activation D-Bus object for the FW update package */ 72 /** @class Activation 74 * Concrete implementation of xyz.openbmc_project.Object.Activation D-Bus 77 class Activation : public ActivationIntf class 86 Activation(sdbusplus::bus_t& bus, std::string objPath, in Activation() function in pldm::fw_update::Activation 92 activation(activationStatus); in Activation() 97 using sdbusplus::xyz::openbmc_project::Software::server::Activation:: 98 activation; [all …]
|
H A D | update_manager.cpp | 3 #include "activation.hpp" 35 // If a firmware activation of a package is in progress, don't proceed with in processPackage() 37 if (activation) in processPackage() 39 if (activation->activation() == in processPackage() 40 software::Activation::Activations::Activating) in processPackage() 43 "Activation of PLDM fw update package for version '{VERSION}' already in progress.", in processPackage() 103 activation = std::make_unique<Activation>( in processPackage() 105 software::Activation::Activations::Invalid, this); in processPackage() 118 activation = std::make_unique<Activation>( in processPackage() 120 software::Activation::Activations::Invalid, this); in processPackage() [all …]
|
/openbmc/openpower-pnor-code-mgmt/static/ |
H A D | activation_static.cpp | 17 auto ActivationStatic::activation(Activations value) -> Activations in activation() function in openpower::software::updater::ActivationStatic 20 if (value != softwareServer::Activation::Activations::Active) in activation() 25 if (value == softwareServer::Activation::Activations::Activating) in activation() 42 ret = softwareServer::Activation::Activations::Failed; in activation() 53 ret = softwareServer::Activation::Activations::Failed; in activation() 63 ret = softwareServer::Activation::Activations::Failed; in activation() 73 return softwareServer::Activation::activation(ret); in activation() 129 Activation::activation( in unitStateChange() 130 softwareServer::Activation::Activations::Failed); in unitStateChange() 162 Activation::activation(Activation::Activations::Active); in finishActivation()
|
H A D | activation_static.hpp | 3 #include "activation.hpp" 20 class ActivationStatic : public Activation 23 using Activation::Activation; 25 Activations activation(Activations value) override;
|
/openbmc/phosphor-bmc-code-mgmt/bmc/mmc/ |
H A D | flash.cpp | 5 #include "activation.hpp" 17 void Activation::flashWrite() in flashWrite() 26 void Activation::onStateChanges(sdbusplus::message_t& msg) in onStateChanges() 55 Activation::activation( in onStateChanges() 56 softwareServer::Activation::Activations::Failed); in onStateChanges() 66 if (!Activation::redundancyPriority) in onStateChanges() 68 Activation::redundancyPriority = in onStateChanges() 75 Activation::onFlashWriteSuccess(); in onStateChanges()
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Software/ |
H A D | Activation.interface.yaml | 2 Activation state for an associated xyz.openbmc_project.Software.Version. 4 - name: Activation 7 The current Activation state of the Software.Version. 11 The desired Activation state of the Software.Version. 15 The possible Activation states of the Software.Version. 27 Activation. 36 The Software.Version failed during or after Activation. 54 The Software.Version has been requested for Activation.
|
H A D | README.md | 41 `xyz.openbmc_project.Software.Activation` interface under 44 `Software.Activation` under `/xyz/openbmc_project/software/`, and an association 45 of type `{activation,item}` between the `Inventory.Item` and 46 `Software.Activation` under `/xyz/openbmc_project/software/<id>`. Application of 48 the `Software.Activation` interface. 50 In many cases, the _ItemUpdater_'s creation of the `Software.Activation` 57 _ItemUpdater_ should create `Software.Activation` interfaces as a sub-path of 130 ### Activation States 132 `xyz.openbmc_project.Software.Activation` has a property Activation that can be 136 version and it is therefore not ready for activation. This might be used on [all …]
|
H A D | ApplyOptions.interface.yaml | 2 To implement the Activation apply options for a newly uploaded firmware 4 used during firmware activation. ApplyOptions usage during firmware 5 activation is implementation specific, not all firmware targets need 6 ApplyOptions. This property is removed after activation of the firmware is 17 firmware image activation.
|
/openbmc/phosphor-bmc-code-mgmt/bmc/ubi/ |
H A D | flash.cpp | 3 #include "activation.hpp" 15 void Activation::flashWrite() in flashWrite() 31 void Activation::onStateChanges(sdbusplus::message_t& msg) in onStateChanges() 69 Activation::activation( in onStateChanges() 70 softwareServer::Activation::Activations::Failed); in onStateChanges() 80 if (!Activation::redundancyPriority) in onStateChanges() 82 Activation::redundancyPriority = in onStateChanges() 89 Activation::onFlashWriteSuccess(); in onStateChanges()
|
/openbmc/phosphor-psu-code-mgmt/ |
H A D | README.md | 84 "Activation": "xyz.openbmc_project.Software.Activation.Activations.Active", 88 "activation", 95 "RequestedActivation": "xyz.openbmc_project.Software.Activation.RequestedActivations.None", 99 "Activation": "xyz.openbmc_project.Software.Activation.Activations.Active", 103 "activation", 110 "RequestedActivation": "xyz.openbmc_project.Software.Activation.RequestedActivations.None", 119 "Activation": "xyz.openbmc_project.Software.Activation.Activations.Active", 123 "activation", 128 "activation", 135 "RequestedActivation": "xyz.openbmc_project.Software.Activation.RequestedActivations.None", [all …]
|
/openbmc/docs/architecture/code-update/ |
H A D | host-code-update.md | 45 has its Activation property set to Ready, in this example it'd be 53 "Activation": "xyz.openbmc_project.Software.Activation.Activations.Ready", 71 xyz.openbmc_project.Software.Activation RequestedActivation s \ 72 xyz.openbmc_project.Software.Activation.RequestedActivations.Active 81 "xyz.openbmc_project.Software.Activation.RequestedActivations.Active"}' \ 86 the activation progress and is not present once the activation is completed 93 xyz.openbmc_project.Software.Activation Progress 102 6. Check the activation is complete by verifying the Activation property is set 109 xyz.openbmc_project.Software.Activation Activation
|
/openbmc/openpower-pnor-code-mgmt/mmc/ |
H A D | activation_mmc.hpp | 3 #include "activation.hpp" 17 class ActivationMMC : public Activation 20 using Activation::Activation; 22 Activations activation(Activations value) override;
|