summaryrefslogtreecommitdiffstats
path: root/occ_status.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Re-enable OCC error watchingEdward A. James2017-12-121-11/+12
| | | | | | | | | | Driver and OCC application should now correctly report errors from the OCC with no false positives. Resolves openbmc/openbmc#2285 Change-Id: Ifc4668ab75f26529f071317ead6ab4f77c3a0e7c Signed-off-by: Edward A. James <eajames@us.ibm.com>
* Add watches for throttling reported by the OCCEddie James2017-12-121-5/+9
| | | | | | | | | | | Add Error objects to watch the sysfs entries provided by the OCC hwmon driver that report various types of throttling. Also needed to add a boolean input to the Error callback interface. Resolves openbmc/openbmc#1821 Change-Id: I4425770a92ace0f73024b3dc4c577ce46957a62a Signed-off-by: Eddie James <eajames@us.ibm.com>
* Add additional device bind case if occActive is out-of-syncEdward A. James2017-11-081-0/+21
| | | | | | | | | | | | | This happens with bmc reboot if the host is up. BMC comes back up and initial fsi load binds the first proc occ-hwmon device. OCC controller starts and see's its bound, so occActive goes true. FSI rescan occurs since host is up, unloading the first proc occ-hwmon device... Now we can't enable it again since occActive is still true. Resolves openbmc/openbmc#2325 Change-Id: Iac838bc51d1110f502ca0c7c5da78dc5e1780c98 Signed-off-by: Edward A. James <eajames@us.ibm.com>
* Update Journal Variable NamesGunnar Mills2017-11-031-1/+1
| | | | | | | | Journal entry variable names should be uppercase. https://www.freedesktop.org/software/systemd/man/sd_journal_print.html Change-Id: I73f88faec688e2e95a5bad5f974306b005128504 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Disable OCC error monitoringVishwanatha Subbanna2017-09-131-4/+5
| | | | | | | This is a quick hack until openbmc/openbmc#2285 is resolved Change-Id: I2cb5f61a258bdfe014df63a0b44e444e13d366a9 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Remove hub FSI scan which was part of OCC bindVishwanatha Subbanna2017-09-021-27/+0
| | | | | | | | Scanning hub FSI is now moved to a service file since it's needed prior to power on and hence this change is not needed. Change-Id: If2d0d8f5c7e1b405d6e858e0f2da8fc7b505cd86 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Enable OCC error monitoringVishwanatha Subbanna2017-08-231-8/+12
| | | | | | | Fixes openbmc/openbmc#2165 Change-Id: I93f317a32c910f279003fa0fce6ae2d597f90312 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Reset hub scan variable when OCC goes inactiveAndrew Geissler2017-08-161-0/+3
| | | | | | | | | | Need to re-scan the second processors hub chip on every boot of the system Resolves openbmc/openbmc#2161 Change-Id: I089140333462d83f66a0ad207fecb679cba79210 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Call Hub FSI scan service prior to doing OCC bindVishwanatha Subbanna2017-08-111-2/+30
| | | | | | | | | | This is needed to make sure that the /dev/occ files are created that are needed to communicate with OCC device. Also, calling to this service is needed only when the first call to do OCC bind is received. Change-Id: I40466b8b74753b2f2366be385a8b066e912b32e4 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Reset OCC on error conditionVishwanatha Subbanna2017-08-021-0/+60
| | | | | | | | | | After detecting the error in the OCC, invokes OccReset command in Host Control dbus object with the sensor ID of the failing OCC Fixes openbmc/openbmc#1363 Change-Id: I608dbbb943d3b39d0709d6f350ab799e771a13e9 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Use generated occ to sensor ID mapVishwanatha Subbanna2017-08-021-0/+1
| | | | | Change-Id: I948cc33ef05c2c49353277f4d5df958012a9801f Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add support to watch for OCC errorsVishwanatha Subbanna2017-07-291-1/+14
| | | | | Change-Id: I98d95020a2d01e281e5c8efa825d6b4bd4c6c160 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add Support to do device bind and unbind based on OCC statusVishwanatha Subbanna2017-07-061-0/+13
| | | | | | | Fixes openbmc/openbmc#1698 Change-Id: Iaa33c3065b0358b62e3ec7e39d4b57c6b9d181e1 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Implement OCC status interfaceVishwanatha Subbanna2017-07-041-0/+14
Change-Id: I43822cb28bc2d23398fb09352c9876e169c666f7 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
OpenPOWER on IntegriCloud