/openbmc/u-boot/drivers/watchdog/ |
H A D | Kconfig | 1 menu "Watchdog Timer Support" 3 config WATCHDOG config 4 bool "Enable U-Boot watchdog reset" 6 This option enables U-Boot watchdog support where U-Boot is using 7 watchdog_reset function to service watchdog device in U-Boot. Enable 8 this option if you want to service enabled watchdog by U-Boot. Disable 9 this option if you want U-Boot to start watchdog but never service it. 15 bool "Disable reset watchdog" 17 Disable reset watchdog, which can let WATCHDOG_RESET invalid, so 18 that the watchdog will not be fed in u-boot. [all …]
|
/openbmc/openbmc-test-automation/ipmi/ |
H A D | test_ipmi_watchdog.robot | 3 Documentation Module to test out of band IPMI watchdog functionality. 21 Test IPMI Watchdog Timer Does Not Log Bit 22 [Documentation] Execute out of band set/get do not log bit for watchdog timer. 27 ${IPMI_RAW_CMD['Watchdog']['Set'][0]} ${IPMI_RAW_CMD['Watchdog']['Get'][0]} 28 ... ${IPMI_RAW_CMD['Watchdog']['Get'][1]} 29 ${IPMI_RAW_CMD['Watchdog']['Set'][3]} ${IPMI_RAW_CMD['Watchdog']['Get'][0]} 30 ... ${IPMI_RAW_CMD['Watchdog']['Get'][3]} 32 Test IPMI Watchdog Timer Stop Bit 33 [Documentation] Execute out of band set/get stop/resume timer stop bit for watchdog timer. 35 [Template] Execute IPMI Raw Command And Verify Response Data After Watchdog Expires [all …]
|
/openbmc/phosphor-watchdog/src/ |
H A D | watchdog.hpp | 7 #include <xyz/openbmc_project/State/Watchdog/server.hpp> 17 namespace watchdog namespace 22 using WatchdogInherits = sdbusplus::server::object_t<Base::Watchdog>; 24 /** @class Watchdog 25 * @brief OpenBMC watchdog implementation. 27 * xyz.openbmc_project.State.Watchdog DBus API. 29 class Watchdog : public WatchdogInherits class 32 Watchdog() = delete; 33 ~Watchdog() = default; 34 Watchdog(const Watchdog&) = delete; [all …]
|
H A D | mainapp.cpp | 17 #include "watchdog.hpp" 37 using phosphor::watchdog::Watchdog; 40 void printActionTargetMap(const Watchdog::ActionTargetMap& actionTargetMap) in printActionTargetMap() 51 void printFallback(const Watchdog::Fallback& fallback) in printFallback() 67 CLI::App app{"Canonical openbmc host watchdog daemon"}; in main() 74 "Ex: /xyz/openbmc_project/state/watchdog/host0") in main() 80 "Ex: xyz.openbmc_project.State.Watchdog.Host") in main() 85 "Continue daemon after watchdog timeout") in main() 109 "watchdog even when disabled via the dbus interface. " in main() 116 "watchdog even when disabled via the dbus interface. " in main() [all …]
|
H A D | watchdog.cpp | 1 #include "watchdog.hpp" 14 namespace watchdog namespace 27 void Watchdog::resetTimeRemaining(bool enableWatchdog) in resetTimeRemaining() 36 // Enable or disable watchdog 37 bool Watchdog::enabled(bool value) in enabled() 54 log<level::INFO>("watchdog: enabled and started", in enabled() 63 uint64_t Watchdog::timeRemaining() const in timeRemaining() 75 uint64_t Watchdog::timeRemaining(uint64_t value) in timeRemaining() 103 uint64_t Watchdog::interval(uint64_t value) in interval() 109 void Watchdog::timeOutHandler() in timeOutHandler() [all …]
|
/openbmc/openbmc/meta-ufispace/meta-ncplite/recipes-phosphor/watchdog/phosphor-watchdog/ |
H A D | phosphor-watchdog.service | 2 Description=Phosphor Watchdog 5 ExecStart=/usr/bin/phosphor-watchdog --continue --service=xyz.openbmc_project.Watchdog \ 6 --path=/xyz/openbmc_project/watchdog/host0 \ 7 …--action_target=xyz.openbmc_project.State.Watchdog.Action.HardReset=phosphor-watchdog-host-reset.s… 8 …--action_target=xyz.openbmc_project.State.Watchdog.Action.PowerOff=phosphor-watchdog-host-poweroff… 9 …--action_target=xyz.openbmc_project.State.Watchdog.Action.PowerCycle=phosphor-watchdog-host-cycle.… 11 SyslogIdentifier=phosphor-watchdog 12 BusName=xyz.openbmc_project.Watchdog
|
/openbmc/openbmc/meta-quanta/meta-s6q/recipes-phosphor/watchdog/phosphor-watchdog/ |
H A D | phosphor-watchdog.service | 2 Description=Phosphor Watchdog 5 ExecStart=/usr/bin/env phosphor-watchdog --continue --service=xyz.openbmc_project.Watchdog \ 6 --path=/xyz/openbmc_project/watchdog/host0 \ 7 …--action_target=xyz.openbmc_project.State.Watchdog.Action.HardReset=phosphor-watchdog-host-reset.s… 8 …--action_target=xyz.openbmc_project.State.Watchdog.Action.PowerOff=phosphor-watchdog-host-poweroff… 9 …--action_target=xyz.openbmc_project.State.Watchdog.Action.PowerCycle=phosphor-watchdog-host-powerc… 11 SyslogIdentifier=phosphor-watchdog 12 BusName=xyz.openbmc_project.Watchdog
|
/openbmc/openbmc/meta-yadro/meta-vegman/recipes-phosphor/watchdog/phosphor-watchdog/ |
H A D | phosphor-watchdog.service | 2 Description=Phosphow Watchdog 5 ExecStart=/usr/bin/env phosphor-watchdog --continue \ 6 --service=xyz.openbmc_project.Watchdog \ 7 --path=/xyz/openbmc_project/watchdog/host0 \ 8 …--action_target=xyz.openbmc_project.State.Watchdog.Action.HardReset=phosphor-watchdog-host-reset.s… 9 …--action_target=xyz.openbmc_project.State.Watchdog.Action.PowerOff=phosphor-watchdog-host-poweroff… 10 …--action_target=xyz.openbmc_project.State.Watchdog.Action.PowerCycle=phosphor-watchdog-host-cycle.… 12 SyslogIdentifier=phosphor-watchdog 13 BusName=xyz.openbmc_project.Watchdog
|
/openbmc/openbmc/meta-facebook/recipes-phosphor/watchdog/phosphor-watchdog/ |
H A D | phosphor-watchdog.service | 2 Description=Phosphor Watchdog 5 ExecStart=/usr/bin/env phosphor-watchdog --continue --service=xyz.openbmc_project.Watchdog \ 6 --path=/xyz/openbmc_project/watchdog/host0 \ 7 …--action_target=xyz.openbmc_project.State.Watchdog.Action.HardReset=phosphor-watchdog-host-reset.s… 8 …--action_target=xyz.openbmc_project.State.Watchdog.Action.PowerOff=phosphor-watchdog-host-poweroff… 9 …--action_target=xyz.openbmc_project.State.Watchdog.Action.PowerCycle=phosphor-watchdog-host-cycle.… 11 SyslogIdentifier=phosphor-watchdog 12 BusName =xyz.openbmc_project.Watchdog
|
/openbmc/openbmc/meta-amd/meta-common/recipes-phosphor/watchdog/phosphor-watchdog/ |
H A D | phosphor-watchdog.service | 2 Description=Phosphor Watchdog 5 ExecStart=/usr/bin/env phosphor-watchdog --continue --service=xyz.openbmc_project.Watchdog \ 6 --path=/xyz/openbmc_project/watchdog/host0 \ 7 …--action_target=xyz.openbmc_project.State.Watchdog.Action.HardReset=phosphor-watchdog-host-reset.s… 8 …--action_target=xyz.openbmc_project.State.Watchdog.Action.PowerOff=host-phosphor-watchdog-host-pow… 9 …--action_target=xyz.openbmc_project.State.Watchdog.Action.PowerCycle=phosphor-watchdog-host-cycle.… 11 SyslogIdentifier=phosphor-watchdog 12 BusName =xyz.openbmc_project.Watchdog
|
/openbmc/openbmc/meta-fii/meta-kudo/recipes-phosphor/watchdog/phosphor-watchdog/ |
H A D | phosphor-watchdog.service | 2 Description=Phosphor Watchdog 5 ExecStart=/usr/bin/env phosphor-watchdog --continue --service=xyz.openbmc_project.Watchdog \ 6 --path=/xyz/openbmc_project/watchdog/host0 \ 7 …--action_target=xyz.openbmc_project.State.Watchdog.Action.HardReset=phosphor-watchdog-host-reset.s… 8 …--action_target=xyz.openbmc_project.State.Watchdog.Action.PowerOff=phosphor-watchdog-host-poweroff… 9 …--action_target=xyz.openbmc_project.State.Watchdog.Action.PowerCycle=phosphor-watchdog-host-cycle.… 13 SyslogIdentifier=phosphor-watchdog 14 BusName=xyz.openbmc_project.Watchdog
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/fans/ |
H A D | phosphor-fan_%.bbappend | 23 #These services are protected by the watchdog 24 …hosphor-fan-control:witherspoon += "fan-watchdog-monitor.conf:phosphor-fan-control-init@0.service.… 25 …E:phosphor-fan-control:witherspoon += "fan-watchdog-monitor.conf:phosphor-fan-control@0.service.d/… 26 …hosphor-fan-monitor:witherspoon += "fan-watchdog-monitor.conf:phosphor-fan-monitor-init@0.service.… 27 …E:phosphor-fan-monitor:witherspoon += "fan-watchdog-monitor.conf:phosphor-fan-monitor@0.service.d/… 28 …IDE:phosphor-fan-control:p10bmc += "fan-watchdog-monitor.conf:phosphor-fan-control-init@0.service.… 29 …ERRIDE:phosphor-fan-control:p10bmc += "fan-watchdog-monitor.conf:phosphor-fan-control@0.service.d/… 30 …IDE:phosphor-fan-monitor:p10bmc += "fan-watchdog-monitor.conf:phosphor-fan-monitor-init@0.service.… 31 …ERRIDE:phosphor-fan-monitor:p10bmc += "fan-watchdog-monitor.conf:phosphor-fan-monitor@0.service.d/… 33 #These services need to be stopped when watchdog expires [all …]
|
/openbmc/openbmc/poky/meta/recipes-extended/watchdog/watchdog/ |
H A D | 0001-watchdog-remove-interdependencies-of-watchdog-and-wd.patch | 4 Subject: [PATCH] watchdog: remove interdependencies of watchdog and 7 Since watchdog and watchdog-keepalive packages can't be installed 8 together, remove the inter-dependencies of watchdog and wd_keepalive 15 debian/watchdog.service | 9 +++------ 19 diff --git a/debian/watchdog.service b/debian/watchdog.service 21 --- a/debian/watchdog.service 22 +++ b/debian/watchdog.service 25 Description=watchdog daemon 32 EnvironmentFile=/etc/default/watchdog 34 -ExecStart=/bin/sh -c '[ $run_watchdog != 1 ] || exec /usr/sbin/watchdog $watchdog_options' [all …]
|
H A D | watchdog.init | 2 #/etc/init.d/watchdog: start watchdog daemon. 5 # Provides: watchdog 6 # Short-Description: Start software watchdog daemon 17 test -x /usr/sbin/watchdog || exit 0 20 # /etc/default/watchdog, do not edit this init script. 22 # Set run_watchdog to 1 to start watchdog or 0 to disable it. 25 # Specify additional watchdog options here (see manpage). 31 [ -e /etc/default/watchdog ] && . /etc/default/watchdog 33 NAME=watchdog 34 DAEMON=/usr/sbin/watchdog [all …]
|
/openbmc/phosphor-host-ipmid/app/ |
H A D | watchdog_service.hpp | 4 #include <xyz/openbmc_project/State/Watchdog/server.hpp> 7 * @brief Access to the running OpenBMC watchdog implementation. 9 * xyz.openbmc_project.State.Watchdog DBus API. 17 sdbusplus::server::xyz::openbmc_project::state::Watchdog::Action; 19 sdbusplus::server::xyz::openbmc_project::state::Watchdog::TimerUse; 21 /** @brief Resets the time remaining on the watchdog. 23 * Optionally enables the watchdog. 25 * @param[in] enableWatchdog - Should the call also enable the watchdog 30 * watchdog service. 44 * host watchdog [all …]
|
/openbmc/openbmc/poky/meta/recipes-extended/watchdog/ |
H A D | watchdog_5.16.bb | 1 SUMMARY = "Software watchdog" 2 DESCRIPTION = "Watchdog is a daemon that checks if your system is still \ 5 HOMEPAGE = "http://watchdog.sourceforge.net/" 11 SRC_URI = "${SOURCEFORGE_MIRROR}/watchdog/watchdog-${PV}.tar.gz \ 12 file://0001-watchdog-remove-interdependencies-of-watchdog-and-wd.patch \ 13 file://watchdog.init \ 24 UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/watchdog/files/watchdog/" 25 UPSTREAM_CHECK_REGEX = "/watchdog/(?P<pver>(\d+[\.\-_]*)+)/" 34 INITSCRIPT_NAME:${PN} = "watchdog" 41 SYSTEMD_SERVICE:${PN} = "watchdog.service" [all …]
|
H A D | watchdog-config.bb | 1 SUMMARY = "Software watchdog" 2 DESCRIPTION = "Watchdog is a daemon that checks if your system is still \ 5 HOMEPAGE = "http://watchdog.sourceforge.net/" 12 file://watchdog.default \ 13 file://watchdog.conf \ 23 install -Dm 0644 ${UNPACKDIR}/watchdog.default ${D}${sysconfdir}/default/watchdog 24 install -Dm 0644 ${UNPACKDIR}/watchdog.conf ${D}${sysconfdir}/watchdog.conf 27 echo "watchdog-timeout = ${WATCHDOG_TIMEOUT}" >> ${D}/etc/watchdog.conf
|
/openbmc/qemu/tests/qtest/ |
H A D | npcm7xx_watchdog_timer-test.c | 2 * QTests for Nuvoton NPCM7xx Timer Watchdog Modules. 36 typedef struct Watchdog { struct 39 } Watchdog; typedef 41 static const Watchdog watchdog_list[] = { 56 static int watchdog_index(const Watchdog *wd) in watchdog_index() 65 static uint32_t watchdog_read_wtcr(QTestState *qts, const Watchdog *wd) in watchdog_read_wtcr() 70 static void watchdog_write_wtcr(QTestState *qts, const Watchdog *wd, in watchdog_write_wtcr() 76 static uint32_t watchdog_prescaler(QTestState *qts, const Watchdog *wd) in watchdog_prescaler() 94 QDict *ev = qtest_qmp_eventwait_ref(qts, "WATCHDOG"); in get_watchdog_action() 104 static uint32_t watchdog_interrupt_cycles(QTestState *qts, const Watchdog *wd) in watchdog_interrupt_cycles() [all …]
|
/openbmc/u-boot/lib/efi_loader/ |
H A D | efi_watchdog.c | 3 * EFI watchdog 17 * Reset the system when the watchdog event is notified. 19 * @event: the watchdog event 27 printf("\nEFI: Watchdog timeout\n"); in efi_watchdog_timer_notify() 35 * Reset the watchdog timer. 39 * @timeout: seconds before reset by watchdog 47 /* Reset watchdog */ in efi_set_watchdog() 51 /* Deactivate watchdog */ in efi_set_watchdog() 57 * Initialize the EFI watchdog. 72 printf("ERROR: Failed to register watchdog event\n"); in efi_watchdog_register() [all …]
|
/openbmc/openbmc/meta-phosphor/recipes-phosphor/watchdog/ |
H A D | phosphor-watchdog_git.bb | 1 SUMMARY = "Phosphor Watchdog application" 2 DESCRIPTION = "Application that implements software watchdog" 3 HOMEPAGE = "http://github.com/openbmc/phosphor-watchdog" 19 SRC_URI = "git://github.com/openbmc/phosphor-watchdog;branch=master;protocol=https" 27 # Copies config file having arguments for host watchdog 28 SYSTEMD_ENVIRONMENT_FILE:${PN} += "obmc/watchdog/poweron" 31 SYSTEMD_OVERRIDE:${PN} += "poweron.conf:phosphor-watchdog@poweron.service.d/poweron.conf" 38 WATCHDOG_TMPL = "phosphor-watchdog@.service" 39 ENABLE_WATCHDOG_TMPL = "obmc-enable-host-watchdog@.service" 42 # To Enable Host Watchdog early during poweron [all …]
|
/openbmc/qemu/hw/watchdog/ |
H A D | trace-events | 4 allwinner_wdt_read(uint64_t offset, uint64_t data, unsigned size) "Allwinner watchdog read: offset … 5 allwinner_wdt_write(uint64_t offset, uint64_t data, unsigned size) "Allwinner watchdog write: offse… 6 allwinner_wdt_reset_enter(void) "Allwinner watchdog: reset" 7 allwinner_wdt_update_timer(uint8_t count) "Allwinner watchdog: count %" PRIu8 8 allwinner_wdt_expired(bool enabled, bool reset_enabled) "Allwinner watchdog: enabled %u reset_enabl… 10 # cmsdk-apb-watchdog.c 11 cmsdk_apb_watchdog_read(uint64_t offset, uint64_t data, unsigned size) "CMSDK APB watchdog read: of… 12 cmsdk_apb_watchdog_write(uint64_t offset, uint64_t data, unsigned size) "CMSDK APB watchdog write: … 13 cmsdk_apb_watchdog_reset(void) "CMSDK APB watchdog: reset" 14 cmsdk_apb_watchdog_lock(uint32_t lock) "CMSDK APB watchdog: lock %" PRIu32 [all …]
|
/openbmc/qemu/include/hw/watchdog/ |
H A D | cmsdk-apb-watchdog.h | 2 * ARM CMSDK APB watchdog emulation 13 * This is a model of the "APB watchdog" which is part of the Cortex-M 19 * + Clock input "WDOGCLK": clock for the watchdog's timer 21 * + sysbus IRQ 0: watchdog interrupt 23 * In real hardware the watchdog's reset output is just a GPIO line 25 * (For instance the IoTKit does this with the non-secure watchdog, so that 27 * reset via its watchdog.) In QEMU, we just wire up the watchdog reset 39 #define TYPE_CMSDK_APB_WATCHDOG "cmsdk-apb-watchdog" 44 * cmsdk-apb-watchdog device. 46 #define TYPE_LUMINARY_WATCHDOG "luminary-watchdog"
|
/openbmc/openbmc/meta-quanta/meta-gbs/recipes-phosphor/watchdog/phosphor-watchdog/ |
H A D | phosphor-watchdog@.service | 2 Description=Phosphor Watchdog 5 EnvironmentFile={envfiledir}/obmc/watchdog/%I 6 ExecStart=/usr/bin/env phosphor-watchdog --service=${{SERVICE}} --path=${{DEVPATH}} \ 9 --action_target=xyz.openbmc_project.State.Watchdog.Action.HardReset=${{UNIT_HARD_RESET}} \ 10 --action_target=xyz.openbmc_project.State.Watchdog.Action.PowerOff=${{UNIT_POWER_OFF}} \ 11 --action_target=xyz.openbmc_project.State.Watchdog.Action.PowerCycle=${{UNIT_POWER_CYCLE}} 12 SyslogIdentifier=phosphor-watchdog 13 BusName=xyz.openbmc_project.Watchdog
|
/openbmc/phosphor-watchdog/test/ |
H A D | watchdog.cpp | 1 #include "watchdog.hpp" 15 namespace watchdog namespace 23 // Test Watchdog functionality 35 wdog(std::make_unique<Watchdog>( in WdogTest() 36 bus, TEST_PATH, event, Watchdog::ActionTargetMap(), std::nullopt, in WdogTest() 43 // Initially the watchdog would be disabled in WdogTest() 53 // Watchdog object 54 std::unique_ptr<Watchdog> wdog; 65 // Returns how long it took for the current watchdog timer to be 88 /** @brief Make sure that watchdog is started and not enabled */ [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/State/ |
H A D | Watchdog.interface.yaml | 2 Implement the watchdog function. 9 TimeRemaining. Optionally the watchdog can be enabled during the reset 15 If true the watchdog will be enabled when the reset is 24 Whether the host has configured the watchdog yet. 29 The watchdog is enabled or not. 35 on watchdog expiration. 40 The action the watchdog should perform when it expires. 45 Time interval to arm the watchdog, in milli-second. 51 can re-arm the watchdog. 108 Watchdog timeout event signal [all …]
|