c9a43a30 | 31-Jan-2025 |
John Wedig <johnwedig@google.com> |
bare-metal-host-monitor: Use service type notify
We want to be able to start other services after this daemon has finished its startup code. So, this commit updates the host-gpio-monitor code to not
bare-metal-host-monitor: Use service type notify
We want to be able to start other services after this daemon has finished its startup code. So, this commit updates the host-gpio-monitor code to notify systemd when the initialization is done.
Tested: Set the bare metal flag /var/google/config-package/enable-bm.flag Did a power cycle, and confirmed the services started in the expected order.
Change-Id: I51d1aed7509795852f5873f71ae6ba57401ae6b9 Signed-off-by: John Wedig <johnwedig@google.com>
show more ...
|
351d3cbe | 21-Feb-2025 |
John Wedig <johnwedig@google.com> |
bare-metal-host-monitor: Start after x86-power-control
We need to ensure that the host-gpio-monitor starts after xyz.openbmc_project.Chassis.Control.Power@.service, so the dbus objects are ready.
T
bare-metal-host-monitor: Start after x86-power-control
We need to ensure that the host-gpio-monitor starts after xyz.openbmc_project.Chassis.Control.Power@.service, so the dbus objects are ready.
Tested: Set the bare metal flag /var/google/config-package/enable-bm.flag Power cycled the machine. Ensured the host-gpio-monitor could query the dbus property at startup. Also confirmed the expected systemd service ordering at startup: xyz.openbmc_project.Chassis.Control.Power@.service, followed by host-gpio-monitor@.service.
Change-Id: Ibfbac32586981a14ca276f40080a6e698f342aac Signed-off-by: John Wedig <johnwedig@google.com>
show more ...
|
3aed6961 | 21-Feb-2025 |
John Wedig <johnwedig@google.com> |
bare-metal-host-monitor: Reduce the filter timeout
There's a timer that filters out bursts of dbus signals, so that we handle them all at once. But we need to reduce the timeout, so we don't miss im
bare-metal-host-monitor: Reduce the filter timeout
There's a timer that filters out bursts of dbus signals, so that we handle them all at once. But we need to reduce the timeout, so we don't miss important dbus property state changes.
Tested: Set the bare metal flag /var/google/config-package/enable-bm.flag Power cycled the machine and confirmed that host-gpio-monitor@1.service and host-gpio-monitor@2.service started. Rebooted host 2, and confirmed this message showed up: <6> Post Complete state is InReset
Change-Id: I1d08183edc1ff48d2031f62a0fd9ece118fd55aa Signed-off-by: John Wedig <johnwedig@google.com>
show more ...
|
815c8873 | 07-Jan-2025 |
John Wedig <johnwedig@google.com> |
bare-metal-host-monitor: Add dbus configurations
Currently, the dbus service name, object, and property are all hard-coded, but we need to be able to configure these dbus details for different platf
bare-metal-host-monitor: Add dbus configurations
Currently, the dbus service name, object, and property are all hard-coded, but we need to be able to configure these dbus details for different platforms. This commit introduces some meson build options for this purpose. The default values can be overridden in a bbappend file.
Tested: Set the bare metal flag /var/google/config-package/enable-bm.flag Power cycled the machine, and confirmed that host-gpio-monitor@1.service and host-gpio-monitor@2.service started. Rebooted host 2, and confirmed this message showed up: <6> Post Complete state is InReset
Change-Id: I100ed2e450dbedf52565e0f35f50edba229ef800 Signed-off-by: John Wedig <johnwedig@google.com>
show more ...
|
7c15db6f | 19-Feb-2025 |
William A. Kennington III <wak@google.com> |
ncsid: Use PACKET_MR_PROMISC
Using IFF_PROMISC is dangerous because it requires us to set the IF flag. The if flags cannot be set atomically, and they are expected to be owned and managed by systemd
ncsid: Use PACKET_MR_PROMISC
Using IFF_PROMISC is dangerous because it requires us to set the IF flag. The if flags cannot be set atomically, and they are expected to be owned and managed by systemd-networkd. NCSId will sometimes race with systemd-networkd and discard the IFF_UP flag and prevent the interface from coming up during boot.
PACKET_MR_PROMISC does not depend on the flags and will not conflict with other processes using the interface.
Change-Id: I4c193e73bff789e079e859d2b98c2477b2956d54 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
15ce51c2 | 06-Feb-2025 |
William A. Kennington III <wak@google.com> |
dhcp-done: Write status at startup
We want the initial status file to be available as soon as the service starts, so we never produce an error about reading the file contents.
This has a side benef
dhcp-done: Write status at startup
We want the initial status file to be available as soon as the service starts, so we never produce an error about reading the file contents.
This has a side benefit that the DHCP processes don't need to write out a status file until they have acquired lease information from the server.
Change-Id: Ieedb14f1ab3927bcd5f13ad684309c163c920fef Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
6c41aba5 | 01-Feb-2025 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: I47f5f8415b1afbc82d9186ffd2b5260a84907ef6 Signed-off-by: Patrick Williams <p
clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: I47f5f8415b1afbc82d9186ffd2b5260a84907ef6 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
24c61c7e | 01-Feb-2025 |
Patrick Williams <patrick@stwcx.xyz> |
meson: reformat with meson formatter
Apply the `meson format` results.
Change-Id: Id3da51b0ab2cd90f7bb79bd7b613b2226672a802 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
a2d0c9e8 | 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: Iea489ded084f43d245e7b17f210e83bc2398dd6d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
c89f8818 | 05-Jan-2025 |
Mo Elbadry <elbadrym@google.com> |
ncsid: Take off phophor-networkd Dependency
We are in the process of eliminating phosphor-network daemon to increase gBMC Networking stability by eliminating racing conditions that exist when multip
ncsid: Take off phophor-networkd Dependency
We are in the process of eliminating phosphor-network daemon to increase gBMC Networking stability by eliminating racing conditions that exist when multiple daemons are configuring the network concurrently. These two services do not need dependency on phosphor networkd currently.
Change-Id: I1614f2c2c764acc6f88473d3a24d9f710305e66d Signed-off-by: Mo Elbadry <elbadrym@google.com>
show more ...
|
9fb58c31 | 04-Sep-2024 |
William A. Kennington III <wak@google.com> |
ncsid: Remove defunct RA script
We no longer need this logic as we have a combined RA handling script in our meta layers.
Change-Id: I1ca88a25e5b3e5afa46e2f6ff2789885d7046660 Signed-off-by: William
ncsid: Remove defunct RA script
We no longer need this logic as we have a combined RA handling script in our meta layers.
Change-Id: I1ca88a25e5b3e5afa46e2f6ff2789885d7046660 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
d980e4fc | 18-Dec-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-19
clang-format-19 isn't compatible with the clang-format-18 output, so we need to reformat the code with the latest version. A few parameters in clang-tidy have b
clang-format: re-format for clang-19
clang-format-19 isn't compatible with the clang-format-18 output, so we need to reformat the code with the latest version. A few parameters in clang-tidy have been deprecated, so adjust the style file accordingly.
See Ie2f6eb3b043f2d655c9df806815afd7971fd0947 for updated style. See I88192b41ab7a95599a90915013579608af7bc56f for clang-19 enablement.
Change-Id: Iae27e5bd313778cb732d5e87598cd94cc6b13cb4 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
6461f396 | 03-Dec-2024 |
Mo Elbadry <elbadrym@google.com> |
ncsid: skip setting mac address if it matches
There are cases where NIC keeps trying to set MAC address of already set interface, which can lead to ncsid turning interface down/up non-stop. A worka
ncsid: skip setting mac address if it matches
There are cases where NIC keeps trying to set MAC address of already set interface, which can lead to ncsid turning interface down/up non-stop. A workaround is to check if mac matches before setting.
Change-Id: I376cfdde62d5e6a1021fd3410d48027644c7ddde Signed-off-by: Mo Elbadry <elbadrym@google.com>
show more ...
|
376d781c | 11-Nov-2024 |
John Wedig <johnwedig@google.com> |
host-gpio-monitor: Use systemd template
The systemd target gbmc-bare-metal-active.target is being changed to a template, in order to support multi-host systems. The commit updates the host-gpio-moni
host-gpio-monitor: Use systemd template
The systemd target gbmc-bare-metal-active.target is being changed to a template, in order to support multi-host systems. The commit updates the host-gpio-monitor functionality accordingly. The host number now gets passed in as an argument.
Tested: Set the bare metal flag /var/google/config-package/enable-bm.flag on the BMC. Started host-gpio-monitor@0.service, which then started gbmc-bare-metal-active@0.target. Then rebooted the host, at which point, the host-gpio-monitor@0.service disabled gbmc-bare-metal-active@0.target.
Change-Id: I02a0b11996aa2ee168e682fbf61f3f1a8cf01771 Signed-off-by: John Wedig <johnwedig@google.com>
show more ...
|
d94dc257 | 07-Nov-2024 |
Mo Elbadry <elbadrym@google.com> |
ncsid: Set MAC address using ioctl calls
Set the MAC address directly via ioctl calls, removing the dependency on phosphor-networkd. This simplifies the process and reduces overhead as phosphor-netw
ncsid: Set MAC address using ioctl calls
Set the MAC address directly via ioctl calls, removing the dependency on phosphor-networkd. This simplifies the process and reduces overhead as phosphor-networkd is not extensively utilized in this context.
Change-Id: If3465f52834ba38c551d5152ef354cbf455f6a90 Signed-off-by: Mo Elbadry <elbadrym@google.com>
show more ...
|
119e7928 | 18-Oct-2024 |
Abby <buchmana@google.com> |
metric-ipmi-blobs: adding tmpfs
Adding tmpfs metric coverage to pre-ttf machines
Tested: ``` df -h Filesystem Size Used Available Use% Mounted on dev 468.9M
metric-ipmi-blobs: adding tmpfs
Adding tmpfs metric coverage to pre-ttf machines
Tested: ``` df -h Filesystem Size Used Available Use% Mounted on dev 468.9M 0 468.9M 0% /dev tmpfs 469.9M 12.6M 457.3M 3% /run /dev/mtdblock4 20.6M 20.6M 0 100% /run/initramfs/ro /dev/mtdblock6 3.0M 436.0K 2.6M 14% /run/initramfs/rw cow 3.0M 436.0K 2.6M 14% / tmpfs 469.9M 8.0K 469.9M 0% /dev/shm tmpfs 469.9M 0 469.9M 0% /tmp tmpfs 469.9M 40.0K 469.8M 0% /var/volatile tmpfs 469.9M 12.6M 457.3M 3% /var/lib/systemd/coredump ```
Change-Id: I50c763707268252ed51a903d8b7e02543dab6166 Signed-off-by: Abby <buchmana@google.com>
show more ...
|
a06304b0 | 16-Sep-2024 |
Yuxiao Zhang <yuxiaozhang@google.com> |
bare-metal-gpio-monitor: don't start on non-bm mode
This adds a condition check for the bm flag. So that the service will not take effect on non-bm mode.
Change-Id: I0d15247a6e05aa5edf93468793cd74b
bare-metal-gpio-monitor: don't start on non-bm mode
This adds a condition check for the bm flag. So that the service will not take effect on non-bm mode.
Change-Id: I0d15247a6e05aa5edf93468793cd74bd7d9ea158 Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
show more ...
|
3a5c9f3a | 03-Sep-2024 |
Patrick Williams <patrick@stwcx.xyz> |
meson: switch code dependency to libsystemd
For a while now systemd has packaged a separate `libsystemd`. For meson dependency, `systemd` should be used when looking for systemd service file paths
meson: switch code dependency to libsystemd
For a while now systemd has packaged a separate `libsystemd`. For meson dependency, `systemd` should be used when looking for systemd service file paths and `libsystemd` should be used for `sd_*` functions.
Update the dependency accordingly.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I9241adf8ce73df70fb7e50cc50f16015322bea5b
show more ...
|
c66ebc35 | 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I362352dcb341658501899267c2ff3ad044ed5912 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
1e76060a | 07-Mar-2024 |
Yuxiao Zhang <yuxiaozhang@google.com> |
meta-google: dhcp-done: Adding status report
Previously dhcp-done only sends status code, this one provides the capability to send status code + status message for better troubleshooting. Provide a
meta-google: dhcp-done: Adding status report
Previously dhcp-done only sends status code, this one provides the capability to send status code + status message for better troubleshooting. Provide a way to let other process upgrade the status.
Tested: Unit test passed.
Change-Id: I9c689f90502a32b586c41e3491ad47ebc78fcc38 Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
show more ...
|
177e7270 | 10-Jul-2024 |
Yuxiao Zhang <yuxiaozhang@google.com> |
ncsid: fix default wait time
The default wait time needs to shift with current timestamp, otherwise the script will keep looping with 0 intervals and 0 wait time in RA, if the initial loop does not
ncsid: fix default wait time
The default wait time needs to shift with current timestamp, otherwise the script will keep looping with 0 intervals and 0 wait time in RA, if the initial loop does not capture any RA data.
Tested: bring down the interface to simulate the nic not ready, start this script and verified that it loops every 10s. Then bring up the interface, and see the route is setup with no issue
Change-Id: I4189f39c1e9efc0dd9dbbdf1116c505b755a6982 Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
show more ...
|
08988f3d | 26-Jun-2024 |
William A. Kennington III <wak@google.com> |
ncsid: update_ra_gw: Fix old_rtr check
An iteration of a previous commit changed the default value of `old_rtr` from empty string to explicitly `invalid`. We need to use the correct comparison for e
ncsid: update_ra_gw: Fix old_rtr check
An iteration of a previous commit changed the default value of `old_rtr` from empty string to explicitly `invalid`. We need to use the correct comparison for early router setting.
Change-Id: I27c198a93cf06622c6fc6f01092f12d72e05f722 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
a9bd43e7 | 20-Jun-2024 |
William A. Kennington III <wak@google.com> |
ncsid: Make fixup run for all RA
We want to ensure we get regular fixes to the router state without switching to different routers when our route accidentally disappears.
Change-Id: I14c4ea63b51474
ncsid: Make fixup run for all RA
We want to ensure we get regular fixes to the router state without switching to different routers when our route accidentally disappears.
Change-Id: I14c4ea63b514740d846063aaaac35e3c8998cb9e Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
48282226 | 18-Jun-2024 |
William A. Kennington III <wak@google.com> |
ncsid: Reduce networkd reloads
This should help to avoid race conditions with phosphor-networkd. We still write the networkd files so that when reloads occur the information is updated correctly.
C
ncsid: Reduce networkd reloads
This should help to avoid race conditions with phosphor-networkd. We still write the networkd files so that when reloads occur the information is updated correctly.
Change-Id: I550ea04deb8de12db8c4490e9f26f0d3a04baef7 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
1e2289c8 | 17-Jun-2024 |
William A. Kennington III <wak@google.com> |
ncsid: Prefer fe80::1 gateway
Our labs and production environment normally use this as the gateway address. We often have noisy lab networks with many bad gateways advertising their presence. We kno
ncsid: Prefer fe80::1 gateway
Our labs and production environment normally use this as the gateway address. We often have noisy lab networks with many bad gateways advertising their presence. We know we generally prefer fe80::1 so we switch to it when available.
Tested: On a noisy lab network and verified that the script correctly locks onto fe80::1 and switches away from other gateways it receives.
Change-Id: I9ed6c5c2df7b1dec8015dcdfc0d320d471b5e7f3 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|