#
e01f0b21 |
| 30-Jan-2025 |
Patrick Williams <patrick@stwcx.xyz> |
build: use allowed over enabled or not-disabled
Meson feature options are typically in a tri-state of enabled, disabled, or auto. The enabled and disabled functions on an option (from `get_option`)
build: use allowed over enabled or not-disabled
Meson feature options are typically in a tri-state of enabled, disabled, or auto. The enabled and disabled functions on an option (from `get_option`) no longer return true for auto features. Instead, the expectation is to use `allowed()` which is true for both enabled and auto.
Switch all uses of `enabled` to `allowed`. Switch all uses of `not disabled` to `allowed`.
Change-Id: I435fd7fac1924855e978bd69d71ec6c511898f40 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
93a4c0ab |
| 16-Aug-2024 |
Brandon Kim <brandonkim@google.com> |
bios_setting: Add a read handler
Tested: ``` ~# echo -n "01234567" > /run/oem_bios_setting ~# ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x18 79 2b 00 18 08 30 31 32 33 34 35 36 37 ~# rm /run/oem_bios_s
bios_setting: Add a read handler
Tested: ``` ~# echo -n "01234567" > /run/oem_bios_setting ~# ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x18 79 2b 00 18 08 30 31 32 33 34 35 36 37 ~# rm /run/oem_bios_setting ~# ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x18 Unable to send RAW command (channel=0x0 netfn=0x2e lun=0x0 cmd=0x32 rsp=0xca): Cannot return number of requested data bytes ```
Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: Icde2de4799a751634f56a580351bf10254dd7e4f
show more ...
|
#
559cb011 |
| 03-May-2024 |
Brandon Kim <brandonkim@google.com> |
bm_instance: Create a new handler
This OEM handler will get properties from tmpfs to serve over IPMI.
Tested: ~# cat /run/bm-instance/asset-tag 12345 ~# ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x17 0
bm_instance: Create a new handler
This OEM handler will get properties from tmpfs to serve over IPMI.
Tested: ~# cat /run/bm-instance/asset-tag 12345 ~# ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x17 0x00 79 2b 00 17 05 31 32 33 34 35 ... ... (Verified this works for all 7 sub commands)
Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I191b6f4994d91ada49a3332a8e93a3a305561904
show more ...
|
#
1302e83c |
| 13-Dec-2023 |
Yuxiao Zhang <yuxiaozhang@google.com> |
google-sys-ipmi: Remove gbmc-bare-metal-active target
The target will be a separate recipe so multiple services can depend on it without relying on google-sys-ipmi.
Change-Id: I957784a38b4356cf6dcd
google-sys-ipmi: Remove gbmc-bare-metal-active target
The target will be a separate recipe so multiple services can depend on it without relying on google-sys-ipmi.
Change-Id: I957784a38b4356cf6dcde2920c398df2e76cb81f Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
show more ...
|
#
f3fe8df3 |
| 07-Dec-2023 |
Patrick Williams <patrick@stwcx.xyz> |
meson: adjust nlohmann-json dependency
Simplify the nlohmann-json dependency in meson and align with the usage from other repositories for consistency.
Change-Id: I6dcbd19a055b83fc8a5955cb6fe0bbdc9
meson: adjust nlohmann-json dependency
Simplify the nlohmann-json dependency in meson and align with the usage from other repositories for consistency.
Change-Id: I6dcbd19a055b83fc8a5955cb6fe0bbdc9876ef42 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
40b2a0cc |
| 31-Oct-2023 |
Willy Tu <wltu@google.com> |
Add wrapper script to setup delay powercycle
This script allow us to have a common way to setup the delay powercycle without going through the ipmi command if needed.
Change-Id: Ida63f066551404b900
Add wrapper script to setup delay powercycle
This script allow us to have a common way to setup the delay powercycle without going through the ipmi command if needed.
Change-Id: Ida63f066551404b900f5e64e3a150f886b7e6b7c Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
#
c5b55232 |
| 01-Nov-2023 |
Willy Tu <wltu@google.com> |
fmt: Remove fmtlib dependencies
Remove the remaining usage for the fmtlib.
Tested: working fine with the error messages.
Change-Id: I68dc70428a75706b2fc70e43f8da321d84f052cc Signed-off-by: Willy T
fmt: Remove fmtlib dependencies
Remove the remaining usage for the fmtlib.
Tested: working fine with the error messages.
Change-Id: I68dc70428a75706b2fc70e43f8da321d84f052cc Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
#
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 ...
|
#
15d4d21c |
| 11-Jul-2023 |
Hao Zhou <haoooamazing@google.com> |
File System: Dependency Injection and Mock
1. Add an abstract FileSystemInterface for Dependency Injection 2. Add FileSystemWrapper for real file system operations, which is called in produciton
File System: Dependency Injection and Mock
1. Add an abstract FileSystemInterface for Dependency Injection 2. Add FileSystemWrapper for real file system operations, which is called in produciton 3. Add FileSystemMock for unit test mock only 4. Add bm_mode_transition_unittest.cpp to cover file system based bm mode transition
Tested: 1/14 eth OK 0.22s 2/14 flash OK 0.21s 3/14 machine OK 0.12s 4/14 bmc_mode OK 0.05s 5/14 cable OK 0.27s 6/14 cpld OK 0.25s 7/14 entity OK 0.24s 8/14 google_accel_oob OK 0.20s 9/14 pcie OK 0.11s 10/14 poweroff OK 0.09s 11/14 psu OK 0.08s 12/14 pcie_bifurcation OK 0.07s 13/14 bm_mode_transition OK 0.29s 14/14 handler OK 0.44s
Ok: 14 Expected Fail: 0 Fail: 0 Unexpected Pass: 0 Skipped: 0 Timeout: 0
Change-Id: I8d0d9096fbeee7af1946d7e73f548e4a249d3bee Signed-off-by: Hao Zhou <haoooamazing@google.com>
show more ...
|
#
99413410 |
| 12-Jul-2023 |
Patrick Williams <patrick@stwcx.xyz> |
build: upgrade to C++23
Meson 1.1.1 and GCC-13 both support C++23 and a sufficient portion of the standard has been implemented. Upgrade the build to leverage it.
Change-Id: I449e771a69d27f28e0919
build: upgrade to C++23
Meson 1.1.1 and GCC-13 both support C++23 and a sufficient portion of the standard has been implemented. Upgrade the build to leverage it.
Change-Id: I449e771a69d27f28e09194452cfa84d4991b068a Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
a92d0e6b |
| 29-Jun-2023 |
John Wedig <johnwedig@google.com> |
Add IPMI OEM command LinuxBootDone
Add a new OEM command for LinuxBoot to notify the BMC when it is about to kexec into the OS. This is intended to give the BMC a chance to prepare for an untrusted
Add IPMI OEM command LinuxBootDone
Add a new OEM command for LinuxBoot to notify the BMC when it is about to kexec into the OS. This is intended to give the BMC a chance to prepare for an untrusted OS, e.g. disable any interfaces it doesn't want the OS to have access to.
Tested: Exercised the new OEM command using ipmitool $ ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x11 79 2b 00 11
Change-Id: Ica76d77cdde48cebfbced32d8e7e860b559074e8 Signed-off-by: John Wedig <johnwedig@google.com>
show more ...
|
#
1209ccc6 |
| 19-May-2023 |
Willy Tu <wltu@google.com> |
cleanup: Reformat with clang
Also update required meson version to support `get_variable` and remove deprecated get_pkgconfig_variable.
Change-Id: I1a0d5a9fce077d546cf56078b63c49ee52f1a816 Signed-o
cleanup: Reformat with clang
Also update required meson version to support `get_variable` and remove deprecated get_pkgconfig_variable.
Change-Id: I1a0d5a9fce077d546cf56078b63c49ee52f1a816 Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
#
3f3ca035 |
| 17-Mar-2023 |
Brandon Kim <brandonkim@google.com> |
handler: Add check for file existence for BM mode
/tmp/BMReady.flag indicates that we are in BM mode.
Tested: Verified both cases - - Mar 21 11:17:52 ipmid[1130]: /tmp/BMReady.flag exists so we mus
handler: Add check for file existence for BM mode
/tmp/BMReady.flag indicates that we are in BM mode.
Tested: Verified both cases - - Mar 21 11:17:52 ipmid[1130]: /tmp/BMReady.flag exists so we must be in BM mode - Mar 21 10:37:04 ipmid[1076]: Unable to find /tmp/BMReady so we must not be in BM mode
Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I9fa99b40afea7e48ce7e1f9c47e8f081b71b897f
show more ...
|
#
5e70dc8c |
| 15-Sep-2022 |
Nikhil Namjoshi <nikhilnamjoshi@google.com> |
Add ipmi OEM handler to get the BMC mode
The response can indicate one of the BMC mode below 0 -> Non Bare Metal Mode 1 -> Bare Metal Mode 2 -> Bare Metal Cleaning Mode
The Bare Metal Cleaning Mode
Add ipmi OEM handler to get the BMC mode
The response can indicate one of the BMC mode below 0 -> Non Bare Metal Mode 1 -> Bare Metal Mode 2 -> Bare Metal Cleaning Mode
The Bare Metal Cleaning Mode is not yet supported
Tested:
Response in BM Mode
ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x10 79 2b 00 14 01
Response in Non-BM Mode
ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x10 79 2b 00 14 00
Signed-off-by: Nikhil Namjoshi <nikhilnamjoshi@google.com> Change-Id: I34474fd04f9aed35bd71725805ed52a5df8ab8c9
show more ...
|
#
6c71b0f9 |
| 10-Oct-2021 |
Willy Tu <wltu@google.com> |
pcie_bifurcation: Fetch bifurcation at a PCIe slot with hardcoded values
This will read a json config and return the bifurcation based on that. It will read the configure file in a persistent file t
pcie_bifurcation: Fetch bifurcation at a PCIe slot with hardcoded values
This will read a json config and return the bifurcation based on that. It will read the configure file in a persistent file to see if it is valid machine config and return the bifurcation information accordingly.
For example, If it is valid config, it will return 8x8 for PE1,3,4,6.
Tested: Unit tests passed.
Physical Tests.
PE0 -> no bifurcation PE1 -> x8x8
``` $ ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x0f 0 79 2b 00 0b 00
$ ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x0f 1 79 2b 00 0b 02 08 08 ```
Change-Id: I44aefbfb26372f8bc0069343c8a6d07d3cf6f42d Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
#
0e22d32a |
| 07-Apr-2022 |
William A. Kennington III <wak@google.com> |
systemd: Handle PSU delay globally
Instead of requiring each reset service to handle reset delays, handle them here.
Change-Id: Ibe452bf37fd81e386cbaacd789f957d519dfedfe Signed-off-by: William A. K
systemd: Handle PSU delay globally
Instead of requiring each reset service to handle reset delays, handle them here.
Change-Id: Ibe452bf37fd81e386cbaacd789f957d519dfedfe Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
4f0d1de6 |
| 20-Sep-2021 |
Steve Foreman <foremans@google.com> |
Add IPMI interface for CustomAccel service
Change-Id: I28a8976e382b457233ac521e9ab71f75abe029d1 Signed-off-by: Steve Foreman <foremans@google.com>
|
#
c841bfd2 |
| 14-Sep-2021 |
Willy Tu <wltu@google.com> |
build: Update to c++20 and meson >= 0.57.0
Change-Id: I52b281d6389e7b5fbc3f1c9fd158d9a1ef23b4c6 Signed-off-by: Willy Tu <wltu@google.com>
|
#
ac730af2 |
| 24-Jun-2021 |
William A. Kennington III <wak@google.com> |
build: Add meson build
Change-Id: I0c42715b0f15c3caabf04da290ab6b99c50bbc13 Signed-off-by: William A. Kennington III <wak@google.com>
|