summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* pytools: obmcutil: Rename bus_name to busAndrew Jeffery2017-10-161-2/+2
| | | | | Change-Id: Ida2cbe57d83785e2c8c196b55351d89805590169 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* pytools: obmcutil: Rename bus to dbus_busAndrew Jeffery2017-10-161-2/+2
| | | | | Change-Id: Ia78317bd76f70bb3f701bfad6e262438ea061d6c Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* op-pwrctl: Use new BootProgress sensorLei YU2017-10-161-7/+34
| | | | | | | | | | | The pci_reset_out depends on BootProgress sensor to release the reset hold. The /org/openbmc/sensors/host/BootProgress object is deprecated and we should use /xyz/openbmc_project/state/host0 now. Update the code to use new object and it fixes the P8 PCI reset issues. Change-Id: I97b311b548c4e8d081820f488dc2a8b40a41cf1c Signed-off-by: Lei YU <mine260309@gmail.com>
* pytools: obmcutil: Rename intf_name to ifaceAndrew Jeffery2017-10-161-4/+4
| | | | | Change-Id: Iddd77221c768c5ce5d2f36dc98b640b7df9c5553 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* pytools: obmcutil: Rename intf to dbus_ifaceAndrew Jeffery2017-10-161-5/+5
| | | | | Change-Id: Ic1e554136be3b7a3afa213b20e4aea69194c856f Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* pytools: obmcutil: Rename obj_path to objAndrew Jeffery2017-10-161-2/+2
| | | | | Change-Id: I144def3cc221e923e3c3e10c6d8aadddeb88fea1 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* pytools: obmcutil: Rename obj to dbus_objAndrew Jeffery2017-10-161-3/+3
| | | | | Change-Id: I9a8b47d862690c5bba4b5e12b9835ad8dd86954d Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* pytools: obmcutil: Put script into a main() methodAndrew Jeffery2017-10-161-49/+53
| | | | | | | | This is more python hygiene than anything required - it makes the module importable without running arbitrary code at import time. Change-Id: I7f5d8056fa553f484076299823716f73e5c7ead2 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* pytools: obmcutil: Drop commandline method supportAndrew Jeffery2017-10-161-82/+4
| | | | | | | | None of the specified DBus objects have the 'method' property any longer, so drop the code supporting it and cleanup the resulting cruft. Change-Id: I9c66226c233e082e9d518310b62b0641ba410532 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* bmc_update.py: Call fw_setenv twice for PrepareForUpdateAdriana Kobylak2017-10-021-0/+7
| | | | | | | | | | | | | | | Support for u-boot redundant environment variables was added where u-boot alternates writing to each environment every time an variable is written. But initramfs doesn't know which environment is active so it always reads from the same one. Therefore need to twice set the environments that initramfs reads so that they're written to both environments and initramfs can read it. Part of openbmc/openbmc#2292 Change-Id: Ifaa9a55067cdd2f42b534b680809552f6574a56a Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Remove pci_reset from witherspoon configAndrew Geissler2017-09-121-5/+1
| | | | | | | | | | | This pci_reset config causes intermittent network drop issues on witherspoon. openbmc/openbmc#2288 tracks getting to root cause of this network issue. Resolves openbmc/openbmc#2228 Change-Id: I3275f9b231c125cea45e3fa0cd302469343bd654 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* flashbios: Do not expect the full path to the executableAdriana Kobylak2017-09-111-18/+2
| | | | | | | | | | | | | | | The service file that starts the bios flasher was changed from specifying the path /usr/sbin/<flasher> to just <flasher> to allow the service file to find the binary on any directory specified by PATH and enable patching on a read-only filesystem. Remove the parsing of the path from the code, and change execl to execlp which gets the path from the PATH env variable. Resolves openbmc/openbmc#2271 Change-Id: I2b74e287e1e5db8feb96bfe51a0a73d999ba43c2 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Correct the PS Derating & PS redundancy sensor numbers.Tom Joseph2017-09-011-4/+4
| | | | | Change-Id: I5db50fc156005aa901714e370cf75a4d5455d4cb Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* SyncInventory: Move to the xyz namespace for property macRatan Gupta2017-08-301-12/+36
| | | | | Change-Id: I1db7b44d8fdff7876af83c8fb24fc77b5c7c61b7 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* U-boot script update with new inventory objectDinesh Chinari2017-08-281-59/+72
| | | | | | | Updated new inventory objects in u-boot fw_env scripts. Change-Id: I9545f29f603e2fc46424d44df45ca82379df5ecb Signed-off-by: Dinesh Chinari <chinari@us.ibm.com>
* pysystemmgr: Fix pci_reset_outsLei YU2017-08-221-1/+1
| | | | | | | | | The pcie_reset_outs is incorrect and cause the PCIE reset functionality broken. Fix this by correctly parsing the GPIO config table. Change-Id: I14bef6eba32c43fcc8e13ec956ad2e171d3e90b8 Signed-off-by: Lei YU <mine260309@gmail.com>
* obmcutil to get get bootprogress from xyz interfaceGeorge Keishing2017-08-181-3/+4
| | | | | Change-Id: I3524ef2bba925d81c9746cfa12c16706dcecad5a Signed-off-by: George Keishing <gkeishin@in.ibm.com>
* bmc_update: explictly save firmware environmentMilton Miller2017-08-151-1/+20
| | | | | | | | | | | | | | | Find the file to copy from the firmware environent config, and assume the complete file should be saved as an image to the u-boot-env mtd partition. Preserve network settings has worked to save the u-boot-env by copying the runtime copy of the env saved by the initramfs init script to /run/fw_env. That copy was created as a workaround for a flash erase problem that can not be created with the current driver. Change-Id: Ie42ddbb4f821447349f70ab21d1333194aba08cf Signed-off-by: Milton Miller <miltonm@us.ibm.com>
* pyflashbmc: Remove initramfs from list of expected imagesMilton Miller2017-08-151-1/+0
| | | | | | | | | | | | Remove the no longer present initramfs image as the initramfs is no longer stored in a seperate partition. Individual flash partition updates have not worked via rest (Update will return "Unpack Error") since the switch to storing the initramfs in the FIT image. Change-Id: Ie01fc18704fca2296cb7436dfea07ba4773a0ace Signed-off-by: Milton Miller <miltonm@us.ibm.com>
* Update button press handlers to new targetsAndrew Geissler2017-08-021-5/+4
| | | | | | | | | | | | The targets have changed within openbmc for hard power off and soft power down. This file will be deprecated some day but for now it needs to be in sync with the new targets. Resolves openbmc/openbmc#1593 Change-Id: I1e2949c67fd9b4756a6f18070eea63c8b161c7bf Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* chassis: Remove sensor subscriptionBrad Bishop2017-07-071-23/+0
| | | | | | | | Remove a signal subscription from the deprecated org.openbmc.SensorThresholds interface. Change-Id: I75d83324ada77642a8f560b4250fb24190dc540a Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* configs: Remove all HWMON_CONFIGs and sensorsBrad Bishop2017-07-068-714/+0
| | | | | | | | The xyz sensor namespace is fully functional. Remove legacy HWMON_CONFIGs and association sensor references. Change-Id: I71ce7627e72d23f3729690260103e925e4d11329 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* hwmon: RemoveBrad Bishop2017-07-065-180/+0
| | | | | | | | Remove the legacy pyhwmon application. Its functionality has been replaced by phosphor-hwmon. Change-Id: Icbba91cd7d0841b3fc74eec280455edaa79af1f6 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Remove references to old watchdog objectVishwanatha Subbanna2017-06-211-50/+0
| | | | | | | | | | | | | | | | | | | Enabling the Watchdog was moved to systemd unit and hence doing so from here needs to be removed. Currently, Host Power on target launches phosphor watchdog in Disabled state. However, there was an inadvertent change that removed the unit that was enabling Watchdog during power on. It was getting enabled a little later as part of host sending SET_WATCHDOG command. However, deferring Enable until then will result in very early Host hangs going undetected and a fix will be put to address that. Fixes openbmc/openbmc#1822 Change-Id: I290d84ecc991c258f5fb925b5c073922e2e1868b Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Remove hostwatchdogVishwanatha Subbanna2017-06-133-183/+0
| | | | | | | | Host Watchdog has been refactored now and hence this needs to be deleted. Change-Id: Ib0fc60e9fdf1daf8156b33127b4a574022d52067 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Remove hostcheckstopVishwanatha Subbanna2017-06-083-207/+0
| | | | | | | | Host Checkstop monitor has been refactored now and hence this needs to be deleted. Change-Id: I6fffd499420589f893ac44d366ecbdd60cc742ad Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add chassis power on/off to obmcutilAndrew Geissler2017-05-191-0/+14
| | | | | | | | | | | | | The recent refactoring of the systemd target names to power on and off the chassis had a significant impact to openpower partners because they'd encoded the systemctl command to power on just the chassis into a lot of instructions and scripts. There's no guarantee the team won't do this again in the future so a wrapper around the command for this function makes sense to have. Now if the target name changes, it's all abstracted within obmcutil. Change-Id: Ib7b1907cf4618cf0985f76f2c5f5c5e04d4c162f Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Create Lanyang configKen Chen2017-05-021-0/+400
| | | | | Change-Id: Ie5ef0cfea6edf4242f9962be8a752b7a0f2c2ba7 Signed-off-by: Ken Chen <chen.kenyy@inventec.com>
* obmcutil: Remove most old org.openbmc commandsPatrick Williams2017-04-261-62/+0
| | | | | | | Fixes openbmc/openbmc#1522. Change-Id: Icbbc67f712f70e408207b7fb4cec3e70992009b3 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Refactor action target names Host-quiesceJosh D. King2017-04-111-1/+1
| | | | | | | | The target change is: obmc-quiesce-host -> obmc-host-quiesce Change-Id: I713c9c694fbc5b45e0ee86c0e7ccc7f544bc823c Signed-off-by: Josh D. King <jdking@us.ibm.com>
* Refactor action target names Host-start-stopJosh D. King2017-04-111-2/+2
| | | | | | | | | The target change is: obmc-chassis-stop -> obmc-host-stop obmc-chassis-start -> obmc-host-start Change-Id: Ibba1e8d56e8d911dca309a6e6dc9ad3335bb644d Signed-off-by: Josh D. King <jdking@us.ibm.com>
* Fix Romulus power and reset buttonLei YU2017-04-061-2/+2
| | | | | | | | | | | | The POWER_BUTTON and RESET_BUTTON direction needs to be set to `both`, otherwise there is no interrupt generated and thus the buttons do not work. Change the direction to `both` fix the issue. Fixes openbmc/openbmc#1437 Change-Id: If586dd2e44aa2a8790f045d1e37f4d8f3ea210c8 Signed-off-by: Lei YU <mine260309@gmail.com>
* Update Power Supply Redundancy Sensor D-Bus interface name.Jayanth Othayoth2017-03-301-1/+1
| | | | | | | Resolves openbmc/openbmc#1213 Change-Id: Iea56a41e20ea15df13e2775f3d73af2eed608da7 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Fix syntax error in discover_system_state.pyJayanth Othayoth2017-03-301-0/+1
| | | | | | | Resolves openbmc/openbmc#1409 Change-Id: I5d86d09859935b44e7f0d7019620cbfa50bddf0f Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* LED: Remove methods used to set and clear Identify LEDs.Vishwanatha Subbanna2017-03-302-27/+1
| | | | | | | | | Now that the LED Group manager support is in, the users can make a call to phosphor-ledmanager and assert the Identify group and hence this code in here is not needed. Change-Id: I7c268710ee8806215c60015d6b39a0ef19601fd0 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add IPMI Sensor support for Power Supply Derating.Jayanth Othayoth2017-03-292-1/+8
| | | | | Change-Id: I099198a74fc84024eb24e84985df67f0738a0627 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Add IPMI sensor for Turbo Allowed.Jayanth Othayoth2017-03-282-0/+6
| | | | | Change-Id: I2b84147e4dae5bb0ef1ea4b58b80e3bd152f5389 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Added Power Supply Redundancy Sensor support for WitherspoonDhruvaraj S2017-03-272-0/+8
| | | | | Change-Id: Ie007597516d9da00b6bbe6be56084bf4ac790a19 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* Revert "Fix for Failing to recover from pgood timeout"Patrick Williams2017-03-211-1/+1
| | | | | | | | | | | This reverts commit e2babdb30796fa23ab676eef2a4f6bdf2e043a13. Original change is causing other problems reported via openbmc/openbmc#1321. Change-Id: Ib61329fb0ac6d807f9cde5fb1d63d76fd04d0faf Signed-off-by: Dhruvaraj S <dhruvaraj@in.ibm.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Move object_mapper per dbus path conventions.Leonel Gonzalez2017-03-202-2/+2
| | | | | | | Partial fix for openbmc/openbmc#1112. Change-Id: If4eb2036cdfc1d81578fd70ae0360cc39c7deca4 Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
* Fix for Failing to recover from pgood timeoutDhruvaraj S2017-03-131-1/+1
| | | | | | | | | | Fixing the failure in recovery from timeout which was due to not informing back the timeout condition correctly. Resolves openbmc/openbmc#1239 Change-Id: I1554c71eba134195be003a7fa5d5c98a35b51d05 Signed-off-by: Dhruvaraj S <dhruvaraj@in.ibm.com>
* Add bmc, chassis, and host states to obmcutilAndrew Geissler2017-03-091-49/+81
| | | | | | | Remove the use of system state from obmcutil Change-Id: Ia74b68d945fce7526aa4bbc62cda4ad242cdec25 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Romulus.py: Fix some sensor numbersLei YU2017-03-091-82/+133
| | | | | | | | | | | Sync sensor numbers with hostboot. Note: * Some sensors are not avaialbe yet so commented; * OCC is not enabled yet so they are unchanged. Change-Id: I51373f73e5e399dbfe2c3fbdcd1abadd84b669d3 Signed-off-by: Lei YU <mine260309@gmail.com>
* op-pwrctl: Make latch transparent briefly, only after state changesXo Wang2017-03-071-25/+36
| | | | | | | | | | | | | | | | | | | The Zaius motherboard has latches between BMC control pins to power up the host and the input pins to the power sequencer. This allows BMC resets to not interrupt power to the host. Currently, the latches are made transparent prior to sampling the power state of the system, which causes BMC boot to kill host power. In addition the latches remain transparent, so the system can be brought down by the BMC shutting down. Enable the latches only after power control pins change state. Enable the latches only momentarily. After this change, Zaius BMC can reboot without taking down its host. Signed-off-by: Xo Wang <xow@google.com> Change-Id: If150cbcf3fabda359d1ce94602c40cb96741e869
* configs: don't use old sysfs path for i2c devicesJoel Stanley2017-03-066-11/+11
| | | | | | | | | | | | | | | | | | | | | The Machine.py files in skeleton hard code the sysfs path to the devices. The hardcoded paths use the old i2c-adapter directory which is only around for old userspace. From the Kconfig help text: Say Y here if you intend to run lm-sensors 3.1.1 or older, or any other user-space package which expects i2c adapters to be class devices. If you don't know, say Y. Symbol: I2C_COMPAT [=y] Type : boolean Prompt: Enable compatibility bits for old user-space Instead use /sys/bus/i2c/devices. Fixes openbmc/openbmc#1252 Change-Id: Iaa9ef96e150084d9a605d5cab8053ddc910cfeaf Signed-off-by: Joel Stanley <joel@jms.id.au>
* Fix org.openbmc.ObjectMapper referencesBrad Bishop2017-02-252-6/+6
| | | | | | | | Fix up a couple applications that were missed when we switched over to xyz.openbmc_project.ObjectMapper. Change-Id: I84cf5d7280be14be245d0a979c189b48076ee4bf Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* hwmon: Remove journal spamBrad Bishop2017-02-211-3/+0
| | | | | | | Remove 'Warning - unhandled hwmon' Change-Id: Idabc312ae4ae9d8a206712b147c2db2a433bcdc8 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Witherspoon.py: Fix some sensor numbersMatt Spinler2017-02-211-23/+24
| | | | | | | | Fixed a few sensor numbers to match reality. Didn't fix them all, as this is all being refactored anyway. Change-Id: Ic01fd7493aa77292401b1daf175019556b0431fc Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Go to quiesce state on checkstop/watchdog errorMichael Tritz2017-02-202-10/+17
| | | | | | | | | This change alters the behavior on a host checkstop or watchdog error. Instead of simply rebooting, go to the new quiesce state. Change-Id: I4dd3a3d7a91607fc56a684873115d5f32de18f6a Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
* Zaius.py: Fix sensor numbersMatt Spinler2017-02-071-71/+119
| | | | | | | | | | | | | Change the sensor numbers to match what hostboot is using. The correct BootProgressSensor is required for the checkstop reboot monitor to work. This also involved adding some new inventory objects for the additional cores on P9 so that all cores can have their presence property correctly set on their corresponding inventory objects. Change-Id: I509b14abcf6bf28ffb5b3d96b342394e159f3090 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
OpenPOWER on IntegriCloud