summaryrefslogtreecommitdiff
path: root/meta-phosphor/common/recipes-phosphor/chassis
AgeCommit message (Collapse)AuthorFilesLines
2018-07-16Fix to speed up boot to BMC Ready stateTom Joseph1-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>
2018-06-25Remove use of mapper callBrad Bishop2-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>
2018-04-06Introduce new host-startmin action targetAndrew Geissler3-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>
2018-04-02Remove legacy inventory service from startupAndrew Geissler2-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>
2018-03-01Keep fan services running until poweroff completesMatthew Barth2-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>
2018-02-08Run legacy services with lowest priorityAndrew Geissler2-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>
2018-01-17Fix compile issue for X86 SDKAndrew Geissler1-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>
2017-11-27Add required package "pkgconfig"Saqib Khan4-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>
2017-10-05Inventory: Make changes for sync inventory for witherspoonRatan Gupta1-2/+0
Add the environment file for witherspoon Resolves openbmc/openbmc#2361 Change-Id: Id2aabb9e4c484e081f38f1afb33157e64a8453dd Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
2017-09-11U-boot inventory update, updated PROPERTYDinesh Chinari1-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>
2017-08-25Enable BMC patching from the /usr/local pathMichael Tritz12-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>
2017-08-07host-failure-reboot: use new AutoReboot settingDeepak Kodihalli1-4/+4
Change-Id: Ie35532b997b7812736519a2e385fc74d32fd6230 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
2017-07-21Implement new hard power off targetAndrew Geissler1-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>
2017-06-15Watchdog: Remove old host watchdogVishwanatha Subbanna4-75/+0
Change-Id: I44f248dbe23fe89512aab29da9a38fd56c793287 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
2017-06-13Replace old gpio-monitor with new oneVishwanatha Subbanna2-25/+0
Change-Id: I8f96987ab61d7657c3ccd3d665fa34ed6cb508ec Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
2017-06-03Ensure watchdog is disabled on chassis offAndrew Geissler1-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>
2017-06-03Only run soft power off when not host requestedAndrew Geissler1-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>
2017-06-03Ensure host-shutdown target calls the host-stop targetAndrew Geissler3-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>
2017-05-24Combined services to create chassis-running serviceJosh D. King5-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>
2017-05-24Remove hack from skeleton for mboxd workaroundAndrew Geissler1-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>
2017-05-23Revert "Ensure host-stop target called on chassis-poweroff"Andrew Geissler1-8/+0
This reverts commit d75d9c516913bee640e3b4c245e8bd40e0965002. Resolves openbmc/openbmc#1645 Change-Id: Ib73cda8fc970f51e5f4fd6db4cf62b5cc05ae67b Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-05-19Ensure host-stop target called on chassis-poweroffAndrew Geissler1-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>
2017-05-10Update chassis reset targets to refactored nameAndrew Geissler4-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>
2017-05-08Remove host running file on power offAndrew Geissler1-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>
2017-04-25meta-romulus: Remove P9 host watchdog workaroundLei YU1-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>
2017-04-20Refactor action target names Host-start-stopJosh D. King10-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>
2017-04-20Refactor action target names Power-on-offJosh D. King8-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>
2017-04-13Move FSI recipe and services to meta-openpowerMatt Spinler5-72/+0
FSI is an OpenPower concept. Change-Id: I0043d6d7b4783179b0893bbf7995aa229df2463f Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2017-03-27Add a timeout to poweron service to prevent hangDhruvaraj S1-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>
2017-03-25Do not run host start targets if host already onAndrew Geissler1-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>
2017-03-17Templatize host-failure-reboots serviceMatt Spinler3-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>
2017-03-16Add FSI enable/disable services for cronus useMatt Spinler6-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>
2017-03-16Service for enabling/disabling host failure rebootsMatt Spinler2-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>
2017-03-15Automatically check for chassis power on BMC rebootAndrew Geissler3-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>
2017-03-15Targets and services to check for pgood on bmc resetAndrew Geissler3-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>
2017-03-15Do not run chassis power target services if power onAndrew Geissler3-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>
2017-03-01Ensure FSI scan runs before services that use FSIMatt Spinler1-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>
2017-02-25Add service to trigger OpenFSI driver to do a scanMatt Spinler2-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>
2017-02-21skeleton-rev.bbclass bump & disable watchdog patchMichael Tritz1-22/+20
Change-Id: I57d8b7371c33f3fac7e286d14deafcaf91020b26 Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
2017-02-16Make op-power-start a oneshot serviceAndrew Geissler1-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>
2017-02-16Change wants to requires for all critical servicesAndrew Geissler2-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>
2017-02-02openpower-p9: Add delay in a reboot so mbox-reload can runMatt Spinler1-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>
2017-02-01Make chassis start/stop depend on chassis power on/offAndrew Geissler5-17/+17
Change-Id: I5e4a0da68bfcebb12f3ac4161e63c145f9f73b0a Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-02-01Move chassis power on/off services into new targetsAndrew Geissler1-2/+16
Change-Id: I42049c092e4a852b94b6d3f96b9dea3884c21333 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-01-24Make checkstop service wait for system managerMatt Spinler1-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>
2017-01-20openpower-p9: disable host watchdogPatrick Williams1-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>
2016-12-22Fix typo in op-wait-power-offAndrew Geissler1-1/+1
Change-Id: Iaf582464f1a6311cda2d96c921ad27bc28ec9686 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2016-10-12Rename obmc-mapper -> phosphor-mapperBrad Bishop1-3/+1
To meet naming conventions. Change-Id: I7ce975dca7c5371ff3fa503a75bbaadd8457d05b Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2016-09-21Fixup inventory generation dependenciesMatt Spinler1-1/+1
Resolves openbmc/openbmc#567. Change-Id: I68e8e726f839038a6a256ff18a88d936ab0af3e4 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2016-09-14remove manager classesBrad Bishop1-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>