summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-phosphor/chassis
Commit message (Collapse)AuthorAgeFilesLines
* Ensure watchdog is disabled on chassis offAndrew Geissler2017-06-031-0/+7
| | | | | | | | | | If the user elects to do a hard power off on a system via the chassis poweroff target, need to ensure we still disable the host watchdog. This service will now be called in both the host and chassis off targets. Change-Id: I83c8c1b657056dab0dbbaaea0dea230f9c3ade4e Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Only run soft power off when not host requestedAndrew Geissler2017-06-031-0/+1
| | | | | | | | | | | When a power off or reboot is host initiated, do not run the soft power off service. Since the host is the one requesting the action, there's no need to execute the soft off function (notification to host to shutdown). Change-Id: Ia6e833598e6042646e5d5bd17821ed29e141fa6f Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Ensure host-shutdown target calls the host-stop targetAndrew Geissler2017-06-033-0/+5
| | | | | | | | | As a part of the soft power off (host-shutdown) ensure that the host-stop target always gets called. Updated the involved services to ensure they are run in the correct order. Change-Id: I7e9113631786f0d0cb0f89b94c4b97fdc0328e7b Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Combined services to create chassis-running serviceJosh D. King2017-05-245-42/+21
| | | | | | | | | | | | Took the contents of op-reset-pgood-check and op-reset-set-power-on and combined them to create the new service op-reset-chassis-running. Resolves openbmc/openbmc#1337 Change-Id: I6cdb93fcf9f7e701703482ef3dcb8b23ef75cf93 Signed-off-by: Josh D. King <jdking@us.ibm.com> Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Remove hack from skeleton for mboxd workaroundAndrew Geissler2017-05-241-39/+0
| | | | | | | mboxd has been fixed so this workaround is no longer needed Change-Id: I1eca65558c446e982174f1c4af2f484b8fe5c3b8 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Revert "Ensure host-stop target called on chassis-poweroff"Andrew Geissler2017-05-231-8/+0
| | | | | | | | | This reverts commit d75d9c516913bee640e3b4c245e8bd40e0965002. Resolves openbmc/openbmc#1645 Change-Id: Ib73cda8fc970f51e5f4fd6db4cf62b5cc05ae67b Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Ensure host-stop target called on chassis-poweroffAndrew Geissler2017-05-191-0/+8
| | | | | | | | | | | If the chassis-poweroff target is called directly by a user, this change will ensure we properly clean up any host target services Resolves openbmc/openbmc#1310 Change-Id: I476db8dde0740f1b63d2e8ca4b6c661c16c9c73c Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Update chassis reset targets to refactored nameAndrew Geissler2017-05-094-6/+6
| | | | | | | | | During the target name refactor, we missed the chassis reset targets Resolves openbmc/openbmc#1274 Change-Id: Ic6a799314931f0c6b7db0e0b95ac6eec50bfcaac Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Remove host running file on power offAndrew Geissler2017-05-081-0/+1
| | | | | | | | | This file is used after a BMC reset when the host is running to indicate to the host boot services that the host is running. On power off, need to be sure to remove it if present. Change-Id: I5245dd2d3132fe306d14c30b3c50edc73a51221e Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* meta-romulus: Remove P9 host watchdog workaroundLei YU2017-04-251-31/+0
| | | | | | | | Remove the watchdog workaround patch from meta-romulus; And remove the patch itself since no machine is using it anymore. Change-Id: I2a1d8cbce3637562a35f738fce8c6bea2738528c Signed-off-by: Lei YU <mine260309@gmail.com>
* Refactor action target names Host-start-stopJosh D. King2017-04-2010-15/+15
| | | | | | | | | | | | | | | | | | | | | | | The target change is: obmc-chassis-stop -> obmc-host-stop obmc-chassis-start -> obmc-host-start Removed CHASSIS_FMT and CHASSIS_LINK_FMT because they are no longer needed. CHASSIS_POWER_FMT_2 did not change because its used for obmc-chassis-reset. Deleted files obmc-chassis-start@.target and obmc-chassis-stop@.target because they are no longer needed. I moved over their contents to obmc-host-start and obmc-host-stop. Updated phosphor-state-manager.bb and skeleton-rev.bbclass to have correct commit id. Change-Id: I26cba4153038f39d60e8d450a05969a216848abe Signed-off-by: Josh D. King <jdking@us.ibm.com>
* Refactor action target names Power-on-offJosh D. King2017-04-208-13/+13
| | | | | | | | | | | | The target change is: obmc-power-chassis-on -> obmc-chassis-poweron obmc-power-chassis-off -> obmc-chassis-poweroff Also updated phosphor-state-manager.bb to now have correct commit id. Change-Id: I15aae803e5f0d44d4e6a137278f93e91f848b2c0 Signed-off-by: Josh D. King <jdking@us.ibm.com>
* Move FSI recipe and services to meta-openpowerMatt Spinler2017-04-125-72/+0
| | | | | | | FSI is an OpenPower concept. Change-Id: I0043d6d7b4783179b0893bbf7995aa229df2463f Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Add a timeout to poweron service to prevent hangDhruvaraj S2017-03-271-0/+1
| | | | | | | | | Ensure we go to quiesce state on a pgood timeout resolves openbmc/openbmc#1321 Change-Id: I53d71f7629767194d20c06e773fb96b64db1bb85 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* Do not run host start targets if host already onAndrew Geissler2017-03-251-0/+1
| | | | | | | | | | | | This is the first commit in a series that will ensure we do not run the host start services when the host is already running. Specifically this is to handle the situation where the host is running and the BMC is rebooted. Change-Id: I6c6a99a3c2aefff338c2eafe546a525999c357b4 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Templatize host-failure-reboots serviceMatt Spinler2017-03-163-14/+19
| | | | | | | | This service touches a host0 setting, so it needs to be a template and touch host%i. Change-Id: I9cf84ec40f5fe3aa1ad2c420aaa26d522eece6e1 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Add FSI enable/disable services for cronus useMatt Spinler2017-03-166-16/+57
| | | | | | | | | | | Start fsi-disable.service to unbind the FSI Driver. Start fsi-enable.service to bind it again and rescan. Also added a fsi-bind@.service so we can ensure the driver is bound each power on. Change-Id: I5fa62b44994aea3bb645e755187f29e720bf3bce Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Service for enabling/disabling host failure rebootsMatt Spinler2017-03-152-0/+22
| | | | | | | | | Wraps the auto_reboot host setting in a service so it can be enabled or disabled by starting or stopping the service. Change-Id: Ib3e92f67eb833cd6e31e153b58a63edb6837ae2c Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Automatically check for chassis power on BMC rebootAndrew Geissler2017-03-153-1/+29
| | | | | | | | | | | | Run the obmc-chassis-reset@.target: - Check if pgood is on - If it is, create the file in /run/openbmc/chassis@%i-on and - Run the systemctl command to start the chassis power on target Resolves openbmc/openbmc#1094 Change-Id: I93f94fc1b75e35fd353387d0bed5569e07615171 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Targets and services to check for pgood on bmc resetAndrew Geissler2017-03-153-0/+45
| | | | | | | | | | Once enabled these targets and services will be run after a BMC reboot to check if pgood is on and if so, to create a file which will be used by other power on services to know whether they need to run or not. Change-Id: Id2e75f9bce20f362d2f57a79e91ece1eaf7d7c45 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Do not run chassis power target services if power onAndrew Geissler2017-03-153-0/+3
| | | | | | | | | | | | This is the first commit in a series that will ensure we do not run the chassis power on services when the chassis is already on. Specifically this is to handle the situation where the chassis is on and the BMC is rebooted. Change-Id: I733ca076f044731a4ba327fe2f46302dce5f4edd Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Ensure FSI scan runs before services that use FSIMatt Spinler2017-03-011-0/+2
| | | | | | | | The FSI scan must be done before start_host and vcs_workaround run in order for them to work propertly. Change-Id: I1305a65763ba35721d5655f1f3e6c2d8af5fdc71 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Add service to trigger OpenFSI driver to do a scanMatt Spinler2017-02-242-0/+28
| | | | | | | | After PGOOD comes up, the FSI driver needs to do a scan to find the FSI devices. Change-Id: I1b4eeec191408a36b37d9044279bdf067deb2b15 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* skeleton-rev.bbclass bump & disable watchdog patchMichael Tritz2017-02-211-22/+20
| | | | | Change-Id: I57d8b7371c33f3fac7e286d14deafcaf91020b26 Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
* Make op-power-start a oneshot serviceAndrew Geissler2017-02-151-0/+1
| | | | | | | | oneshot will cause the target to fail, which is what we want on service failures Change-Id: I1c3fe7159af51e92a2d0f4a7361e5e828675515d Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Change wants to requires for all critical servicesAndrew Geissler2017-02-152-10/+10
| | | | | | | | In order for targets to fail when their services fail, the relationship must be a "requires" Change-Id: I1523dd51af8817b473557bac65e9e71eacecf52e Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* openpower-p9: Add delay in a reboot so mbox-reload can runMatt Spinler2017-02-021-0/+39
| | | | | | | | | | A quick fix to ensure that mbox-reload.service has a chance to run after the power off and before the power on during a reboot. An upcoming refactoring will remove the need for this patch. Change-Id: Ieee0573e9bd4dec518361da9244d95a27357abd3 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Make chassis start/stop depend on chassis power on/offAndrew Geissler2017-02-015-17/+17
| | | | | Change-Id: I5e4a0da68bfcebb12f3ac4161e63c145f9f73b0a Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Move chassis power on/off services into new targetsAndrew Geissler2017-02-011-2/+16
| | | | | Change-Id: I42049c092e4a852b94b6d3f96b9dea3884c21333 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Make checkstop service wait for system managerMatt Spinler2017-01-241-0/+2
| | | | | | | | | | Don't start the host checkstop reboot service until the system manager service has been started. Resolves openbmc/openbmc#603 Change-Id: Ideca52faaa2d7347c66fa719dc4b8f8f6b24aedf Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* openpower-p9: disable host watchdogPatrick Williams2017-01-191-0/+33
| | | | | | | | | | Hostboot currently does not have IPMI support enabled on P9 systems. Therefore, we need to disable the host watchdog. Temporary workaround to be removed with openbmc/openbmc#993. Change-Id: I875a3927af6ec34d2caf4c694b0a89c35a2bff74 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Fix typo in op-wait-power-offAndrew Geissler2016-12-221-1/+1
| | | | | Change-Id: Iaf582464f1a6311cda2d96c921ad27bc28ec9686 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Rename obmc-mapper -> phosphor-mapperBrad Bishop2016-10-121-3/+1
| | | | | | | To meet naming conventions. Change-Id: I7ce975dca7c5371ff3fa503a75bbaadd8457d05b Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Fixup inventory generation dependenciesMatt Spinler2016-09-211-1/+1
| | | | | | | Resolves openbmc/openbmc#567. Change-Id: I68e8e726f839038a6a256ff18a88d936ab0af3e4 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* remove manager classesBrad Bishop2016-09-141-1/+3
| | | | | | | | | | | The value added by these classes is minimal and lowers the flexibility available to clients using them when it comes to packaging. Rename recipe virtuals - obmc-phosphor seems redundant. Align package virtual names with best practices (virtual-package). Change-Id: I34c3cb03f6b1d2aaa734ed02078b388667f70917 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Update service unit descriptionsBrad Bishop2016-09-131-1/+1
| | | | | | | Going for consistency: Phosphor xxx Change-Id: I04778ed868874ef5004724bc6b31adc4aa2367ad Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Use systemd substitutionsBrad Bishop2016-09-131-2/+2
| | | | | | | | Make use of the new substitution feature in the Phosphor systemd bitbake class. Change-Id: I2db85347809ef557a53e92af3ffcf17c8003b3ce Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Drop obmc-phosphor- prefix from recipe collectionsBrad Bishop2016-09-1227-0/+416
Given that these are already in the recipes-phosphor directory this seemed redundant. Change-Id: I48a1ab79e0eda88fc5e6af88f198ca3941e829b8 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
OpenPOWER on IntegriCloud