History log of /openbmc/google-misc/subprojects/bare-metal-host-monitor/ (Results 1 – 5 of 5)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
376d781c11-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 ...

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

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


/openbmc/google-misc/.clang-format
/openbmc/google-misc/.gitignore
/openbmc/google-misc/OWNERS
/openbmc/google-misc/meson.build
host_gpio_monitor.cpp
/openbmc/google-misc/subprojects/dhcp-done/dhcp-done.cpp
/openbmc/google-misc/subprojects/dhcp-done/dhcp-done.service.in
/openbmc/google-misc/subprojects/dhcp-done/file-io.cpp
/openbmc/google-misc/subprojects/dhcp-done/file-io.hpp
/openbmc/google-misc/subprojects/dhcp-done/meson.build
/openbmc/google-misc/subprojects/dhcp-done/meson.options
/openbmc/google-misc/subprojects/dhcp-done/test/fileio_test.cpp
/openbmc/google-misc/subprojects/dhcp-done/test/meson.build
/openbmc/google-misc/subprojects/dhcp-done/update-dhcp-status.cpp
/openbmc/google-misc/subprojects/espi-control/npcm7xx_espi_control.cpp
/openbmc/google-misc/subprojects/libcr51sign/include/libcr51sign/cr51_image_descriptor.h
/openbmc/google-misc/subprojects/libcr51sign/include/libcr51sign/libcr51sign.h
/openbmc/google-misc/subprojects/libcr51sign/include/libcr51sign/libcr51sign_mauv.h
/openbmc/google-misc/subprojects/libcr51sign/src/libcr51sign.c
/openbmc/google-misc/subprojects/libcr51sign/src/libcr51sign_mauv.c
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/meson.build
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/metric.cpp
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/metric.hpp
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/metricblob.proto
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/test/util_test.cpp
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/util.cpp
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/util.hpp
/openbmc/google-misc/subprojects/nanopb.wrap
/openbmc/google-misc/subprojects/ncsid/src/meson.build
/openbmc/google-misc/subprojects/ncsid/src/ncsi_state_machine.h
/openbmc/google-misc/subprojects/ncsid/src/ncsid_lib.sh
/openbmc/google-misc/subprojects/ncsid/src/net_config.cpp
/openbmc/google-misc/subprojects/ncsid/src/update_ra_gw.sh
/openbmc/google-misc/subprojects/ncsid/test/ncsi_test.cpp
/openbmc/google-misc/subprojects/ncsid/test/nic_mock.cpp
/openbmc/google-misc/subprojects/nemora-postd/src/default_addresses.h
/openbmc/google-misc/subprojects/nemora-postd/src/nemora.cpp
/openbmc/google-misc/subprojects/phosphor-dbus-interfaces.wrap
/openbmc/google-misc/subprojects/phosphor-logging.wrap
/openbmc/google-misc/subprojects/sdbusplus.wrap
8800984d04-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 ...

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


/openbmc/google-misc/.beautysh-ignore
/openbmc/google-misc/.clang-format
/openbmc/google-misc/.clang-format-ignore
/openbmc/google-misc/.gitignore
/openbmc/google-misc/.shellcheck-ignore
/openbmc/google-misc/LICENSE
/openbmc/google-misc/OWNERS
/openbmc/google-misc/README.md
/openbmc/google-misc/acpi-power-state-daemon
/openbmc/google-misc/bare-metal-host-monitor
/openbmc/google-misc/dhcp-done
/openbmc/google-misc/espi-control
/openbmc/google-misc/hello.c
/openbmc/google-misc/libcr51sign
/openbmc/google-misc/meson.build
/openbmc/google-misc/meson_options.txt
/openbmc/google-misc/metrics-ipmi-blobs
/openbmc/google-misc/ncsid
/openbmc/google-misc/nemora-postd
/openbmc/google-misc/subprojects/acpi-power-state-daemon/acpi-power-state.service.in
/openbmc/google-misc/subprojects/acpi-power-state-daemon/acpi_power_state.cpp
/openbmc/google-misc/subprojects/acpi-power-state-daemon/host-s0-state.target
/openbmc/google-misc/subprojects/acpi-power-state-daemon/host-s5-state.target
/openbmc/google-misc/subprojects/acpi-power-state-daemon/meson.build
/openbmc/google-misc/subprojects/acpi-power-state-daemon/subprojects
host-gpio-monitor.service.in
host_gpio_monitor.cpp
meson.build
/openbmc/google-misc/subprojects/dhcp-done/dhcp-done.cpp
/openbmc/google-misc/subprojects/dhcp-done/dhcp-done@.service.in
/openbmc/google-misc/subprojects/dhcp-done/meson.build
/openbmc/google-misc/subprojects/dhcp-done/subprojects
/openbmc/google-misc/subprojects/espi-control/meson.build
/openbmc/google-misc/subprojects/espi-control/npcm7xx_espi_control.cpp
/openbmc/google-misc/subprojects/googletest.wrap
/openbmc/google-misc/subprojects/libcr51sign/OWNERS
/openbmc/google-misc/subprojects/libcr51sign/README.md
/openbmc/google-misc/subprojects/libcr51sign/include/libcr51sign/cr51_image_descriptor.h
/openbmc/google-misc/subprojects/libcr51sign/include/libcr51sign/libcr51sign.h
/openbmc/google-misc/subprojects/libcr51sign/include/libcr51sign/libcr51sign_internal.h
/openbmc/google-misc/subprojects/libcr51sign/include/libcr51sign/libcr51sign_mauv.h
/openbmc/google-misc/subprojects/libcr51sign/include/libcr51sign/libcr51sign_support.h
/openbmc/google-misc/subprojects/libcr51sign/include/meson.build
/openbmc/google-misc/subprojects/libcr51sign/meson.build
/openbmc/google-misc/subprojects/libcr51sign/src/libcr51sign.c
/openbmc/google-misc/subprojects/libcr51sign/src/libcr51sign_mauv.c
/openbmc/google-misc/subprojects/libcr51sign/src/libcr51sign_support.c
/openbmc/google-misc/subprojects/libcr51sign/src/meson.build
/openbmc/google-misc/subprojects/libcr51sign/subprojects
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/README.md
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/handler.cpp
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/handler.hpp
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/main.cpp
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/meson.build
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/meson_options.txt
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/metric.cpp
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/metric.hpp
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/metricblob.proto
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/subprojects
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/test/meson.build
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/test/util_test.cpp
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/util.cpp
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/util.hpp
/openbmc/google-misc/subprojects/ncsid/README.md
/openbmc/google-misc/subprojects/ncsid/doc/ncsid_arch.dot
/openbmc/google-misc/subprojects/ncsid/doc/ncsid_arch.png
/openbmc/google-misc/subprojects/ncsid/doc/ncsid_internals.md
/openbmc/google-misc/subprojects/ncsid/doc/ncsid_test_arch.dot
/openbmc/google-misc/subprojects/ncsid/doc/ncsid_test_arch.png
/openbmc/google-misc/subprojects/ncsid/meson.build
/openbmc/google-misc/subprojects/ncsid/meson_options.txt
/openbmc/google-misc/subprojects/ncsid/src/common_defs.h
/openbmc/google-misc/subprojects/ncsid/src/dhcp4@.service.in
/openbmc/google-misc/subprojects/ncsid/src/dhcp6@.service.in
/openbmc/google-misc/subprojects/ncsid/src/meson.build
/openbmc/google-misc/subprojects/ncsid/src/ncsi_sockio.cpp
/openbmc/google-misc/subprojects/ncsid/src/ncsi_sockio.h
/openbmc/google-misc/subprojects/ncsid/src/ncsi_state_machine.cpp
/openbmc/google-misc/subprojects/ncsid/src/ncsi_state_machine.h
/openbmc/google-misc/subprojects/ncsid/src/ncsid.cpp
/openbmc/google-misc/subprojects/ncsid/src/ncsid@.service.in
/openbmc/google-misc/subprojects/ncsid/src/ncsid_lib.sh
/openbmc/google-misc/subprojects/ncsid/src/ncsid_udhcpc4.script
/openbmc/google-misc/subprojects/ncsid/src/ncsid_udhcpc6.script
/openbmc/google-misc/subprojects/ncsid/src/net_config.cpp
/openbmc/google-misc/subprojects/ncsid/src/net_config.h
/openbmc/google-misc/subprojects/ncsid/src/net_iface.cpp
/openbmc/google-misc/subprojects/ncsid/src/net_iface.h
/openbmc/google-misc/subprojects/ncsid/src/net_sockio.cpp
/openbmc/google-misc/subprojects/ncsid/src/net_sockio.h
/openbmc/google-misc/subprojects/ncsid/src/nic-hostful@.target
/openbmc/google-misc/subprojects/ncsid/src/nic-hostless@.target
/openbmc/google-misc/subprojects/ncsid/src/normalize_ip.c
/openbmc/google-misc/subprojects/ncsid/src/normalize_mac.c
/openbmc/google-misc/subprojects/ncsid/src/platforms/nemora/portable/default_addresses.h
/openbmc/google-misc/subprojects/ncsid/src/platforms/nemora/portable/ncsi.h
/openbmc/google-misc/subprojects/ncsid/src/platforms/nemora/portable/ncsi_client.c
/openbmc/google-misc/subprojects/ncsid/src/platforms/nemora/portable/ncsi_client.h
/openbmc/google-misc/subprojects/ncsid/src/platforms/nemora/portable/ncsi_fsm.c
/openbmc/google-misc/subprojects/ncsid/src/platforms/nemora/portable/ncsi_fsm.h
/openbmc/google-misc/subprojects/ncsid/src/platforms/nemora/portable/ncsi_server.c
/openbmc/google-misc/subprojects/ncsid/src/platforms/nemora/portable/ncsi_server.h
/openbmc/google-misc/subprojects/ncsid/src/platforms/nemora/portable/net_types.h
/openbmc/google-misc/subprojects/ncsid/src/update-ra-gw@.service.in
/openbmc/google-misc/subprojects/ncsid/src/update-ra-neighbor@.service.in
/openbmc/google-misc/subprojects/ncsid/src/update-ra-neighbor@.timer
/openbmc/google-misc/subprojects/ncsid/src/update-static-neighbors@.service.in
/openbmc/google-misc/subprojects/ncsid/src/update-static-neighbors@.timer
/openbmc/google-misc/subprojects/ncsid/src/update_ra_gw.sh
/openbmc/google-misc/subprojects/ncsid/src/update_ra_neighbor.sh
/openbmc/google-misc/subprojects/ncsid/src/update_static_neighbors.sh
/openbmc/google-misc/subprojects/ncsid/subprojects
/openbmc/google-misc/subprojects/ncsid/test/iface_test.cpp
/openbmc/google-misc/subprojects/ncsid/test/meson.build
/openbmc/google-misc/subprojects/ncsid/test/ncsi_test.cpp
/openbmc/google-misc/subprojects/ncsid/test/net_iface_mock.cpp
/openbmc/google-misc/subprojects/ncsid/test/net_iface_mock.h
/openbmc/google-misc/subprojects/ncsid/test/nic_mock.cpp
/openbmc/google-misc/subprojects/ncsid/test/nic_mock.h
/openbmc/google-misc/subprojects/ncsid/test/normalize_ip_test.sh
/openbmc/google-misc/subprojects/ncsid/test/normalize_mac_test.sh
/openbmc/google-misc/subprojects/ncsid/test/sock_test.cpp
/openbmc/google-misc/subprojects/ncsid/test/test_lib.sh
/openbmc/google-misc/subprojects/nemora-postd/OWNERS
/openbmc/google-misc/subprojects/nemora-postd/README.md
/openbmc/google-misc/subprojects/nemora-postd/event_message.proto
/openbmc/google-misc/subprojects/nemora-postd/meson.build
/openbmc/google-misc/subprojects/nemora-postd/nemorad.cpp
/openbmc/google-misc/subprojects/nemora-postd/src/default_addresses.h
/openbmc/google-misc/subprojects/nemora-postd/src/host_manager.cpp
/openbmc/google-misc/subprojects/nemora-postd/src/host_manager.hpp
/openbmc/google-misc/subprojects/nemora-postd/src/nemora.cpp
/openbmc/google-misc/subprojects/nemora-postd/src/nemora.hpp
/openbmc/google-misc/subprojects/nemora-postd/src/nemora_types.hpp
/openbmc/google-misc/subprojects/nemora-postd/src/serializer.cpp
/openbmc/google-misc/subprojects/nemora-postd/src/serializer.hpp
/openbmc/google-misc/subprojects/nemora-postd/src/socket_manager.cpp
/openbmc/google-misc/subprojects/nemora-postd/src/socket_manager.hpp
/openbmc/google-misc/subprojects/nemora-postd/subprojects
/openbmc/google-misc/subprojects/phosphor-dbus-interfaces.wrap
/openbmc/google-misc/subprojects/phosphor-logging.wrap
/openbmc/google-misc/subprojects/sdbusplus.wrap
/openbmc/google-misc/subprojects/sdeventplus.wrap
/openbmc/google-misc/subprojects/stdplus.wrap