summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* flasher: Remove flash tuned messageJoel Stanley2016-11-041-4/+0
| | | | | | | | The kernel handles all tuning when accessing via mtd so this message is incorrect. Change-Id: I173fc54231a67aeb8b4305b2a333674f8e00d7df Signed-off-by: Joel Stanley <joel@jms.id.au>
* flasher: Unify flash setup functionsJoel Stanley2016-11-041-35/+17
| | | | | | | | | | They almost perform the same codepath, so unify them. This is in preparation for the upcoming libflash API change, they will call the same setup function. Change-Id: If41592f3dc0c5d98db34e7a25ef2f884b031695c Signed-off-by: Joel Stanley <joel@jms.id.au>
* flasher: Use BMC_MTD to represent bmcJoel Stanley2016-11-041-8/+8
| | | | | | | | We were using a boolean to say "yep, we're talking to the BMC flash". Use the enum that is provided by libflash to do this. Change-Id: If40ac3ee64c0827693c93c64ea18a0a34ef79a46 Signed-off-by: Joel Stanley <joel@jms.id.au>
* flasher: unify cleanup commandsJoel Stanley2016-11-041-9/+3
| | | | | | | | Now that we don't do locking there is no difference between the bmc and pnor cleanups. Change-Id: I5fe9d33ce799a84123f9e146e6856dbaa6684b1f Signed-off-by: Joel Stanley <joel@jms.id.au>
* flasher: Remove relocking of flashJoel Stanley2016-11-041-16/+4
| | | | | | | | When using MTD the libflash backend does not perform any locking of the flash, so this is a noop. Change-Id: I7cbac6a9e5c3382652fe1f3ada7b208df4af6b3e Signed-off-by: Joel Stanley <joel@jms.id.au>
* flasher: remove unused ffs_indexJoel Stanley2016-11-041-6/+0
| | | | | | | | | | | | | | ffs_index was used to ensure we updated the ffs header with the actual size. However, the ffs_index was hardcoded to -1 nd never updated, so this cade was never executed. Secondly, recent discussion[1] on the open-power bug tracker suggests that this was never something that should be done. [1] https://github.com/open-power/op-build/pull/696#issuecomment-255012092 Change-Id: I302b48213561c4d4490927fa0953c65a52d82c11 Signed-off-by: Joel Stanley <joel@jms.id.au>
* flasher: Remove unused blocklevel_get_infoJoel Stanley2016-11-041-8/+0
| | | | | | | We retrieve the parameters but don't do anything with them. Change-Id: I5689fb04d6a9f201a6aff6235925b86c77500823 Signed-off-by: Joel Stanley <joel@jms.id.au>
* Add IPMI 2.0 ColdReset command supportNan Li2016-11-014-17/+198
| | | | | | | | | | * Implement reset by reboot command issued in a shell * Work with related changes in phosphor-host-ipmid repo Resolves openbmc/openbmc#437 Change-Id: I8143b1ee9c0d547ee47e5bd3659a5126b6e5af98 Signed-off-by: Nan Li <william.bjlinan@hotmail.com>
* Add Romulus configJoel Stanley2016-10-311-0/+375
| | | | | | | | This is a dual socket Power9 OpenPower machine manufactured by IBM. Change-Id: I4e20f3c90880a08b5adb35775ee6e3ca6944814f Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Lei YU <mine260309@gmail.com>
* config: Zaius: Add FSI mux selector GPIOXo Wang2016-10-311-0/+2
| | | | | | | | Add CRONUS_SEL to Zaius.py so it can be driven high (selects the BMC for FSI). Signed-off-by: Xo Wang <xow@google.com> Change-Id: I13da51f63872e37ccc963967f3bfb8135c0a6b38
* flasher: Use flash via MTD deviceJoel Stanley2016-10-311-1/+1
| | | | | | | | Now that we have a kernel driver for the NOR, switch do doing all operations via the MTD device. Change-Id: Iff760b79f0779665b44d9118643486900ea8946c Signed-off-by: Joel Stanley <joel@jms.id.au>
* flasher: Add copyright headerJoel Stanley2016-10-311-0/+16
| | | | | Change-Id: I100c00f1d0d19ef32ef45cb97e33eacee0962c3c Signed-off-by: Joel Stanley <joel@jms.id.au>
* Add hwmon0 config in Palmetto.py and Barreleye.pyLei YU2016-10-202-0/+10
| | | | | | | | | | | | Both Palmetto.py and Barreleye are missing hwmon0 in HWMON_CONFIG, which results in `Unhandled hwmon` warning log flood. Add hwmon0's config (i2c 0-0068 for RTC ds3231's temperature) to fix the issue. Resolves openbmc/openbmc#608 Change-Id: Ief6a13e2cec64fbc25348c715d81bf1e2f1f5564 Signed-off-by: Lei YU <mine260309@gmail.com>
* Remove unneeded 'startup-hacks' fileJosh King2016-10-203-16/+0
| | | | | | | | | | | | | | Removed the hacks file because there is no reason for the UART at this point. Also no longer need for the serial-stop. I did confirm that the VUART is still functioning with these changes. I also modified the top level Makefile to no longer include the hacks directory. Resolved openbmc/openbmc#586 Change-Id: I7c116b6736d35b1119564816df6ee6aa14616467 Signed-off-by: Josh King <jdking@us.ibm.com>
* configs: Zaius: Fix GPIO for RESET_BUTTONXo Wang2016-10-121-1/+1
| | | | | | | Incorrectly set to ball name rather than GPIO designator. Signed-off-by: Xo Wang <xow@google.com> Change-Id: Ibf246a4b7523c60e61386a9e5e95ab6de8255acd
* Add fanctl to skeletonYi Li2016-10-078-69/+521
| | | | | | | | | | | | | | | | | fanctl replaces pyfanctl. It provides fan control service with dbus object "/org/openbmc/control/fans". Currently there are two methods: setMax() to set all fans' speed to maximum, and updatePresent() to update the "Present" status of inventory objects: "/org/openbmc/inventory/system/chassis/fan*". In future, more methods will be added, like setting fan speed based on temperature sensor reading. Fixes openbmc/openbmc#93 Change-Id: Ic65089f5d0538cd5e17cfcd9f27e652ae6080ec5 Signed-off-by: Yi Li <adamliyi@msn.com>
* sync: add missing os module importBrad Bishop2016-10-051-0/+1
| | | | | | | fixes: openbmc/openbmc#641 Change-Id: I88dbcfb6d731bff66d7edf4866b61ede06f4c6f8 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* gpio: Raise exception on GPIO lookup failureXo Wang2016-10-061-3/+7
| | | | | | | | | This allows dbus calls to gpioInit to fail instead of only returning a default value. This behavior allows the C-side GPIO lookup to error out as expected. Signed-off-by: Xo Wang <xow@google.com> Change-Id: I13ad20de5d209716f26e46c12ca6941eb3dd5997
* Add Zaius board configurationXo Wang2016-10-051-0/+412
| | | | | | | | | | | Zaius is a POWER9 machine announced at the 2016 OpenPOWER summit. Notable differences from Witherspoon in this initial board configuration include Zaius's lack of I2C connections to OCC, lack of external memory buffers, and lack of power capping support. Change-Id: Iadf582b185d3128022659b33b9b0cecc8492f82c Signed-off-by: Xo Wang <xow@google.com>
* op-pwrctl: Fix polarity of power outputsXo Wang2016-10-041-2/+2
| | | | | | | | | | The power GPIO logic introduced in I83d55a7069558ec810bc2e0dbbff1c5495957e6d produces inverted polarity outputs for power-up and reset signals. This fixes the logic and allows systems to boot again. Change-Id: I0830b46c0c0c1e337085050483da0250d5d850f5 Signed-off-by: Xo Wang <xow@google.com>
* pwrctl: Add latch output to power controlXo Wang2016-10-044-4/+39
| | | | | | | | | | | | On the Zaius machine, the BMC signals that power up the CPU are gated by a latch to protect against GPIO blips during BMC reset/power loss. This adds an optional power GPIO configuration that controls the latch's enable pin. Its behavior is to assert high when the op-pwrctl runs, allowing power_up lines to propagate past their latches. Signed-off-by: Xo Wang <xow@google.com> Change-Id: Ibf0d1db771033cb9bba82575cca1bd21cfb3ad3d
* pwrctl: Use PowerGpio configuration for power controlXo Wang2016-10-041-63/+111
| | | | | | | | | Use power GPIO configuration read from Python system configuration to control power and reset lines. This removes the need for machine-specific patches. Signed-off-by: Xo Wang <xow@google.com> Change-Id: I83d55a7069558ec810bc2e0dbbff1c5495957e6d
* configs: Add POWER_CONFIG for machinesXo Wang2016-10-045-0/+66
| | | | | | | | | | Add configs that address differences in naming, polarity, and number of GPIOs used to control power sequencing and standby reset holds. These are based on existing per-machine patches to op-pwrctl. Signed-off-by: Xo Wang <xow@google.com> Change-Id: I9b1b076cda58899bec466f94ae8a9c87f9ed4124
* system_manager, libobmc-intf: Add power GPIO configuration interfaceXo Wang2016-10-044-2/+180
| | | | | | | | | | | | | This adds a dbus call (in org.openbmc.managers.System) and C binding (in libopenbmc-intf) to read a POWER_CONFIG from the Python system configuration that abstracts GPIO functionality (power good, reset, etc) from their net names in GPIO_CONFIG. This should eventually replace machine-specific patches to op-pwrctl that define their own power and reset lines. Change-Id: I56eaaf60ef852b68124e4a765942243ad17d06ac Signed-off-by: Xo Wang <xow@google.com>
* Formatting only fixAndrew Geissler2016-09-301-92/+75
| | | | | Change-Id: I4fa54f7f707f001c03ce06718a83781e2e6f173c Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Fix for Power Restore PolicyRatan Gupta2016-09-272-11/+51
| | | | | | | | | | | | | This fix is to make the Restore_last_state of Power Restore Policy to working properly. eg:- if the last state is Host_powered_on/off and system goes for pdu reboot then system should reach to the Host_Powred_On/Off state. Fixes openbmc/openbmc#196 Change-Id: If4bdb65a21452d7aa041312fcdbb1daa1b1b0424 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* configs: Remove gpio code from config filesBrad Bishop2016-09-239-69/+16
| | | | | | | Move to a new obmc.system module. Change-Id: Ie02a4b2c14cfcf272d8823d44fb9d7c03b796c87 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* inventory: Move INVENTORY_ROOT to inventory moduleBrad Bishop2016-09-2310-13/+8
| | | | | Change-Id: Ic68d4a48ff46002858934e0b9c9b1694a2a17a08 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* configs: Remove unused variablesBrad Bishop2016-09-235-33/+0
| | | | | Change-Id: I95992741e5b2da4678bc0a12f8afcbe88e318a03 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* python: add vim modelinesBrad Bishop2016-09-2316-0/+32
| | | | | Change-Id: Ic13d79892e3efe6f7bad357ad747e6fd25299d02 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* palmetto: remove frusBrad Bishop2016-09-233-57/+25
| | | | | | | These are now provided in a json file. Change-Id: Ib0491399df797a728c7a71118f7d54a07eb3a466 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Fix some hardcoded inventory pathsMatt Spinler2016-09-211-22/+21
| | | | | | | | | | | | | Modify hardcoded inventory paths to match the ones generated by the machine readable workbook. Note the FRU_INSTANCES array is no longer used and will be removed with a separate commit. Resolves openbmc/openbmc#563. Change-Id: I7af395f08551692f03c95c151bfbbae9e33dee00 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Remove explicit vuart enable from startup_hacks.shTimothy Pearson2016-09-161-1/+0
| | | | | | | | Newer kernels always enable the vuart device and do not expose the enable file for the vuart device. Change-Id: Id8d341322f19112d102c9df8a9e6bdb7e2ef6337 Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
* inventory: add missing json importBrad Bishop2016-09-131-0/+1
| | | | | Change-Id: I89215bdaf5aa02d0063b6164454b56a7cc19cb37 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Use super to construct dbus.service.ObjectBrad Bishop2016-09-126-22/+21
| | | | | Change-Id: I830decfc523d435c6b9ecdc9ffffec7956c3b85d Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* chassis: pep8 fixesBrad Bishop2016-09-121-11/+7
| | | | | Change-Id: I6dc52616ce30660f2e6992f6e1a52d44dfec1cd7 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* hwmon: pep8 fixesBrad Bishop2016-09-121-1/+1
| | | | | Change-Id: I7ffedd4592dd3efbf1b531ecf3b7fbfd1f95bc0c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* flash_bios: reap childrenBrad Bishop2016-09-121-1/+1
| | | | | Change-Id: Id8d341322f19112d102c9df8a9e6bdb7e2ef6341 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* op-flasher: Remove pflash treeBrad Bishop2016-09-1255-6205/+0
| | | | | | | No longer needed with the move to the shared object. Change-Id: I36f7d7ba8b3df5ebae67a93ae18f1fa2d5c4d29a Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* op-flasher: use dynamic libflashBrad Bishop2016-09-122-100/+20
| | | | | | | | | Replace the old statically linked snapshot of libflash with the real shared library. Resolves: openbmc/openbmc#542 Change-Id: I3b6f634d17951c714ebc571518ad5067eaf44e97 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* gdbus: Append LDLIBSBrad Bishop2016-09-121-1/+1
| | | | | | | Allow makefiles to add additional libraries. Change-Id: Ia09e9de2dd1c49d92512bed87bb5d906b258316f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* inventory: add missing module importsBrad Bishop2016-09-081-0/+2
| | | | | Change-Id: I9df7e3917c3107356b67d2f59301a8bd42f59cc1 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add ability to load inventory from file instead of hardcoding.Matt Spinler2016-09-081-0/+11
| | | | | | | | | | | | | | | | | | This commit allows inventory_items.py to load the inventory from /usr/share/inventory/inventory.json instead of using the hardcoded array in <System>.py. A future commit will generate inventory.json from the machine readable workbook XML for at least one system. If the code can't load the json file, it will fall back to the hardcoded array, which at this point we know is always present. Even though pyinventorymgr will probably be rewritten in C++ at some point, this series of commits illustrates how the OpenBMC can utilize a data-driven design, and this component was chosen as it takes a minimal amount of changes. Change-Id: Ie749a068d6f47c5671677b21ff3ef5418739f161 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Remove goto_system_stateBrad Bishop2016-09-062-62/+1
| | | | | | | With the move to systemd this script isn't needed anymore. Change-Id: I90e481ccd720492fce25b62edc5e47d36d6d5a7c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* configs: remove interpreterBrad Bishop2016-09-065-10/+0
| | | | | | | Remove /usr/bin/python as these are not runnable scripts. Change-Id: I2b84748a17be45e99dcbe2d82932c96015b569ce Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* system_manager: cleanupBrad Bishop2016-09-061-1/+1
| | | | | | | select python via /usr/bin/env Change-Id: I426a8947e277892c3084ef08c246e98b625c3d10 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* bmcupdate: pep8 fixesBrad Bishop2016-09-061-263/+265
| | | | | Change-Id: I44b65bc0c22bc137c2e7daf3f5933de3a1fc0063 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* discover_system_state: pep8 fixesBrad Bishop2016-09-061-48/+48
| | | | | Change-Id: I8ef7c3024c2330acffa7603aee4c7ef295aea1b0 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* inventory: allow missing config fileBrad Bishop2016-09-061-2/+11
| | | | | | | | Allow the inventory manager to start with a missing board config file. Change-Id: Ifd0e2080348de6ed802505a26c85ddebf355d3c4 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* inventory: pep8 fixesBrad Bishop2016-09-061-65/+60
| | | | | Change-Id: Ib27c332db35a9e3d5e0bba9d56d5b48966eef9a6 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
OpenPOWER on IntegriCloud