Lines Matching full:occ

22 namespace occ  namespace
77 // - create the PowerMode object to control OCC modes
78 // - create statusObjects for each OCC device found
79 // - waits for OCC Active sensors PDRs to become available
86 // Create one occ per cpu in findAndCreateObjects()
87 auto occ = std::string(OCC_NAME) + std::to_string(id); in findAndCreateObjects() local
88 createObjects(occ); in findAndCreateObjects()
128 "Manager::findAndCreateObjects(): Creating {QTY} OCC Status Objects", in findAndCreateObjects()
137 // Find/update the processor path associated with each OCC in findAndCreateObjects()
198 if (open_power::occ::utils::isHostRunning()) in checkAllActiveSensors()
219 "checkAllActiveSensors(): OCC{INST} is ACTIVE (queued)", in checkAllActiveSensors()
229 "checkAllActiveSensors(): Waiting on OCC{INST} Active sensor", in checkAllActiveSensors()
290 "checkAllActiveSensors(): OCC Active sensors are available"); in checkAllActiveSensors()
301 // restart occ wait timer to check status after reset in checkAllActiveSensors()
316 "checkAllActiveSensors(): Waiting for OCC Active sensors to become available"); in checkAllActiveSensors()
327 std::regex expr{R"(occ(\d+)$)"}; in findOCCsInDev()
362 void Manager::createObjects(const std::string& occ) in createObjects() argument
364 auto path = fs::path(OCC_CONTROL_ROOT) / occ; in createObjects()
385 pcap = std::make_unique<open_power::occ::powercap::PowerCap>( in createObjects()
391 lg2::info("Manager::createObjects(): OCC{INST} is the master", "INST", in createObjects()
396 // Set the master OCC on the PowerMode object in createObjects()
419 "resetOccRequest: PM Complex reset was requested due to OCC{INST}", in resetOccRequest()
425 …OccRequest: Ignoring PM Complex reset request for OCC{INST}, because reset already outstanding for… in resetOccRequest()
430 // If a reset has not been started, initiate an OCC reset via PLDM
438 "initiateOccRequest: Initiating PM Complex reset due to OCC{INST}", in initiateOccRequest()
448 …eOccRequest: Ignoring PM Complex reset request for OCC{INST}, because reset already in process for… in initiateOccRequest()
460 …"statusCallBack: Ignoring OCC{INST} activate because a reset has been initiated due to OCC{RINST}", in statusCallBack()
465 // OCC went active in statusCallBack()
471 // First OCC went active (allow some time for all OCCs to go active) in statusCallBack()
482 // stop occ wait timer in statusCallBack()
495 // restart occ wait timer in statusCallBack()
501 // Verify master OCC and start presence monitor in statusCallBack()
505 // Verify master OCC and start presence monitor in statusCallBack()
516 // Send poll and start OCC poll timer in statusCallBack()
522 // OCC went away in statusCallBack()
529 lg2::info("OCC{INST} disabled, and no other OCCs are active", in statusCallBack()
539 // All OCC active sensors are clear (reset should be in in statusCallBack()
542 … "statusCallBack: Clearing resetInProgress (activeCount={COUNT}, OCC{INST}, status={STATUS})", in statusCallBack()
548 // Stop OCC poll timer in statusCallBack()
567 …"statusCallBack: Skipping clear of resetInProgress (activeCount={COUNT}, OCC{INST}, status={STATUS… in statusCallBack()
571 // Clear OCC sensors in statusCallBack()
602 // The first device is master occ in initStatusObjects()
603 pcap = std::make_unique<open_power::occ::powercap::PowerCap>( in initStatusObjects()
608 // Set the master OCC on the PowerMode object in initStatusObjects()
624 lg2::info("SBE timeout, requesting HRESET (OCC{INST})", "INST", in sbeTimeout()
631 // Stop communication with this OCC in sbeTimeout()
645 const bool hostRunning = open_power::occ::utils::isHostRunning(); in updateOCCActive()
651 … "updateOCCActive: Host is not running yet (OCC{INST} active={STAT}), clearing sensor received", in updateOCCActive()
657 "updateOCCActive: Waiting for Host and all OCC Active Sensors"); in updateOCCActive()
676 "updateOCCActive: No status object to update for OCC{INST} (active={STAT})", in updateOCCActive()
684 … "updateOCCActive: No status objects and Host is not running yet (OCC{INST} active={STAT})", in updateOCCActive()
690 // OCC went active in updateOCCActive()
698 // OCC was disabled in updateOCCActive()
723 lg2::info("HRESET succeeded (OCC{INST})", "INST", instance); in sbeHRESETResult()
729 // Re-enable communication with this OCC in sbeHRESETResult()
747 lg2::info("HRESET failed (OCC{INST}), triggering SBE dump", "INST", in sbeHRESETResult()
900 // restart occ wait timer in pollerTimerExpired()
911 // OCC is not running yet in pollerTimerExpired()
919 // Read sysfs to force kernel to poll OCC in pollerTimerExpired()
923 // Read occ sensor values in pollerTimerExpired()
930 // Restart OCC poll timer in pollerTimerExpired()
1039 // The OCC reports small core temps, of which there are in readTempSensors()
1098 // NOTE: if OCC sends back 0xFF, kernal sets this fault value to 1. in readTempSensors()
1320 // Labels of EXTN sections from OCC interface Document in readExtnSensors()
1424 void Manager::getSensorValues(std::unique_ptr<Status>& occ) in getSensorValues() argument
1427 const fs::path sensorPath = occ->getHwmonPath(); in getSensorValues()
1428 const uint32_t id = occ->getOccInstanceID(); in getSensorValues()
1437 if (occ->isMasterOcc()) in getSensorValues()
1449 "Manager::getSensorValues: OCC{INST} sensor path missing: {PATH}", in getSensorValues()
1582 // After the first OCC goes active, this timer will be started (60 seconds)
1595 "occsNotAllRunning: Active OCC count ({COUNT}) does not match expected count ({EXP})", in occsNotAllRunning()
1607 // restart occ wait timer in occsNotAllRunning()
1619 // If this timer expires, that indicates there are no OCC active sensor PDRs
1637 "throttlePldmTraceExpired(): OCC active sensors still not available!"); in throttlePldmTraceExpired()
1666 // Add occ-control journal traces to PEL FFDC in createPldmSensorPEL()
1668 FFDC::addJournalEntries(ffdc, "openpower-occ-control", 40); in createPldmSensorPEL()
1697 // Verify single master OCC and start presence monitor
1714 lg2::info("validateOccMaster: OCC{INST} is ACTIVE (queued)", in validateOccMaster()
1720 // OCC does not appear to be active yet, check active sensor in validateOccMaster()
1727 "validateOccMaster: OCC{INST} is ACTIVE after reading sensor", in validateOccMaster()
1735 "validateOccMaster: HOST is not running (OCC{INST})", in validateOccMaster()
1753 "validateOccMaster: Multiple OCC masters! ({MAST1} and {MAST2})", in validateOccMaster()
1763 lg2::error("validateOccMaster: Master OCC not found! (of {NUM} OCCs)", in validateOccMaster()
1771 lg2::info("validateOccMaster: OCC{INST} is master of {COUNT} OCCs", in validateOccMaster()
1787 // Clean up any variables since the OCC is no longer running.
1793 lg2::info("hostPoweredOff: Clearing resetRequired for OCC{INST}", in hostPoweredOff()
1799 lg2::info("hostPoweredOff: Clearing resetInProgress for OCC{INST}", in hostPoweredOff()
1806 } // namespace occ