Lines Matching +full:fault +full:- +full:gpios
8 * http://www.apache.org/licenses/LICENSE-2.0
21 #include <elog-errors.hpp>
22 #include <org/open_power/Witherspoon/Fault/error.hpp>
23 #include <phosphor-logging/elog.hpp>
24 #include <phosphor-logging/log.hpp>
51 namespace power_error = sdbusplus::org::open_power::Witherspoon::Fault::Error;
55 interface(std::get<ucd90160::pathField>(deviceMap.find(instance)->second), in UCD90160()
68 // Not a voltage or PGOOD fault, but we know something in onFailure()
145 // Log errors if any non-warning bits on in checkVOUTFaults()
149 deviceMap.find(getInstance())->second); in checkVOUTFaults()
166 org::open_power::Witherspoon::Fault::PowerSequencerVoltageFault; in checkVOUTFaults()
192 deviceMap.find(getInstance())->second); in checkPGOODFaults()
209 auto gpio = gpios.find(pinID); in checkPGOODFaults()
215 if (gpio == gpios.end()) in checkPGOODFaults()
217 gpios.emplace(pinID, std::make_unique<GPIO>(gpioDevice, pinID, in checkPGOODFaults()
219 gpio = gpios.find(pinID); in checkPGOODFaults()
222 gpiStatus = gpio->second->read(); in checkPGOODFaults()
264 org::open_power::Witherspoon::Fault::PowerSequencerPGOODFault; in checkPGOODFaults()
294 using metadata = org::open_power::Witherspoon::Fault::PowerSequencerFault; in createPowerFaultLog()
337 // Currently the only extra analysis to do is to check other GPIOs. in doExtraAnalysis()
347 deviceMap.find(getInstance())->second); in doGPIOAnalysis()
355 auto path = std::get<ucd90160::gpioDevicePathField>(gpioConfig->second); in doGPIOAnalysis()
363 "Missing GPIO device - cannot do GPIO analysis of fault", in doGPIOAnalysis()
368 // The GPIO value of the fault condition in doGPIOAnalysis()
369 auto polarity = std::get<ucd90160::gpioPolarityField>(gpioConfig->second); in doGPIOAnalysis()
371 // The GPIOs to check in doGPIOAnalysis()
372 auto& gpios = std::get<ucd90160::gpioDefinitionField>(gpioConfig->second); in doGPIOAnalysis() local
374 for (const auto& gpio : gpios) in doGPIOAnalysis()
389 // GPIO only throws InternalErrors - not worth committing. in doGPIOAnalysis()
391 "GPIO read failed while analyzing a power fault", in doGPIOAnalysis()
414 std::get<ucd90160::errorFunctionField>(gpioConfig->second); in doGPIOAnalysis()
423 std::get<ucd90160::optionFlagsField>(gpioConfig->second)); in doGPIOAnalysis()
457 using metadata = org::open_power::Witherspoon::Fault::GPUPowerFault; in gpuPGOODError()
479 using metadata = org::open_power::Witherspoon::Fault::GPUOverTemp; in gpuOverTempError()
501 using metadata = org::open_power::Witherspoon::Fault::MemoryPowerFault; in memGoodError()