Vishwanatha Subbanna | 307d80b | 2017-06-28 15:56:09 +0530 | [diff] [blame] | 1 | #include "occ_status.hpp" |
Gunnar Mills | 94df8c9 | 2018-09-14 14:50:03 -0500 | [diff] [blame] | 2 | |
Chris Cain | 1725767 | 2021-10-22 13:41:03 -0500 | [diff] [blame] | 3 | #include "occ_manager.hpp" |
Vishwanatha Subbanna | 6add0b8 | 2017-07-21 19:02:37 +0530 | [diff] [blame] | 4 | #include "occ_sensor.hpp" |
Chris Cain | 78e8601 | 2021-03-04 16:15:31 -0600 | [diff] [blame] | 5 | #include "powermode.hpp" |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 6 | #include "utils.hpp" |
Gunnar Mills | 94df8c9 | 2018-09-14 14:50:03 -0500 | [diff] [blame] | 7 | |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 8 | #include <phosphor-logging/lg2.hpp> |
Chris Cain | 78e8601 | 2021-03-04 16:15:31 -0600 | [diff] [blame] | 9 | |
Chris Cain | e2d0a43 | 2022-03-28 11:08:49 -0500 | [diff] [blame] | 10 | #include <filesystem> |
| 11 | |
Vishwanatha Subbanna | 307d80b | 2017-06-28 15:56:09 +0530 | [diff] [blame] | 12 | namespace open_power |
| 13 | { |
| 14 | namespace occ |
| 15 | { |
Chris Cain | 78e8601 | 2021-03-04 16:15:31 -0600 | [diff] [blame] | 16 | |
Chris Cain | a8857c5 | 2021-01-27 11:53:05 -0600 | [diff] [blame] | 17 | using namespace phosphor::logging; |
Vishwanatha Subbanna | 307d80b | 2017-06-28 15:56:09 +0530 | [diff] [blame] | 18 | |
Chris Cain | c86d80f | 2023-05-04 15:49:18 -0500 | [diff] [blame] | 19 | using ThrottleObj = |
| 20 | sdbusplus::xyz::openbmc_project::Control::Power::server::Throttle; |
| 21 | |
Vishwanatha Subbanna | 307d80b | 2017-06-28 15:56:09 +0530 | [diff] [blame] | 22 | // Handles updates to occActive property |
| 23 | bool Status::occActive(bool value) |
| 24 | { |
Vishwanatha Subbanna | 32e84e9 | 2017-06-28 19:17:28 +0530 | [diff] [blame] | 25 | if (value != this->occActive()) |
| 26 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 27 | lg2::info("Status::occActive OCC{INST} changed to {STATE}", "INST", |
| 28 | instance, "STATE", value); |
Vishwanatha Subbanna | 32e84e9 | 2017-06-28 19:17:28 +0530 | [diff] [blame] | 29 | if (value) |
| 30 | { |
Chris Cain | c86d80f | 2023-05-04 15:49:18 -0500 | [diff] [blame] | 31 | // Clear prior throttle reason (before setting device active) |
| 32 | updateThrottle(false, THROTTLED_ALL); |
| 33 | |
Eddie James | aced309 | 2022-04-22 16:19:30 -0500 | [diff] [blame] | 34 | // Set the device active |
| 35 | device.setActive(true); |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 36 | |
Chris Cain | a8857c5 | 2021-01-27 11:53:05 -0600 | [diff] [blame] | 37 | // Reset last OCC state |
| 38 | lastState = 0; |
| 39 | |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 40 | // Start watching for errors (throttles, etc) |
| 41 | try |
| 42 | { |
| 43 | addErrorWatch(); |
| 44 | } |
| 45 | catch (const OpenFailure& e) |
| 46 | { |
| 47 | // Failed to add watch for throttle events, request reset to try |
| 48 | // to recover comm |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 49 | lg2::error( |
| 50 | "Status::occActive: Unable to add error watch(s) for OCC{INST} watch: {ERROR}", |
| 51 | "INST", instance, "ERROR", e.what()); |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 52 | deviceError(Error::Descriptor(OCC_COMM_ERROR_PATH)); |
| 53 | return Base::Status::occActive(false); |
| 54 | } |
| 55 | |
| 56 | // Update the OCC active sensor |
| 57 | Base::Status::occActive(value); |
| 58 | |
Chris Cain | 5d66a0a | 2022-02-09 08:52:10 -0600 | [diff] [blame] | 59 | if (device.master()) |
| 60 | { |
Chris Cain | 5d66a0a | 2022-02-09 08:52:10 -0600 | [diff] [blame] | 61 | // Update powercap bounds from OCC |
Chris Cain | 40501a2 | 2022-03-14 17:33:27 -0500 | [diff] [blame] | 62 | manager.updatePcapBounds(); |
Chris Cain | 5d66a0a | 2022-02-09 08:52:10 -0600 | [diff] [blame] | 63 | } |
| 64 | |
Vishwanatha Subbanna | 2dc9b1a | 2017-08-18 18:29:41 +0530 | [diff] [blame] | 65 | // Call into Manager to let know that we have bound |
Chris Cain | 1be4337 | 2021-12-09 19:29:37 -0600 | [diff] [blame] | 66 | if (this->managerCallBack) |
Vishwanatha Subbanna | 2dc9b1a | 2017-08-18 18:29:41 +0530 | [diff] [blame] | 67 | { |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 68 | this->managerCallBack(instance, value); |
Edward A. James | 9fd2bdc | 2017-11-08 16:18:57 -0600 | [diff] [blame] | 69 | } |
Vishwanatha Subbanna | 32e84e9 | 2017-06-28 19:17:28 +0530 | [diff] [blame] | 70 | } |
| 71 | else |
| 72 | { |
Chris Cain | a7b74dc | 2021-11-10 17:03:43 -0600 | [diff] [blame] | 73 | #ifdef POWER10 |
Chris Cain | 1be4337 | 2021-12-09 19:29:37 -0600 | [diff] [blame] | 74 | if (pmode && device.master()) |
Chris Cain | 36f9cde | 2021-11-22 11:18:21 -0600 | [diff] [blame] | 75 | { |
| 76 | // Prevent mode changes |
| 77 | pmode->setMasterActive(false); |
| 78 | } |
Chris Cain | a7b74dc | 2021-11-10 17:03:43 -0600 | [diff] [blame] | 79 | if (safeStateDelayTimer.isEnabled()) |
| 80 | { |
| 81 | // stop safe delay timer |
| 82 | safeStateDelayTimer.setEnabled(false); |
| 83 | } |
| 84 | #endif |
Chris Cain | 36f9cde | 2021-11-22 11:18:21 -0600 | [diff] [blame] | 85 | // Call into Manager to let know that we will unbind. |
Chris Cain | 1be4337 | 2021-12-09 19:29:37 -0600 | [diff] [blame] | 86 | if (this->managerCallBack) |
Chris Cain | 36f9cde | 2021-11-22 11:18:21 -0600 | [diff] [blame] | 87 | { |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 88 | this->managerCallBack(instance, value); |
Chris Cain | 36f9cde | 2021-11-22 11:18:21 -0600 | [diff] [blame] | 89 | } |
| 90 | |
Edward A. James | 9fd2bdc | 2017-11-08 16:18:57 -0600 | [diff] [blame] | 91 | // Stop watching for errors |
| 92 | removeErrorWatch(); |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 93 | |
Eddie James | aced309 | 2022-04-22 16:19:30 -0500 | [diff] [blame] | 94 | // Set the device inactive |
| 95 | device.setActive(false); |
Chris Cain | c86d80f | 2023-05-04 15:49:18 -0500 | [diff] [blame] | 96 | |
| 97 | // Clear throttles (OCC not active after disabling device) |
| 98 | updateThrottle(false, THROTTLED_ALL); |
Vishwanatha Subbanna | 32e84e9 | 2017-06-28 19:17:28 +0530 | [diff] [blame] | 99 | } |
| 100 | } |
Eddie James | aced309 | 2022-04-22 16:19:30 -0500 | [diff] [blame] | 101 | else if (value && !device.active()) |
Edward A. James | 5e17797 | 2017-10-25 15:50:31 -0500 | [diff] [blame] | 102 | { |
| 103 | // Existing error watch is on a dead file descriptor. |
Edward A. James | 9fd2bdc | 2017-11-08 16:18:57 -0600 | [diff] [blame] | 104 | removeErrorWatch(); |
Edward A. James | 5e17797 | 2017-10-25 15:50:31 -0500 | [diff] [blame] | 105 | |
| 106 | /* |
| 107 | * In it's constructor, Status checks Device::bound() to see if OCC is |
| 108 | * active or not. |
| 109 | * Device::bound() checks for occX-dev0 directory. |
| 110 | * We will lose occX-dev0 directories during FSI rescan. |
| 111 | * So, if we start this application (and construct Status), and then |
| 112 | * later do FSI rescan, we will end up with occActive = true and device |
| 113 | * NOT bound. Lets correct that situation here. |
| 114 | */ |
Eddie James | aced309 | 2022-04-22 16:19:30 -0500 | [diff] [blame] | 115 | device.setActive(true); |
Edward A. James | 5e17797 | 2017-10-25 15:50:31 -0500 | [diff] [blame] | 116 | |
| 117 | // Add error watch again |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 118 | try |
| 119 | { |
| 120 | addErrorWatch(); |
| 121 | } |
| 122 | catch (const OpenFailure& e) |
| 123 | { |
| 124 | // Failed to add watch for throttle events, request reset to try to |
| 125 | // recover comm |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 126 | lg2::error( |
| 127 | "Status::occActive: Unable to add error watch(s) again for OCC{INST} watch: {ERROR}", |
| 128 | "INST", instance, "ERROR", e.what()); |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 129 | deviceError(Error::Descriptor(OCC_COMM_ERROR_PATH)); |
| 130 | return Base::Status::occActive(false); |
| 131 | } |
Edward A. James | 5e17797 | 2017-10-25 15:50:31 -0500 | [diff] [blame] | 132 | } |
Eddie James | aced309 | 2022-04-22 16:19:30 -0500 | [diff] [blame] | 133 | else if (!value && device.active()) |
Eddie James | 6d6d1b3 | 2019-04-22 10:45:08 -0500 | [diff] [blame] | 134 | { |
| 135 | removeErrorWatch(); |
| 136 | |
| 137 | // In the event that the application never receives the active signal |
| 138 | // even though the OCC is active (this can occur if the BMC is rebooted |
| 139 | // with the host on, since the initial OCC driver probe will discover |
| 140 | // the OCCs), this application needs to be able to unbind the device |
| 141 | // when we get the OCC inactive signal. |
Eddie James | aced309 | 2022-04-22 16:19:30 -0500 | [diff] [blame] | 142 | device.setActive(false); |
Eddie James | 6d6d1b3 | 2019-04-22 10:45:08 -0500 | [diff] [blame] | 143 | } |
Vishwanatha Subbanna | 307d80b | 2017-06-28 15:56:09 +0530 | [diff] [blame] | 144 | return Base::Status::occActive(value); |
| 145 | } |
| 146 | |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 147 | // Callback handler when a device error is reported. |
Eddie James | 9789e71 | 2022-05-25 15:43:40 -0500 | [diff] [blame] | 148 | void Status::deviceError(Error::Descriptor d) |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 149 | { |
Chris Cain | 36f9cde | 2021-11-22 11:18:21 -0600 | [diff] [blame] | 150 | #ifdef POWER10 |
Chris Cain | 1be4337 | 2021-12-09 19:29:37 -0600 | [diff] [blame] | 151 | if (pmode && device.master()) |
| 152 | { |
| 153 | // Prevent mode changes |
| 154 | pmode->setMasterActive(false); |
| 155 | } |
Chris Cain | 36f9cde | 2021-11-22 11:18:21 -0600 | [diff] [blame] | 156 | #endif |
| 157 | |
Eddie James | 9789e71 | 2022-05-25 15:43:40 -0500 | [diff] [blame] | 158 | if (d.log) |
| 159 | { |
| 160 | FFDC::createOCCResetPEL(instance, d.path, d.err, d.callout); |
| 161 | } |
| 162 | |
Eddie James | cbad219 | 2021-10-07 09:39:39 -0500 | [diff] [blame] | 163 | // This would deem OCC inactive |
| 164 | this->occActive(false); |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 165 | |
Eddie James | cbad219 | 2021-10-07 09:39:39 -0500 | [diff] [blame] | 166 | // Reset the OCC |
| 167 | this->resetOCC(); |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 168 | } |
| 169 | |
| 170 | // Sends message to host control command handler to reset OCC |
| 171 | void Status::resetOCC() |
| 172 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 173 | lg2::info(">>Status::resetOCC() - requesting reset for OCC{INST}", "INST", |
| 174 | instance); |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 175 | this->occActive(false); |
Tom Joseph | 0032523 | 2020-07-29 17:51:48 +0530 | [diff] [blame] | 176 | #ifdef PLDM |
| 177 | if (resetCallBack) |
| 178 | { |
| 179 | this->resetCallBack(instance); |
| 180 | } |
| 181 | #else |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 182 | constexpr auto CONTROL_HOST_PATH = "/org/open_power/control/host0"; |
| 183 | constexpr auto CONTROL_HOST_INTF = "org.open_power.Control.Host"; |
| 184 | |
| 185 | // This will throw exception on failure |
George Liu | f3b7514 | 2021-06-10 11:22:50 +0800 | [diff] [blame] | 186 | auto service = utils::getService(CONTROL_HOST_PATH, CONTROL_HOST_INTF); |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 187 | |
George Liu | f3b7514 | 2021-06-10 11:22:50 +0800 | [diff] [blame] | 188 | auto& bus = utils::getBus(); |
Gunnar Mills | 94df8c9 | 2018-09-14 14:50:03 -0500 | [diff] [blame] | 189 | auto method = bus.new_method_call(service.c_str(), CONTROL_HOST_PATH, |
| 190 | CONTROL_HOST_INTF, "Execute"); |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 191 | // OCC Reset control command |
Gunnar Mills | 94df8c9 | 2018-09-14 14:50:03 -0500 | [diff] [blame] | 192 | method.append(convertForMessage(Control::Host::Command::OCCReset).c_str()); |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 193 | |
| 194 | // OCC Sensor ID for callout reasons |
Patrick Williams | e096270 | 2020-05-13 17:50:22 -0500 | [diff] [blame] | 195 | method.append(std::variant<uint8_t>(std::get<0>(sensorMap.at(instance)))); |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 196 | bus.call_noreply(method); |
| 197 | return; |
Tom Joseph | 0032523 | 2020-07-29 17:51:48 +0530 | [diff] [blame] | 198 | #endif |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 199 | } |
| 200 | |
| 201 | // Handler called by Host control command handler to convey the |
| 202 | // status of the executed command |
Patrick Williams | af40808 | 2022-07-22 19:26:54 -0500 | [diff] [blame] | 203 | void Status::hostControlEvent(sdbusplus::message_t& msg) |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 204 | { |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 205 | std::string cmdCompleted{}; |
| 206 | std::string cmdStatus{}; |
| 207 | |
| 208 | msg.read(cmdCompleted, cmdStatus); |
| 209 | |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 210 | lg2::debug("Host control signal values: command={CMD}, status={STATUS}", |
| 211 | "CMD", cmdCompleted, "STATUS", cmdStatus); |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 212 | |
Gunnar Mills | 94df8c9 | 2018-09-14 14:50:03 -0500 | [diff] [blame] | 213 | if (Control::Host::convertResultFromString(cmdStatus) != |
| 214 | Control::Host::Result::Success) |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 215 | { |
Gunnar Mills | 94df8c9 | 2018-09-14 14:50:03 -0500 | [diff] [blame] | 216 | if (Control::Host::convertCommandFromString(cmdCompleted) == |
| 217 | Control::Host::Command::OCCReset) |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 218 | { |
Gunnar Mills | 85e6520 | 2018-04-08 15:01:54 -0500 | [diff] [blame] | 219 | // Must be a Timeout. Log an Error trace |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 220 | lg2::error( |
| 221 | "Error resetting the OCC: path={PATH}, sensorid={SENSOR}", |
| 222 | "PATH", path, "SENSOR", std::get<0>(sensorMap.at(instance))); |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 223 | } |
| 224 | } |
| 225 | return; |
Vishwanatha Subbanna | ee4d83d | 2017-06-29 18:35:00 +0530 | [diff] [blame] | 226 | } |
| 227 | |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 228 | // Called from Manager::pollerTimerExpired() in preperation to POLL OCC. |
Chris Cain | a8857c5 | 2021-01-27 11:53:05 -0600 | [diff] [blame] | 229 | void Status::readOccState() |
| 230 | { |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 231 | if (stateValid) |
| 232 | { |
| 233 | // Reset retry count (since state is good) |
| 234 | currentOccReadRetriesCount = occReadRetries; |
| 235 | } |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 236 | occReadStateNow(); |
Chris Cain | a8857c5 | 2021-01-27 11:53:05 -0600 | [diff] [blame] | 237 | } |
| 238 | |
Chris Cain | 78e8601 | 2021-03-04 16:15:31 -0600 | [diff] [blame] | 239 | #ifdef POWER10 |
Chris Cain | 78e8601 | 2021-03-04 16:15:31 -0600 | [diff] [blame] | 240 | // Special processing that needs to happen once the OCCs change to ACTIVE state |
| 241 | void Status::occsWentActive() |
| 242 | { |
| 243 | CmdStatus status = CmdStatus::SUCCESS; |
| 244 | |
Chris Cain | 1fe436d | 2024-10-10 09:41:03 -0500 | [diff] [blame] | 245 | // IPS data will get sent automatically after a mode change if the mode |
| 246 | // supports it. |
| 247 | pmode->needToSendIPS(); |
| 248 | |
Chris Cain | 36f9cde | 2021-11-22 11:18:21 -0600 | [diff] [blame] | 249 | status = pmode->sendModeChange(); |
Chris Cain | 78e8601 | 2021-03-04 16:15:31 -0600 | [diff] [blame] | 250 | if (status != CmdStatus::SUCCESS) |
| 251 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 252 | lg2::error( |
| 253 | "Status::occsWentActive: OCC mode change failed with status {STATUS}", |
| 254 | "STATUS", status); |
Chris Cain | c567dc8 | 2022-04-01 15:09:17 -0500 | [diff] [blame] | 255 | |
| 256 | // Disable and reset to try recovering |
| 257 | deviceError(); |
Chris Cain | 78e8601 | 2021-03-04 16:15:31 -0600 | [diff] [blame] | 258 | } |
Chris Cain | 78e8601 | 2021-03-04 16:15:31 -0600 | [diff] [blame] | 259 | } |
| 260 | |
Chris Cain | 1725767 | 2021-10-22 13:41:03 -0500 | [diff] [blame] | 261 | // Send Ambient and Altitude to the OCC |
| 262 | CmdStatus Status::sendAmbient(const uint8_t inTemp, const uint16_t inAltitude) |
| 263 | { |
| 264 | CmdStatus status = CmdStatus::FAILURE; |
| 265 | bool ambientValid = true; |
| 266 | uint8_t ambientTemp = inTemp; |
| 267 | uint16_t altitude = inAltitude; |
| 268 | |
| 269 | if (ambientTemp == 0xFF) |
| 270 | { |
| 271 | // Get latest readings from manager |
| 272 | manager.getAmbientData(ambientValid, ambientTemp, altitude); |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 273 | lg2::debug( |
| 274 | "sendAmbient: valid: {VALID}, Ambient: {TEMP}C, altitude: {ALT}m", |
| 275 | "VALID", ambientValid, "TEMP", ambientTemp, "ALT", altitude); |
Chris Cain | 1725767 | 2021-10-22 13:41:03 -0500 | [diff] [blame] | 276 | } |
| 277 | |
| 278 | std::vector<std::uint8_t> cmd, rsp; |
| 279 | cmd.reserve(11); |
| 280 | cmd.push_back(uint8_t(CmdType::SEND_AMBIENT)); |
| 281 | cmd.push_back(0x00); // Data Length (2 bytes) |
| 282 | cmd.push_back(0x08); // |
| 283 | cmd.push_back(0x00); // Version |
| 284 | cmd.push_back(ambientValid ? 0 : 0xFF); // Ambient Status |
| 285 | cmd.push_back(ambientTemp); // Ambient Temperature |
| 286 | cmd.push_back(altitude >> 8); // Altitude in meters (2 bytes) |
| 287 | cmd.push_back(altitude & 0xFF); // |
| 288 | cmd.push_back(0x00); // Reserved (3 bytes) |
| 289 | cmd.push_back(0x00); |
| 290 | cmd.push_back(0x00); |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 291 | lg2::debug("sendAmbient: SEND_AMBIENT " |
| 292 | "command to OCC{INST} ({SIZE} bytes)", |
| 293 | "INST", instance, "SIZE", cmd.size()); |
Chris Cain | 1725767 | 2021-10-22 13:41:03 -0500 | [diff] [blame] | 294 | status = occCmd.send(cmd, rsp); |
| 295 | if (status == CmdStatus::SUCCESS) |
| 296 | { |
| 297 | if (rsp.size() == 5) |
| 298 | { |
| 299 | if (RspStatus::SUCCESS != RspStatus(rsp[2])) |
| 300 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 301 | lg2::error( |
| 302 | "sendAmbient: SEND_AMBIENT failed with rspStatus {STATUS}", |
| 303 | "STATUS", lg2::hex, rsp[2]); |
Chris Cain | 1725767 | 2021-10-22 13:41:03 -0500 | [diff] [blame] | 304 | dump_hex(rsp); |
| 305 | status = CmdStatus::FAILURE; |
| 306 | } |
| 307 | } |
| 308 | else |
| 309 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 310 | lg2::error( |
| 311 | "sendAmbient: INVALID SEND_AMBIENT response length:{SIZE}", |
| 312 | "SIZE", rsp.size()); |
Chris Cain | 1725767 | 2021-10-22 13:41:03 -0500 | [diff] [blame] | 313 | dump_hex(rsp); |
| 314 | status = CmdStatus::FAILURE; |
| 315 | } |
| 316 | } |
| 317 | else |
| 318 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 319 | lg2::error("sendAmbient: SEND_AMBIENT FAILED! with status {STATUS}", |
| 320 | "STATUS", lg2::hex, uint8_t(status)); |
Chris Cain | c567dc8 | 2022-04-01 15:09:17 -0500 | [diff] [blame] | 321 | |
| 322 | if (status == CmdStatus::COMM_FAILURE) |
Chris Cain | 1725767 | 2021-10-22 13:41:03 -0500 | [diff] [blame] | 323 | { |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 324 | // Disable due to OCC comm failure and reset to try recovering |
| 325 | deviceError(Error::Descriptor(OCC_COMM_ERROR_PATH)); |
Chris Cain | 1725767 | 2021-10-22 13:41:03 -0500 | [diff] [blame] | 326 | } |
| 327 | } |
| 328 | |
| 329 | return status; |
| 330 | } |
Chris Cain | a7b74dc | 2021-11-10 17:03:43 -0600 | [diff] [blame] | 331 | |
| 332 | // Called when safe timer expires to determine if OCCs need to be reset |
| 333 | void Status::safeStateDelayExpired() |
| 334 | { |
| 335 | if (this->occActive()) |
| 336 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 337 | lg2::info( |
| 338 | "safeStateDelayExpired: OCC{INST} state missing or not valid, requesting reset", |
| 339 | "INST", instance); |
Chris Cain | a7b74dc | 2021-11-10 17:03:43 -0600 | [diff] [blame] | 340 | // Disable and reset to try recovering |
Eddie James | 9789e71 | 2022-05-25 15:43:40 -0500 | [diff] [blame] | 341 | deviceError(Error::Descriptor(SAFE_ERROR_PATH)); |
Chris Cain | a7b74dc | 2021-11-10 17:03:43 -0600 | [diff] [blame] | 342 | } |
| 343 | } |
Chris Cain | 78e8601 | 2021-03-04 16:15:31 -0600 | [diff] [blame] | 344 | #endif // POWER10 |
| 345 | |
Chris Cain | e2d0a43 | 2022-03-28 11:08:49 -0500 | [diff] [blame] | 346 | fs::path Status::getHwmonPath() |
Chris Cain | 5d66a0a | 2022-02-09 08:52:10 -0600 | [diff] [blame] | 347 | { |
| 348 | using namespace std::literals::string_literals; |
| 349 | |
Chris Cain | e2d0a43 | 2022-03-28 11:08:49 -0500 | [diff] [blame] | 350 | if (!fs::exists(hwmonPath)) |
| 351 | { |
| 352 | static bool tracedFail[8] = {0}; |
Chris Cain | 5d66a0a | 2022-02-09 08:52:10 -0600 | [diff] [blame] | 353 | |
Chris Cain | e2d0a43 | 2022-03-28 11:08:49 -0500 | [diff] [blame] | 354 | if (!hwmonPath.empty()) |
| 355 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 356 | lg2::warning( |
| 357 | "Status::getHwmonPath(): path no longer exists: {PATH}", "PATH", |
| 358 | hwmonPath); |
Chris Cain | e2d0a43 | 2022-03-28 11:08:49 -0500 | [diff] [blame] | 359 | hwmonPath.clear(); |
| 360 | } |
| 361 | |
| 362 | // Build the base HWMON path |
Patrick Williams | d7542c8 | 2024-08-16 15:20:28 -0400 | [diff] [blame] | 363 | fs::path prefixPath = |
| 364 | fs::path{OCC_HWMON_PATH + "occ-hwmon."s + |
| 365 | std::to_string(instance + 1) + "/hwmon/"s}; |
Chris Cain | e2d0a43 | 2022-03-28 11:08:49 -0500 | [diff] [blame] | 366 | |
| 367 | // Get the hwmonXX directory name |
| 368 | try |
| 369 | { |
| 370 | // there should only be one directory |
| 371 | const int numDirs = std::distance( |
| 372 | fs::directory_iterator(prefixPath), fs::directory_iterator{}); |
| 373 | if (numDirs == 1) |
| 374 | { |
| 375 | hwmonPath = *fs::directory_iterator(prefixPath); |
| 376 | tracedFail[instance] = false; |
| 377 | } |
| 378 | else |
| 379 | { |
| 380 | if (!tracedFail[instance]) |
| 381 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 382 | lg2::error( |
| 383 | "Status::getHwmonPath(): Found multiple ({NUM}) hwmon paths!", |
| 384 | "NUM", numDirs); |
Chris Cain | e2d0a43 | 2022-03-28 11:08:49 -0500 | [diff] [blame] | 385 | tracedFail[instance] = true; |
| 386 | } |
| 387 | } |
| 388 | } |
| 389 | catch (const fs::filesystem_error& e) |
| 390 | { |
| 391 | if (!tracedFail[instance]) |
| 392 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 393 | lg2::error( |
| 394 | "Status::getHwmonPath(): error accessing {PATH}: {ERROR}", |
| 395 | "PATH", prefixPath, "ERROR", e.what()); |
Chris Cain | e2d0a43 | 2022-03-28 11:08:49 -0500 | [diff] [blame] | 396 | tracedFail[instance] = true; |
| 397 | } |
| 398 | } |
| 399 | } |
| 400 | |
| 401 | return hwmonPath; |
Chris Cain | 5d66a0a | 2022-02-09 08:52:10 -0600 | [diff] [blame] | 402 | } |
| 403 | |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 404 | // Called to read state and handle any errors |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 405 | void Status::occReadStateNow() |
| 406 | { |
| 407 | unsigned int state; |
| 408 | const fs::path filename = |
| 409 | fs::path(DEV_PATH) / |
| 410 | fs::path(sysfsName + "." + std::to_string(instance + 1)) / "occ_state"; |
| 411 | |
| 412 | std::ifstream file; |
| 413 | bool goodFile = false; |
| 414 | |
| 415 | // open file. |
| 416 | file.open(filename, std::ios::in); |
| 417 | const int openErrno = errno; |
| 418 | |
| 419 | // File is open and state can be used. |
| 420 | if (file.is_open() && file.good()) |
| 421 | { |
| 422 | goodFile = true; |
| 423 | file >> state; |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 424 | // Read the error code (if any) to check status of the read |
| 425 | std::ios_base::iostate readState = file.rdstate(); |
| 426 | if (readState) |
| 427 | { |
| 428 | // There was a failure reading the file |
| 429 | if (lastOccReadStatus != -1) |
| 430 | { |
| 431 | // Trace error bits |
| 432 | std::string errorBits = ""; |
| 433 | if (readState & std::ios_base::eofbit) |
| 434 | { |
| 435 | errorBits += " EOF"; |
| 436 | } |
| 437 | if (readState & std::ios_base::failbit) |
| 438 | { |
| 439 | errorBits += " failbit"; |
| 440 | } |
| 441 | if (readState & std::ios_base::badbit) |
| 442 | { |
| 443 | errorBits += " badbit"; |
| 444 | } |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 445 | lg2::error( |
| 446 | "readOccState: Failed to read OCC{INST} state: Read error on I/O operation - {ERROR}", |
| 447 | "INST", instance, "ERROR", errorBits); |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 448 | lastOccReadStatus = -1; |
| 449 | } |
| 450 | goodFile = false; |
| 451 | } |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 452 | |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 453 | if (goodFile && (state != lastState)) |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 454 | { |
| 455 | // Trace OCC state changes |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 456 | lg2::info( |
| 457 | "Status::readOccState: OCC{INST} state {STATE} (lastState: {PRIOR})", |
| 458 | "INST", instance, "STATE", lg2::hex, state, "PRIOR", lg2::hex, |
| 459 | lastState); |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 460 | lastState = state; |
| 461 | #ifdef POWER10 |
| 462 | if (OccState(state) == OccState::ACTIVE) |
| 463 | { |
| 464 | if (pmode && device.master()) |
| 465 | { |
| 466 | // Set the master OCC on the PowerMode object |
| 467 | pmode->setMasterOcc(path); |
| 468 | // Enable mode changes |
| 469 | pmode->setMasterActive(); |
| 470 | |
| 471 | // Special processing by master OCC when it goes active |
| 472 | occsWentActive(); |
| 473 | } |
| 474 | |
| 475 | CmdStatus status = sendAmbient(); |
| 476 | if (status != CmdStatus::SUCCESS) |
| 477 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 478 | lg2::error( |
| 479 | "readOccState: Sending Ambient failed with status {STATUS}", |
| 480 | "STATUS", status); |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 481 | } |
| 482 | } |
| 483 | |
| 484 | // If OCC in known Good State. |
| 485 | if ((OccState(state) == OccState::ACTIVE) || |
| 486 | (OccState(state) == OccState::CHARACTERIZATION) || |
| 487 | (OccState(state) == OccState::OBSERVATION)) |
| 488 | { |
| 489 | // Good OCC State then sensors valid again |
| 490 | stateValid = true; |
| 491 | |
| 492 | if (safeStateDelayTimer.isEnabled()) |
| 493 | { |
| 494 | // stop safe delay timer (no longer in SAFE state) |
| 495 | safeStateDelayTimer.setEnabled(false); |
| 496 | } |
| 497 | } |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 498 | else |
| 499 | { |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 500 | // OCC is in SAFE or some other unsupported state |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 501 | if (!safeStateDelayTimer.isEnabled()) |
| 502 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 503 | lg2::error( |
| 504 | "readOccState: Invalid OCC{INST} state of {STATE}, starting safe state delay timer", |
| 505 | "INST", instance, "STATE", state); |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 506 | // start safe delay timer (before requesting reset) |
| 507 | using namespace std::literals::chrono_literals; |
| 508 | safeStateDelayTimer.restartOnce(60s); |
| 509 | } |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 510 | // Not a supported state (update sensors to NaN and not |
| 511 | // functional) |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 512 | stateValid = false; |
| 513 | } |
| 514 | #else |
| 515 | // Before P10 state not checked, only used good file open. |
| 516 | stateValid = true; |
| 517 | #endif |
| 518 | } |
| 519 | } |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 520 | #ifdef POWER10 |
| 521 | else |
| 522 | { |
| 523 | // Unable to read state |
| 524 | stateValid = false; |
| 525 | } |
| 526 | #endif |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 527 | file.close(); |
| 528 | |
| 529 | // if failed to Read a state or not a valid state -> Attempt retry |
| 530 | // after 1 Second delay if allowed. |
| 531 | if ((!goodFile) || (!stateValid)) |
| 532 | { |
| 533 | if (!goodFile) |
| 534 | { |
| 535 | // If not able to read, OCC may be offline |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 536 | if (openErrno != lastOccReadStatus) |
| 537 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 538 | lg2::error( |
| 539 | "Status::readOccState: open/read failed trying to read OCC{INST} state (open errno={ERROR})", |
| 540 | "INST", instance, "ERROR", openErrno); |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 541 | lastOccReadStatus = openErrno; |
| 542 | } |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 543 | } |
| 544 | else |
| 545 | { |
| 546 | // else this failed due to state not valid. |
Chris Cain | bd551de | 2022-04-26 13:41:16 -0500 | [diff] [blame] | 547 | if (state != lastState) |
| 548 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 549 | lg2::error( |
| 550 | "Status::readOccState: OCC{INST} Invalid state {STATE} (last state: {PRIOR})", |
| 551 | "INST", instance, "STATE", lg2::hex, state, "PRIOR", |
| 552 | lg2::hex, lastState); |
Chris Cain | bd551de | 2022-04-26 13:41:16 -0500 | [diff] [blame] | 553 | } |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 554 | } |
| 555 | |
| 556 | #ifdef READ_OCC_SENSORS |
Sheldon Bailey | c8dd459 | 2022-05-12 10:15:14 -0500 | [diff] [blame] | 557 | manager.setSensorValueToNaN(instance); |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 558 | #endif |
| 559 | |
| 560 | // See occReadRetries for number of retry attempts. |
| 561 | if (currentOccReadRetriesCount > 0) |
| 562 | { |
| 563 | --currentOccReadRetriesCount; |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 564 | } |
| 565 | else |
| 566 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 567 | lg2::error("readOccState: failed to read OCC{INST} state!", "INST", |
| 568 | instance); |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 569 | |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 570 | // State could not be determined, set it to NO State. |
| 571 | lastState = 0; |
| 572 | |
| 573 | // Disable the ability to send Failed actions until OCC is |
| 574 | // Active again. |
| 575 | stateValid = false; |
| 576 | |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 577 | // Disable due to OCC comm failure and reset to try recovering |
| 578 | deviceError(Error::Descriptor(OCC_COMM_ERROR_PATH)); |
| 579 | |
| 580 | // Reset retry count (for next attempt after recovery) |
| 581 | currentOccReadRetriesCount = occReadRetries; |
| 582 | } |
| 583 | } |
| 584 | else |
| 585 | { |
| 586 | if (lastOccReadStatus != 0) |
| 587 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 588 | lg2::info( |
| 589 | "Status::readOccState: successfully read OCC{INST} state: {STATE}", |
| 590 | "INST", instance, "STATE", state); |
Chris Cain | f0295f5 | 2024-09-12 15:41:14 -0500 | [diff] [blame] | 591 | lastOccReadStatus = 0; // no error |
Sheldon Bailey | 373af75 | 2022-02-21 15:14:00 -0600 | [diff] [blame] | 592 | } |
| 593 | } |
| 594 | } |
| 595 | |
Chris Cain | c86d80f | 2023-05-04 15:49:18 -0500 | [diff] [blame] | 596 | // Update processor throttle status on dbus |
| 597 | void Status::updateThrottle(const bool isThrottled, const uint8_t newReason) |
| 598 | { |
| 599 | if (!throttleHandle) |
| 600 | { |
| 601 | return; |
| 602 | } |
| 603 | |
| 604 | uint8_t newThrottleCause = throttleCause; |
| 605 | |
| 606 | if (isThrottled) // throttled due to newReason |
| 607 | { |
| 608 | if ((newReason & throttleCause) == 0) |
| 609 | { |
| 610 | // set the bit(s) for passed in reason |
| 611 | newThrottleCause |= newReason; |
| 612 | } |
| 613 | // else no change |
| 614 | } |
| 615 | else // no longer throttled due to newReason |
| 616 | { |
| 617 | if ((newReason & throttleCause) != 0) |
| 618 | { |
| 619 | // clear the bit(s) for passed in reason |
| 620 | newThrottleCause &= ~newReason; |
| 621 | } |
| 622 | // else no change |
| 623 | } |
| 624 | |
| 625 | if (newThrottleCause != throttleCause) |
| 626 | { |
| 627 | if (newThrottleCause == THROTTLED_NONE) |
| 628 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 629 | lg2::debug( |
| 630 | "updateThrottle: OCC{INST} no longer throttled (prior reason: {REASON})", |
| 631 | "INST", instance, "REASON", throttleCause); |
Chris Cain | c86d80f | 2023-05-04 15:49:18 -0500 | [diff] [blame] | 632 | throttleCause = THROTTLED_NONE; |
| 633 | throttleHandle->throttled(false); |
| 634 | throttleHandle->throttleCauses({}); |
| 635 | } |
| 636 | else |
| 637 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 638 | lg2::debug( |
| 639 | "updateThrottle: OCC{INST} is throttled with reason {REASON} (prior reason: {PRIOR})", |
| 640 | "INST", instance, "REASON", newThrottleCause, "PRIOR", |
| 641 | throttleCause); |
Chris Cain | c86d80f | 2023-05-04 15:49:18 -0500 | [diff] [blame] | 642 | throttleCause = newThrottleCause; |
| 643 | |
| 644 | std::vector<ThrottleObj::ThrottleReasons> updatedCauses; |
| 645 | if (throttleCause & THROTTLED_POWER) |
| 646 | { |
| 647 | updatedCauses.push_back( |
| 648 | throttleHandle->ThrottleReasons::PowerLimit); |
| 649 | } |
| 650 | if (throttleCause & THROTTLED_THERMAL) |
| 651 | { |
| 652 | updatedCauses.push_back( |
| 653 | throttleHandle->ThrottleReasons::ThermalLimit); |
| 654 | } |
| 655 | if (throttleCause & THROTTLED_SAFE) |
| 656 | { |
| 657 | updatedCauses.push_back( |
| 658 | throttleHandle->ThrottleReasons::ManagementDetectedFault); |
| 659 | } |
| 660 | throttleHandle->throttleCauses(updatedCauses); |
| 661 | throttleHandle->throttled(true); |
| 662 | } |
| 663 | } |
| 664 | // else no change to throttle status |
| 665 | } |
| 666 | |
| 667 | // Get processor path associated with this OCC |
| 668 | void Status::readProcAssociation() |
| 669 | { |
| 670 | std::string managingPath = path + "/power_managing"; |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 671 | lg2::debug("readProcAssociation: getting endpoints for {MANAGE} ({PATH})", |
| 672 | "MANAGE", managingPath, "PATH", path); |
Chris Cain | c86d80f | 2023-05-04 15:49:18 -0500 | [diff] [blame] | 673 | try |
| 674 | { |
| 675 | utils::PropertyValue procPathProperty{}; |
| 676 | procPathProperty = utils::getProperty( |
| 677 | managingPath, "xyz.openbmc_project.Association", "endpoints"); |
| 678 | auto result = std::get<std::vector<std::string>>(procPathProperty); |
| 679 | if (result.size() > 0) |
| 680 | { |
| 681 | procPath = result[0]; |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 682 | lg2::info("readProcAssociation: OCC{INST} has proc={PATH}", "INST", |
| 683 | instance, "PATH", procPath); |
Chris Cain | c86d80f | 2023-05-04 15:49:18 -0500 | [diff] [blame] | 684 | } |
| 685 | else |
| 686 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 687 | lg2::error( |
| 688 | "readProcAssociation: No processor associated with OCC{INST} / {PATH}", |
| 689 | "INST", instance, "PATH", path); |
Chris Cain | c86d80f | 2023-05-04 15:49:18 -0500 | [diff] [blame] | 690 | } |
| 691 | } |
| 692 | catch (const sdbusplus::exception_t& e) |
| 693 | { |
Chris Cain | 37abe9b | 2024-10-31 17:20:31 -0500 | [diff] [blame^] | 694 | lg2::error( |
| 695 | "readProcAssociation: Unable to get proc assocated with {PATH} - {ERROR}", |
| 696 | "PATH", path, "ERROR", e.what()); |
Chris Cain | c86d80f | 2023-05-04 15:49:18 -0500 | [diff] [blame] | 697 | procPath = {}; |
| 698 | } |
| 699 | } |
| 700 | |
Vishwanatha Subbanna | 307d80b | 2017-06-28 15:56:09 +0530 | [diff] [blame] | 701 | } // namespace occ |
| 702 | } // namespace open_power |