Revision Date Author Comments
# 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 ...


# 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 ...


# 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 ...


# 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 ...


# 8800984d 04-Jan-2024 Yuxiao Zhang <yuxiaozhang@google.com>

bare-metal-host-monitor: capture state and action

state/action needs to be captured by value instead of reference.

Change-Id: I68dbc5bd91979b9fc21e7911a4b6b1433a9852ba
Signed-off-by: Yuxiao Zhang <

bare-metal-host-monitor: capture state and action

state/action needs to be captured by value instead of reference.

Change-Id: I68dbc5bd91979b9fc21e7911a4b6b1433a9852ba
Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>

show more ...


# dd9478dd 08-Dec-2023 John Wedig <johnwedig@google.com>

Bare-metal: post complete GPIO monitor

This creates a service that monitors the post complete gpio, it
reenabled ipmi when gpio is deasserted. And at the startup it checks the
gpio and disable ipmi

Bare-metal: post complete GPIO monitor

This creates a service that monitors the post complete gpio, it
reenabled ipmi when gpio is deasserted. And at the startup it checks the
gpio and disable ipmi if it is asserted.

Tested:
1. reset host, ipmi is re-enabled
2. reboot bmc, ipmi is disabled after bmc booting up.

Change-Id: If52c72ce57e10f6efbb94fd3f0bdcb7655b48d61
Signed-off-by: John Wedig <johnwedig@google.com>
Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>

show more ...