#
8d618532 |
| 25-Oct-2023 |
Michael Shen <gpgpgp@google.com> |
all: Use stdplus::print over std::fprintf
Replacing `std::fprintf` with `stdplus::print`. No logical change.
Tested: Buildable. Signed-off-by: Michael Shen <gpgpgp@google.com> Change-Id: I7050885c1
all: Use stdplus::print over std::fprintf
Replacing `std::fprintf` with `stdplus::print`. No logical change.
Tested: Buildable. Signed-off-by: Michael Shen <gpgpgp@google.com> Change-Id: I7050885c13e33244a4128aa519d163fd5b725098
show more ...
|
#
444b5ea4 |
| 19-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I0a1783b101aa4e7d4b80fd5e1fc1b2beb86c5caa
show more ...
|
#
b4e3704c |
| 12-Oct-2021 |
Willy Tu <wltu@google.com> |
google-ipmi-sys: Convert input to use std::span<const uint8_t> Change-Id: I533de34c04e3d2577cb9076add441153b2994c30 Signed-off-by: Willy Tu <wltu@google.com>
|
#
ff3cd8e9 |
| 15-Sep-2021 |
Willy Tu <wltu@google.com> |
google-ipmi-sys: Refactor to use new version of OEM IPMI Handler Using the new version of ipmi handler provide a higher level wrapper over the same functionalities. It helps us parse the
google-ipmi-sys: Refactor to use new version of OEM IPMI Handler Using the new version of ipmi handler provide a higher level wrapper over the same functionalities. It helps us parse the input and output to have more control of the input/output we see. The input and output will be `std::uint8_t, std::optional<std::vector<uint8_t>>`. This represents `subcommand` and any input data. Changes to note, - all subcommand in the request/response struct are removed. It will be managed by the wrapper directly. - Unit tests checking for input with only the subcommand are removed. - Move all reply struct to header files to be accessible in unit test. Tested: All IPMI OEM command still works the same as before this change. Change-Id: I4230ab84a497a867248fe82224e32cc69b314b64 Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
#
a2056e9c |
| 10-Oct-2021 |
Willy Tu <wltu@google.com> |
Add Google Copyright 2021 Change-Id: I26020265613218d0c8df85b83772856bfc555e86 Signed-off-by: Willy Tu <wltu@google.com>
|
#
ac4a16f7 |
| 02-Feb-2021 |
Shounak Mitra <shounak@google.com> |
Add sys command for powercycle on host shutdown. The new command will trigger a power cycle the next time the host shuts down. This can exist in parallel with the existing mechanism to t
Add sys command for powercycle on host shutdown. The new command will trigger a power cycle the next time the host shuts down. This can exist in parallel with the existing mechanism to trigger a power cycle after a specified time interval. The implementation of host state detection and power cycling is platfrom specific; the new command will just add a temporary file that marks the system ready to powercycle on the next shutdown. Usually, a systemd unit would be enabled by the presence of this file to handle the power cycling process. Signed-off-by: Shounak Mitra <shounak@google.com> Change-Id: I0cc40307748fb996be3f6062d8cba1a4b5049683
show more ...
|
#
0e9aae5d |
| 13-Aug-2020 |
Patrick Venture <venture@google.com> |
split the commands out Split the commands out to avoid conflicts in multiple definitions of IPMI_CC_OK, etc, in a different environment. Signed-off-by: Patrick Venture <venture@
split the commands out Split the commands out to avoid conflicts in multiple definitions of IPMI_CC_OK, etc, in a different environment. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I1f3a0214b4f6f6417a5649b0fc2d297119f8ad88
show more ...
|
#
eff1f2eb |
| 05-Aug-2020 |
Patrick Venture <venture@google.com> |
move implementation to ipmi file Move the entrance point for the IPMI OEM handling to a separate file and pass in the handler pointer via binding. Signed-off-by: Patrick Venture
move implementation to ipmi file Move the entrance point for the IPMI OEM handling to a separate file and pass in the handler pointer via binding. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I4371ebee1c252ab6e9d8a7ff2389583919ecc996
show more ...
|
#
45fad1bb |
| 18-Mar-2019 |
Patrick Venture <venture@google.com> |
style change: lowerCamel Methods in openbmc are lowercamel. Change-Id: I57567b66acdc1fc618f3ca7d237455d55783630c Signed-off-by: Patrick Venture <venture@google.com>
|
#
aa374120 |
| 15-Mar-2019 |
Patrick Venture <venture@google.com> |
add handler logic to handle SysPsuHardReset Add handler logic to handler for SysPsuHardReset such that it splits the true IPMI processing from the business logic. Tested: Only r
add handler logic to handle SysPsuHardReset Add handler logic to handler for SysPsuHardReset such that it splits the true IPMI processing from the business logic. Tested: Only ran unit-tests (added new ones). Change-Id: Id5dae85cbc54db7dee3cb5e62ed80c77ff3d5719 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
fff98617 |
| 12-Nov-2018 |
Patrick Venture <venture@google.com> |
Use more specific ipmi error codes Most errors in the handler were returning an unsupported code and not a more specific code articulating the failure. Update the code to use more s
Use more specific ipmi error codes Most errors in the handler were returning an unsupported code and not a more specific code articulating the failure. Update the code to use more specific errors. Change-Id: I7f517d094245e8e1a6169f43582522889bb895d0 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
acd5423a |
| 16-Oct-2018 |
Patrick Venture <venture@google.com> |
cleanup: use memcpy with fixed-size structures Use std::memcpy with fixed-size structures. Change-Id: I569be29fc7d1dc058b67936d030afbbbbad4bd0c Signed-off-by: Patrick Venture <v
cleanup: use memcpy with fixed-size structures Use std::memcpy with fixed-size structures. Change-Id: I569be29fc7d1dc058b67936d030afbbbbad4bd0c Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
ce07ee0a |
| 19-Sep-2018 |
Patrick Venture <venture@google.com> |
wrap stdlib calls into cpp namespace Wrap the stdlib calls into the cpp namespace. Change-Id: I7ae16d0d18312f3d4118b1d5345df07e28773484 Signed-off-by: Patrick Venture <venture@g
wrap stdlib calls into cpp namespace Wrap the stdlib calls into the cpp namespace. Change-Id: I7ae16d0d18312f3d4118b1d5345df07e28773484 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
0dede335 |
| 17-Sep-2018 |
Patrick Venture <venture@google.com> |
fixup: CI is x86-64, build is 32, cast down for debug The fprintfs were promoted to %lu to make CI work, which then broke the ARM build. Therefore need to cast to make it happy in both
fixup: CI is x86-64, build is 32, cast down for debug The fprintfs were promoted to %lu to make CI work, which then broke the ARM build. Therefore need to cast to make it happy in both environments. Change-Id: Ibba14d8aa19aca44c9ce9b65b66dd79659ce126e Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
4d49ae65 |
| 17-Sep-2018 |
Patrick Venture <venture@google.com> |
google-ipmi-sys: initial commit: OEM IPMI handler This implements a set of OEM IPMI commands built as sub-commands under one OEM IPMI command registered in the Google OEM Namespace.
google-ipmi-sys: initial commit: OEM IPMI handler This implements a set of OEM IPMI commands built as sub-commands under one OEM IPMI command registered in the Google OEM Namespace. Change-Id: I65ff6f35838b501ac6ac67f7765bbc474b808660 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|