summaryrefslogtreecommitdiff
path: root/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/occ
AgeCommit message (Collapse)AuthorFilesLines
2018-04-24openpower-occ-control.inc: bump versionAndrew Geissler1-1/+1
Change-Id: I5247e8c03ba3aac7af517e228cd5ef6554f7e58f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-06Introduce new host-startmin action targetAndrew Geissler1-2/+2
Requirements have arisen for OpenBMC firmware to run certain services only during fresh power on operations. To achieve that, break the obmc-host-start action target into two targets. The existing obmc-host-start target will now call the new obmc-host-startmin target. The startmin target will be the minimum services required to start the host. The obmc-host-start target is where services that should only be called during a fresh power on can be placed. The initial use case for this is the obmc-host-reboot target. It will call this new obmc-host-startmin target to do the bare minimum on a reboot operation. This then allows the use case for OpenBMC to only reset the host reboot count on a fresh power on operation. A new service will be added to the obmc-host-start target to do this. If a reboot operation is issued, or a host watchdog is triggered to cause a reboot, this service would not be started, ensuring the reboot count is properly decremented. Tested: Verified on/off/reboot and ran CT regression suite. https://gerrit.openbmc-project.xyz/#/c/9821/ is required for reboots to work properly. Change-Id: I86df03e6d671178c1525f852e196c4102bb73cb6 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-23kernel: Move to 4.13 kernelJoel Stanley1-1/+1
We have 236 commits, 127 files changed, 17766 insertions(+), 2128 deletions(-). Some of these are backports from upstream. This list does not include patches from the 4.13 stable releases, but we do include those in the dev-4.13 branch. 1 Alexey Khoroshilov 34 Andrew Jeffery 1 Arnd Bergmann 1 Benjamin Herrenschmidt 1 Bhumika Goyal 1 Brad Bishop 1 Brendan Higgins 11 Christopher Bostic 1 Cyril Bur 14 Cédric Le Goater 49 Edward A. James 3 Gavin Shan 1 Guenter Roeck 8 Ivan Mikhaylov 1 Jacek Anaszewski 1 James Feist 7 Jeremy Kerr 72 Joel Stanley 2 Julia Lawall 1 Ken Chen 6 Lei YU 3 Milton Miller 1 Mykola Kostenok 1 Patrick Venture 2 Philipp Zabel 1 Rick Altherr 11 Samuel Mendoza-Jonas 2 Wei Yongjun 1 Xo Wang 1 Yong Li Note that the 4.13 branch is EOL'd by the Linux community, and as such should not be used for any products beyond development. React to removal of occ hwmon instances from device trees with a new startup/shutdown mechanism for phosphor-hwmon. To fix this, a helper script will be used to start the service that will pass the service the device tree name if it is present, or the udev device path if it isn't. This script will still run from the udev rule as before, but it will stop and start the service itself without using the SYSTEMD_WANTS attribute. As the path to the hwmon environment file matches the service template argument, the paths for the OCC .conf files need to change to match the device path instead of the previous device tree path. Note that the pure device path would have the hwmon instance number in it, but since that can't be known ahead of time it is stripped off by the script that starts the service. In addition, the pure device path for the OCCs contain several ':'s, meaning the associated environment files would also need to. However, Yocto/Bitbake cannot handle a ':' in a file path, so they are converted to '--'s by the script that starts the service and phosphor-hwmon will convert them back internally when it starts. The service file also needed some changes now that the service lifetime is no longer controlled by systemd via SYSTEMD_WANTS. This script will be called by a udev rule to start and stop phosphor-hwmon when the hwmon device driver is started and stopped. It is passed both the device path and the OF_FULLNAME device tree attribute. If OF_FULLNAME is present, it will start the service with that as its template argument, otherwise it will use the device path. This is to handle devices that aren't in the device tree so they won't have OF_FULLNAME. If a '/hwmon/hwmonN' is in the path it is removed, as this path is also used as a path to an environment file and so must be known ahead of time, which the hwmon instance N is not. If there is a ':' in the path name, it is converted to a '--'. Yocto/Bitbake cannot handle a ':' in file paths. Resolves openbmc/openbmc#2953 Change-Id: I815be4d6d9e1cbea8428bb1bb8c332776ee71ece Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Matt Spinler <spinler@us.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-03-23Clean up stale obmc-phosphor-utils referencesBrad Bishop2-2/+0
There were a number of places that inherited this class but did not use it. A number of classes that did use it did not inherit it. This was possible because the class was pulled in by the distro configuration but that has been removed here as well. Tested: Built and verified a witherspoon image Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I73511cdcc609875b4fe016967c1b84c5200fb703
2018-03-14Use OpenPower variable for PS derating factorMatt Spinler1-1/+4
The openpower-occ-control code needs to know the power supply derating factor, but will default to a value if one isn't supplied externally in do_configure. Since other will also need to use that same value, use a common variable for it defined in openpower.inc, and now pass it into the configure step. This derating factor is an OpenPower concept used by the Power processor's OCC thermal control subsystem. Tested: Check that the derating factor variable in config.h in the openenpower-occ-control repo follows the variable in openpower.inc. Change-Id: I259b6086ebe70b2ac6eccdd244e43a7d36a28a77 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2018-01-30Use variables for MRW XML filename and pathMatt Spinler1-1/+2
Create an mrw-xml bbclass that has variables for the MRW XML filename and path to it. Then, changes all users of the MRW XML to inherit that class and use those variables. The filename will default to ${MACHINE}.xml if it hasn't already been set to something else, such as in a .conf file. This is done so that the file can be something other than ${MACHINE}.xml. Change-Id: Ia7021e5a5d5e7946829e58688250aa64250cb00e Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2018-01-30op-occ: add native recipe to install error yaml to shared locationMarri Devender Rao1-0/+37
Extend recipe for native recipe which installs error yaml files to shared location Partially resolves openbmc/openbmc#2705 Change-Id: I02405a24353a565dbd34fdca06098be8337cd921 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
2018-01-24openpower-occ-control.inc: bump versionAndrew Geissler1-1/+1
Change-Id: Ibb9668dab9c7d802991e26e9de4c41db6c3c4d89 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-01-23openpower-occ-control.inc: bump versionAndrew Geissler1-1/+1
Change-Id: I0016dc7ead000e6753a847422238517fd103efda Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-01-23Package installed error yaml filesMarri Devender Rao1-1/+2
All the packages that copy error yaml files to shared location for error log processing need to inherit phosphor-dbus-yaml base class. The error yaml files that are copied to the shared location need to be packaged, base class caters for packaging the files with the openpower-occ-control. Change-Id: Ia1d37b58e5f27d1237adcb0d550a4ae6d61e2f18 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
2018-01-04openpower-occ-control.inc: bump versionAndrew Geissler1-1/+1
Change-Id: If1f9a3aaf8672bad98b92cb88c3499c097df53dd Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-12-13openpower-occ-control.inc: bump versionAndrew Geissler1-1/+1
Change-Id: I2be1cee439992b5ebdab46eff279be86d2b4afbc Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-12-13openpower-occ-control.inc: bump versionAndrew Geissler1-1/+1
Change-Id: I8928d1e07fcdd4c66330d7e2e8a4c597fed32b46 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-12-12openpower-occ-control.inc: bump versionAndrew Geissler1-1/+1
Change-Id: I361da3b3d80a380dbe09e6a778b9853519df2c18 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-12-12openpower-occ-control.inc: bump versionAndrew Geissler1-1/+1
Change-Id: If356922a0c8a27d82f0af4dc353122ff28175044 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-12-11Add occ-disable dependency to host-crash and host-timeoutEdward A. James1-0/+10
We need to unbind the occ-hmwon devices when either the host crashes or we get a watchdog timeout on the host. This is so that OCC code can start using the SBE FIFO without contention in the case of a checkstop or other host problem. Change-Id: I9ae3b1539a9eb4240cef74f2198c05b7a1b68380 Signed-off-by: Edward A. James <eajames@us.ibm.com>
2017-11-20openpower-occ-control.inc: bump versionAndrew Geissler1-1/+1
Change-Id: I3b8ff2e2ec6dcba3b19f32bbaaadcc267f75d913 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-11-14openpower-occ-control.inc: bump versionAndrew Geissler1-1/+1
Change-Id: I13b4f9067809f5e33d02df593ef87d627f365398 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-11-07openpower-occ-control.inc: bump versionAndrew Geissler1-1/+1
Change-Id: I2f98c481b7abb2213b71b372ee6428b03076c1d8 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-11-07openpower-occ-control.inc: bump versionAndrew Geissler1-1/+1
Change-Id: I7713619a306ec6f9672895e1556f7ea418fe228c Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-10-27openpower-occ-control.inc: bump versionAndrew Geissler1-1/+1
Change-Id: Iafe15227413b1936b87bb2a90192b60e5ead31f4 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-10-26openpower-occ-control.inc: bump versionAndrew Geissler1-1/+1
Change-Id: Ia6ac3bd2e5e9c3026b28c16031725b6f48ca7c9a Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-10-05Remove the fsi-hub-scan serviceMatt Spinler1-4/+0
The hub scan will be done from within the fsi-scan service. Change-Id: I6bccac926b450a3b46d3067a4c72756ac001de96 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2017-10-04Ensure occ active is asserted after fsi scanAndrew Geissler1-0/+6
During a normal boot, the FSI scan service runs before the occ active assert. However, when the BMC is rebooted and the host is running, need to ensure the occ active assertion does not happen until FSI has been scanned. The OCC active assert causes the openpower-occ-control application to bind to the OCC device. This can not happen until the FSI bus has been scanned. Resolves openbmc/openbmc#2360 Change-Id: I3c5e802f051f72a7ae6c79e414ded16ccac4fa02 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-10-02openpower-occ-control.inc: bump versionAndrew Geissler1-1/+1
Change-Id: Icf014b2d1d3a067a02035977d2c67c6be118f04d Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-09-29openpower-occ-control.inc: bump versionPatrick Williams1-1/+1
Change-Id: I2312f58bc033510433ed5db5748e39623cdd270e Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-09-13openpower-occ-control.inc: bump versionPatrick Williams1-1/+1
Change-Id: I46d3f4b2d9919d56e6b856ee2c518a8aa4bf0b2d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-09-08openpower-occ-control.inc: bump versionPatrick Williams1-1/+1
Change-Id: I3364d2fa2fd5d6518ce72c11a4b949050b904fca Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-09-02openpower-occ-control.inc: bump versionPatrick Williams1-1/+1
Change-Id: I4e84ce5c850efb1139dca452ad2d6730b468a737 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-08-30openpower-occ-control.inc: bump versionPatrick Williams1-1/+1
Change-Id: Ie1806e8b02a59dbcaca0f1a54f6f4c520206f782 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-08-29openpower-occ-control.inc: bump versionPatrick Williams1-1/+1
Change-Id: Ic39e2db578f661173259e12e4837102669b93846 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-08-28Enable OCC Active on BMC reset reloadVishwanatha Subbanna3-6/+29
Post BMC reset reload, if the host is up, then we deem the OCCs are present and hence enable Active state. Fixes openbmc/openbmc#2126 Change-Id: Ife4af19cda0010f55a1067d1b1c1875632ce81aa Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
2017-08-28occ-active:Exit gracefully if occ status object not availableAndrew Geissler1-3/+6
Resolves openbmc/openbmc#2189 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com> Change-Id: I57244e14029c4cfed716208a624b79a83e9e2c83
2017-08-25openpower-occ-control.inc: bump versionPatrick Williams1-1/+1
Change-Id: I567c81acccb06eae76d17684964977472762c00d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-08-25Enable BMC patching from the /usr/local pathMichael Tritz2-2/+4
This commit enables patches from the /usr/local path by replacing absolute paths to /usr/sbin or /usr/bin in every service file with "/usr/bin/env ". Additionally, SyslogIdentifier is added to each file to ensure that journal entries are still distinct. In two cases, service files also had to change due to references to ${{PATH}}, which doesn't work with /usr/bin/env. These references - and the corresponding definitions - were changed to ${{DEVPATH}}. Resolves openbmc/openbmc#2149 Change-Id: I12c5c6e5101eef6820b985a563313836250ff2c7 Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
2017-08-18openpower-occ-control.inc: bump versionPatrick Williams1-1/+1
Change-Id: I51bff72dd3647f3f45ebfaf3956e342173b5f71b Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-08-18Disable OCC active on host stopAndrew Geissler3-0/+44
The OCC active sensor drives the binding and unbinding of the OCC device driver to the OCC's. Need to ensure if the host is stopped for any reason, that the OCC sensors are set to non-active. Resolves openbmc/openbmc#2148 Change-Id: I5e4bc5469ddda16c961b9f46c771c101b7092cd6 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-08-17Generate OCC Sensor mapping during build timeVishwanatha Subbanna3-0/+39
Change-Id: Ieb0ba06bc8875af382b1f8e9ed38ec36eeaece48 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
2017-08-11openpower-occ-control.inc: bump versionPatrick Williams1-1/+1
Change-Id: I3b4168ac416b5779a4bb4fd4fdaf48b1fff85821 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-08-02openpower-occ-control.inc: bump versionPatrick Williams1-1/+1
Change-Id: I19d19033b1d3ccc3427b30921c879be80a2468e4 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-08-02openpower-occ-control.inc: bump versionPatrick Williams1-1/+1
Change-Id: I69b4d6cc6bb56f4217607ab4c54aba7b376b17ba Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-08-01openpower-occ-control.inc: bump versionPatrick Williams1-1/+1
Change-Id: I34c30d135f26d8e4f671b71ca2a81141827d9f32 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-08-01meta-openpower: Define i2c-occ featureLei YU1-0/+2
OpenPOWER P8 systems uses i2c to access occ. Define i2c-occ OBMC_MACHINE_FEATURES and append EXTRA_OECONF in openpower-occ-control.bb so that it compiles with I2C OCC support. Enabled this feature on Palmetto first. Change-Id: I1c07d28494fc5e87e86a3be1bfcfd955770e14e7 Signed-off-by: Lei YU <mine260309@gmail.com>
2017-07-24openpower-occ-control.inc: bump versionPatrick Williams1-1/+1
Change-Id: I776368a666f3ca4f62a5263711c901ea699a9375 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-07-19openpower-occ-control.inc: bump versionPatrick Williams1-1/+1
Change-Id: I4309936aeda5bb4dcffc3be7a4142ef1d61b5480 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-07-18openpower-occ-control.inc: bump versionPatrick Williams1-1/+1
Change-Id: I2e55ace07fa73cc814d7cce12355961af5296149 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-07-07OCC: Update Service nameVishwanatha Subbanna3-2/+4
Since the occ-control daemon now handles more than just pass-through, changing the service name mapping to that functionality. Also added some dependencies needed by latest commit Change-Id: Ie4c1f74e6f417d1754eab13d6a7aa6aaeb09ab7f Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
2017-06-14openpower-occ-control.inc: bump versionPatrick Williams1-1/+1
Change-Id: I15858188d4c753bdeba65f3aeb5986b83cb579d5 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-06-02openpower-occ-control.inc: bump versionPatrick Williams1-1/+1
Change-Id: Ic6f30f29b3f19945e8954f690542f8fb44874a4c Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-05-24openpower-occ-control.inc: bump versionPatrick Williams1-1/+1
Change-Id: Id7f80f5078ae3ebe003fb344b3cece1f172aa3e9 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>