summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-phosphor/chassis
Commit message (Collapse)AuthorAgeFilesLines
* Move RCS specific layers to correct location for latest OpenBMCTimothy Pearson2019-04-252-18/+0
|
* Add obmc-hardbeep packaging filesRaptor Engineering Development Team2019-04-251-0/+9
|
* Add softbeep packaging filesRaptor Engineering Development Team2019-04-251-0/+9
|
* meta-phosphor: Move layer content from common/Brad Bishop2018-09-0625-467/+0
| | | | | | | | | | | Adopt a more conventional directory hierarchy. meta-phosphor is still a _long_ way from suitable for hosting on yoctoproject.org but things like this don't help. (From meta-phosphor rev: 471cfcefa74b8c7ceb704cb670e6d915cf27c63b) Change-Id: I3f106b2f6cdc6cec734be28a6090800546f362eb Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Spelling fixesGunnar Mills2018-09-051-1/+1
| | | | | | | | | | | | Spelling errors found using github.com/lucasdemarchi/codespell A tool to fix common misspellings. This tool is licensed under GNU General Public License, version 2. (From meta-phosphor rev: 38f27112a9bc38337d8f4c63c333d2a1f28945fa) Change-Id: I834b99d63a260f21c60b58c91ec328cf04b683fe Signed-off-by: Gunnar Mills <gmills@us.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Fix to speed up boot to BMC Ready stateTom Joseph2018-07-161-1/+0
| | | | | | | | | | | The legacy services(like system and chassis) was assigned nice value of 19 to alleviate CPU stress at boot time. The systemd bootchart showed that many services are dependedent on the system service. The nice is set to default value of 0 and there is a consistent improvement of ~10 sec in BMC getting to ready state. Change-Id: I8f9f76da0a36c136243026aa7d7691e814634987 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Remove use of mapper callBrad Bishop2018-06-252-4/+4
| | | | | | | | | Replace invocations of mapper call with a call to busctl and mapper get-service. This provides equivalent functionality but opens the door for dropping a systemd patch we have carried for some time. Change-Id: Iea0cce89341939b49b095d1f5010415578331d4d Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Introduce new host-startmin action targetAndrew Geissler2018-04-063-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Remove legacy inventory service from startupAndrew Geissler2018-04-022-16/+0
| | | | | | | | | | | | openbmc/phosphor-inventory-manager has replaced this implementation of inventory on OpenBMC. There will be follow on commits to completely remove this package from OpenBMC, for now remove the main python application and its legacy DBUS object. Change-Id: I4f81c3b58c9dbde557ee1ba1de1fb128dac8e33e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Keep fan services running until poweroff completesMatthew Barth2018-03-012-0/+26
| | | | | | | | | | | | | | | | | All the fan services associated with controlling, monitoring and presence detection of fans need to remain active until a poweroff completes. This helps ensure thermal safety while a system is in transition to a powered off state. With the introduction of this new target (which runs last in the power off path), need to move the host reset service to running after it to ensure the power on in the reboot path does not start until the last power off target runs. Resolves openbmc/openbmc#2762 Change-Id: I4ca671d2c7de66e8bfa4bba607b06c88c0a6e7f9 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Run legacy services with lowest priorityAndrew Geissler2018-02-082-0/+4
| | | | | | | | | | | | | | | The early boot of the BMC sees a lot of processes start at the same time (right after mapper completes). The loading of these legacy python services contributes a lot of un-needed workload to the CPU during this time. The eventual goal is to simply remove these services but until that is done, ensure they run with the lowest priority. Resolves openbmc/openbmc#2825 Change-Id: I71e14b02ec943ebe3f64e1818c4fbd7699e690bf Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Fix compile issue for X86 SDKAndrew Geissler2018-01-171-0/+2
| | | | | | | | | | | Some systems do not have a workbook in skeleton so modify the obmc-mgr-inventory recipe to just use an empty one in these cases. Resolves openbmc/openbmc#1477 Change-Id: Ib634e70d002194f2a5d0428b4f1df947948fd6c9 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Add required package "pkgconfig"Saqib Khan2017-11-274-0/+4
| | | | | | | | | | This package is required for the following receipes in yocto-2.3. Otherwise we get the error: "fatal error: gio/gio.h: No such file or directory" Change-Id: I020c8f31d707da716956b7856ba14076294bd7c7 Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* Inventory: Make changes for sync inventory for witherspoonRatan Gupta2017-10-041-2/+0
| | | | | | | | | Add the environment file for witherspoon Resolves openbmc/openbmc#2361 Change-Id: Id2aabb9e4c484e081f38f1afb33157e64a8453dd Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* U-boot inventory update, updated PROPERTYDinesh Chinari2017-09-111-1/+1
| | | | | | | | | Updated PROPERTY value in both io_board file to MACAddress and motherboard to uuid. Updated obmc-sync-inventory-item@.service input parameters. Change-Id: I5cc34ff449116d647331656bd81b2e4b07d3ea41 Signed-off-by: Dinesh Chinari <chinari@us.ibm.com>
* Enable BMC patching from the /usr/local pathMichael Tritz2017-08-2412-12/+24
| | | | | | | | | | | | | | | | | 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>
* host-failure-reboot: use new AutoReboot settingDeepak Kodihalli2017-08-071-4/+4
| | | | | Change-Id: Ie35532b997b7812736519a2e385fc74d32fd6230 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Implement new hard power off targetAndrew Geissler2017-07-211-4/+12
| | | | | | | | | | | | | | | This target will allow the user to do an immediate power off of the system without waiting for the host. It can also be used to cause an immedate power off if the host is hung during the normal power off process. The chassis poweroff target will now require the host off target to ensure everything is properly stopped when the chassis is powered off. Change-Id: I8430d895ae5498d2e451aaf07480b0cf9550e8f2 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Watchdog: Remove old host watchdogVishwanatha Subbanna2017-06-154-75/+0
| | | | | Change-Id: I44f248dbe23fe89512aab29da9a38fd56c793287 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Replace old gpio-monitor with new oneVishwanatha Subbanna2017-06-132-25/+0
| | | | | Change-Id: I8f96987ab61d7657c3ccd3d665fa34ed6cb508ec Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* 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 on IntegriCloud