summaryrefslogtreecommitdiffstats
path: root/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* Install error yaml files to shared locationMarri Devender Rao2018-01-161-0/+8
| | | | | Change-Id: Id7ffc23fbea28f303521bb04faaaa13b931a3e09 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Add OCC present count detection and watchEdward A. James2017-11-171-0/+2
| | | | | | | | | | | | | | | | Add a Presence child class of Error to handle detecting the number of OCCs available. Add an instance of this Presence class if the Device detects that it is the master OCC, since the number of present OCCs is only reported by the master OCC. When a change to the number of OCCs reported is detected, compare with the number of OCCs determined to be active by the Manager, and if there is a mismatch, follow the usual error path (reset OCC, etc). Partially resolves openbmc/openbmc#2285 See https://gerrit.openbmc-project.xyz/#/c/7843/ Change-Id: Idbaca52b307992d9b01fe15439ab746ef6d64397 Signed-off-by: Edward A. James <eajames@us.ibm.com>
* Split occ_manager.hpp into header and source filesVishwanatha Subbanna2017-09-261-0/+1
| | | | | | | | occ_manager.hpp is growing and hence this commit splits into header and source files Change-Id: I3203520c50910d39055fea98b770de55796bb074 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add unit tests for utils and refactor MakefilesLei YU2017-08-281-5/+20
| | | | | | | | | | | 1. Add unit tests for utils; 2. Put the common code shared by app and utest into a library, and link the library to app and utest. This eliminates the duplicated compiled objects. 3. Update .gitignore Change-Id: I05ee93c2b23748a1e038eeec3534d49b94911366 Signed-off-by: Lei YU <mine260309@gmail.com>
* Add I2C OCC support for P8 systemsLei YU2017-08-281-0/+1
| | | | | | | | | | | | | | P8 system uses I2C OCC and it uses different driver for occ-hwmon. Add `--enable-i2c-occ` configure option to enable the support. It searches i2c device names in sysfs to get all occ-hwmon devices and use the i2c device name to bind/unbind the driver. The occ control object path for I2C OCC hwmon becomes something like /org/open_power/control/3_0050, where 3_0050 is the i2c address. Change-Id: I8b9d8d4429c563528dc88fb2679b265c53d7a2d5 Signed-off-by: Lei YU <mine260309@gmail.com>
* Reset OCC on error conditionVishwanatha Subbanna2017-08-021-2/+4
| | | | | | | | | | 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-1/+10
| | | | | Change-Id: I948cc33ef05c2c49353277f4d5df958012a9801f Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Reconstruct OCC objects on app restartDeepak Kodihalli2017-08-011-2/+4
| | | | | | | | | | | | | The OCC objects would get created when corresponding CPU inventory items get added. This doesn't cover a scenario where the OCC app restarts. If the CPU inventory is already present when the app starts, construct OCC objects as well. Resolves openbmc/openbmc#1824. Change-Id: I4994d93ba6f528ca67977604ccb1da717563092a Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Add support to watch for OCC errorsVishwanatha Subbanna2017-07-291-11/+16
| | | | | Change-Id: I98d95020a2d01e281e5c8efa825d6b4bd4c6c160 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Determine pcap value to send to occAndrew Geissler2017-07-181-0/+2
| | | | | Change-Id: Ie60aac151f5fd8ce091020ce756834e4877cbc93 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Register callbacks for pcap property changesAndrew Geissler2017-07-171-2/+4
| | | | | Change-Id: I39b38a931ffdf260d9ee45f02cdd31e9e884b04d Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Add Support to do device bind and unbind based on OCC statusVishwanatha Subbanna2017-07-061-0/+1
| | | | | | | Fixes openbmc/openbmc#1698 Change-Id: Iaa33c3065b0358b62e3ec7e39d4b57c6b9d181e1 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Implement OCC status interfaceVishwanatha Subbanna2017-07-041-1/+3
| | | | | Change-Id: I43822cb28bc2d23398fb09352c9876e169c666f7 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Create OCC pass-through objectsDeepak Kodihalli2017-06-131-3/+2
| | | | | | | | | | Create OCC pass-through d-bus objects when corresponding CPU objects are created in the inventory. Resolves openbmc/openbmc#1450. Change-Id: I8da879f51ebef8dcc3d25358def81c5e0dce0617 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Commit errorlog and exit the application on error scenariosVishwanatha Subbanna2017-04-261-1/+16
| | | | | | | | | | | This application interacts with OCC driver and hence its good to terminate when there is an error during IO since it would mostly mean a faulty hardware. Fixes openbmc/openbmc#1428 Change-Id: I48bc7b2cf19922a7a53dbab78cdd4f2338a7431b Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Implement org.open_power.OCC.PassThroughDeepak Kodihalli2017-03-301-1/+3
| | | | | | | | This d-bus interface is implemented by the open_power::occ::pass_through::PassThrough class. Change-Id: I6bce9e609b7b977418bcfee15e97432cb7d9e6b3 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Find OCC objectsDeepak Kodihalli2017-03-301-0/+5
| | | | | | | | | | For now, map OCC object per POWER processor. Add a method that returns a list of OCC objects that need to be on the bus, based on the processor inventory. Change-Id: I1dd36b96f71684a1d5866876e4ca9aa0283ef8b0 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Add main applicationDeepak Kodihalli2017-03-301-0/+12
Change-Id: I294529f08dcf65594e735ee5aeefdb37a2920b01 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
OpenPOWER on IntegriCloud