summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Powercap: add p8 supportLei YU2017-12-121-3/+18
| | | | | | | | | | P8 uses i2c-occ and powercap is not created. Add P8 support by creating powercap object with i2c device name. Fixes openbmc/openbmc#2688 Change-Id: Ia63070d63f4392cc4b084ab628cdbdcf4206c883 Signed-off-by: Lei YU <mine260309@gmail.com>
* Add OCC present count detection and watchEdward A. James2017-11-171-1/+4
| | | | | | | | | | | | | | | | 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>
* Add occ_ prefix for i2c occ dbus objectsLei YU2017-10-262-2/+6
| | | | | | | | | | | | | | I2c occ dbus objects path were their i2c addresses, e.g. 3_0050. This does not indicate it's occ objects, and it does not work with op-occ-disable/enable services, which searches "occ" key words in object path. So add "occ_" prefix for i2c occ dbus objects, e.g. occ_3_0050, to indicate it's occ objects and work well with op-occ-disable/enable services. Change-Id: I21712f2fb7cf6138248f6986b84f99c90c3fa3a2 Signed-off-by: Lei YU <mine260309@gmail.com>
* Add unit tests for utils and refactor MakefilesLei YU2017-08-282-18/+167
| | | | | | | | | | | 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-0/+1
| | | | | | | | | | 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>
* Add support to watch for OCC errorsVishwanatha Subbanna2017-07-292-3/+16
| | | | | Change-Id: I98d95020a2d01e281e5c8efa825d6b4bd4c6c160 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Determine pcap value to send to occAndrew Geissler2017-07-182-0/+50
Change-Id: Ie60aac151f5fd8ce091020ce756834e4877cbc93 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
OpenPOWER on IntegriCloud