| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
We retrieve the parameters but don't do anything with them.
Change-Id: I5689fb04d6a9f201a6aff6235925b86c77500823
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I100c00f1d0d19ef32ef45cb97e33eacee0962c3c
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Incorrectly set to ball name rather than GPIO designator.
Signed-off-by: Xo Wang <xow@google.com>
Change-Id: Ibf246a4b7523c60e61386a9e5e95ab6de8255acd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
fixes: openbmc/openbmc#641
Change-Id: I88dbcfb6d731bff66d7edf4866b61ede06f4c6f8
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I4fa54f7f707f001c03ce06718a83781e2e6f173c
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Move to a new obmc.system module.
Change-Id: Ie02a4b2c14cfcf272d8823d44fb9d7c03b796c87
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
| |
Change-Id: Ic68d4a48ff46002858934e0b9c9b1694a2a17a08
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
| |
Change-Id: I95992741e5b2da4678bc0a12f8afcbe88e318a03
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
| |
Change-Id: Ic13d79892e3efe6f7bad357ad747e6fd25299d02
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
| |
These are now provided in a json file.
Change-Id: Ib0491399df797a728c7a71118f7d54a07eb3a466
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I89215bdaf5aa02d0063b6164454b56a7cc19cb37
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
| |
Change-Id: I830decfc523d435c6b9ecdc9ffffec7956c3b85d
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
| |
Change-Id: I6dc52616ce30660f2e6992f6e1a52d44dfec1cd7
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
| |
Change-Id: I7ffedd4592dd3efbf1b531ecf3b7fbfd1f95bc0c
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
| |
Change-Id: Id8d341322f19112d102c9df8a9e6bdb7e2ef6341
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
| |
No longer needed with the move to the shared object.
Change-Id: I36f7d7ba8b3df5ebae67a93ae18f1fa2d5c4d29a
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Allow makefiles to add additional libraries.
Change-Id: Ia09e9de2dd1c49d92512bed87bb5d906b258316f
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
| |
Change-Id: I9df7e3917c3107356b67d2f59301a8bd42f59cc1
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
With the move to systemd this script isn't needed anymore.
Change-Id: I90e481ccd720492fce25b62edc5e47d36d6d5a7c
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
| |
Remove /usr/bin/python as these are not runnable scripts.
Change-Id: I2b84748a17be45e99dcbe2d82932c96015b569ce
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
| |
select python via /usr/bin/env
Change-Id: I426a8947e277892c3084ef08c246e98b625c3d10
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
| |
Change-Id: I44b65bc0c22bc137c2e7daf3f5933de3a1fc0063
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
| |
Change-Id: I8ef7c3024c2330acffa7603aee4c7ef295aea1b0
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
| |
Allow the inventory manager to start with a missing board
config file.
Change-Id: Ifd0e2080348de6ed802505a26c85ddebf355d3c4
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
| |
Change-Id: Ib27c332db35a9e3d5e0bba9d56d5b48966eef9a6
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|