/openbmc/phosphor-fan-presence/monitor/test/ |
H A D | power_off_cause_test.cpp | 9 FanHealth health{{"fan0", {true, {true, true}}}, in TEST() local 15 EXPECT_FALSE(cause.satisfied(health)); in TEST() 17 health["fan0"] = {false, {false, false}}; in TEST() 18 EXPECT_FALSE(cause.satisfied(health)); in TEST() 20 health["fan1"] = {false, {false, false}}; in TEST() 21 EXPECT_TRUE(cause.satisfied(health)); in TEST() 23 health["fan2"] = {false, {false, false}}; in TEST() 24 EXPECT_TRUE(cause.satisfied(health)); in TEST() 26 health["fan0"] = {false, {true, true}}; in TEST() 27 health["fan1"] = {false, {true, true}}; in TEST() [all …]
|
H A D | power_off_rule_test.cpp | 66 FanHealth health{{"fan0", {false, {true, true}}}, in TEST() local 73 rules[0]->check(PowerRuleState::runtime, health); in TEST() 76 rules[0]->check(PowerRuleState::atPgood, health); in TEST() 91 rules[1]->check(PowerRuleState::runtime, health); in TEST() 95 health["fan0"] = {true, {true, false}}; in TEST() 96 health["fan1"] = {true, {false, false}}; in TEST() 98 rules[1]->check(PowerRuleState::runtime, health); in TEST() 109 health["fan0"] = {true, {false, false}}; in TEST() 110 health["fan1"] = {true, {false, false}}; in TEST() 112 rules[2]->check(PowerRuleState::runtime, health); in TEST() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | health.c | 87 struct mlx5_core_health *health = &dev->priv.health; in sensor_pci_not_working() local 88 struct health_buffer __iomem *h = health->health; in sensor_pci_not_working() 101 struct mlx5_core_health *health = &dev->priv.health; in sensor_fw_synd_rfr() local 102 struct health_buffer __iomem *h = health->health; in sensor_fw_synd_rfr() 300 if (dev->priv.health.fatal_error != MLX5_SENSOR_PCI_COMM_ERR) in mlx5_handle_bad_state() 412 struct mlx5_core_health *health = &dev->priv.health; in print_health_info() local 413 struct health_buffer __iomem *h = health->health; in print_health_info() 457 struct mlx5_core_health *health = &dev->priv.health; in mlx5_fw_reporter_diagnose() local 458 struct health_buffer __iomem *h = health->health; in mlx5_fw_reporter_diagnose() 495 struct mlx5_core_health *health = &dev->priv.health; in mlx5_fw_reporter_heath_buffer_data_put() local [all …]
|
/openbmc/linux/drivers/net/netdevsim/ |
H A D | health.c | 43 struct nsim_dev_health *health = devlink_health_reporter_priv(reporter); in nsim_dev_dummy_reporter_recover() local 46 if (health->fail_recover) { in nsim_dev_dummy_reporter_recover() 54 kfree(health->recovered_break_msg); in nsim_dev_dummy_reporter_recover() 55 health->recovered_break_msg = kstrdup(ctx->break_msg, in nsim_dev_dummy_reporter_recover() 57 if (!health->recovered_break_msg) in nsim_dev_dummy_reporter_recover() 158 struct nsim_dev_health *health = devlink_health_reporter_priv(reporter); in nsim_dev_dummy_reporter_dump() local 168 return nsim_dev_dummy_fmsg_put(fmsg, health->binary_len); in nsim_dev_dummy_reporter_dump() 176 struct nsim_dev_health *health = devlink_health_reporter_priv(reporter); in nsim_dev_dummy_reporter_diagnose() local 179 if (health->recovered_break_msg) { in nsim_dev_dummy_reporter_diagnose() 182 health->recovered_break_msg); in nsim_dev_dummy_reporter_diagnose() [all …]
|
/openbmc/linux/Documentation/networking/devlink/ |
H A D | devlink-health.rst | 10 The ``devlink`` health mechanism is targeted for Real Time Alerting, in 21 The main idea is to unify and centralize driver health reports in the 23 attributes of the health reporting and recovery procedures. 25 The ``devlink`` health reporter: 26 Device driver creates a "health reporter" per each error/health type. 29 For each registered health reporter a driver can issue error/health reports 30 asynchronously. All health reports handling is done by ``devlink``. 31 Device driver can provide specific callbacks for each "health reporter", e.g.: 38 Different parts of the driver can register different types of health reporters 44 Once an error is reported, devlink health will perform the following actions: [all …]
|
H A D | mlx5.rst | 157 $ devlink health diagnose pci/0000:82:00.0 reporter tx 165 $ devlink health show pci/0000:82:00.0 reporter tx 185 $ devlink health diagnose pci/0000:82:00.0 reporter rx 193 $ devlink health show pci/0000:82:00.0 reporter rx 207 $ devlink health diagnose pci/0000:82:00.0 reporter fw 211 $ devlink health dump show pci/0000:82:00.0 reporter fw 225 On firmware error, the health buffer is dumped into the dmesg. The log 226 level is derived from the error's severity (given in health buffer). 232 $ devlink health recover pci/0000:82:00.0 reporter fw_fatal 236 $ devlink health dump show pci/0000:82:00.1 reporter fw_fatal [all …]
|
H A D | mlx4.rst | 48 The ``mlx4`` driver supports dumping the firmware PCI crspace and health 55 ``fw-health`` region will contain the device firmware's health buffer.
|
H A D | devlink-region.rst | 25 states, but see also Documentation/networking/devlink/devlink-health.rst 57 pci/0000:00:05.0/fw-health: size 64 snapshot [1 2] max 8 67 $ devlink region dump pci/0000:00:05.0/fw-health snapshot 1 74 $ devlink region read pci/0000:00:05.0/fw-health snapshot 1 address 0 length 16 78 $ devlink region read pci/0000:00:05.0/fw-health address 16 length 16
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
H A D | reporter_vnic.c | 134 struct mlx5_core_health *health = &dev->priv.health; in mlx5_reporter_vnic_create() local 137 health->vnic_reporter = in mlx5_reporter_vnic_create() 141 if (IS_ERR(health->vnic_reporter)) in mlx5_reporter_vnic_create() 144 PTR_ERR(health->vnic_reporter)); in mlx5_reporter_vnic_create() 149 struct mlx5_core_health *health = &dev->priv.health; in mlx5_reporter_vnic_destroy() local 151 if (!IS_ERR_OR_NULL(health->vnic_reporter)) in mlx5_reporter_vnic_destroy() 152 devlink_health_reporter_destroy(health->vnic_reporter); in mlx5_reporter_vnic_destroy()
|
H A D | crdump.c | 14 return !!dev->priv.health.crdump_size; in mlx5_crdump_enabled() 19 u32 crdump_size = dev->priv.health.crdump_size; in mlx5_crdump_fill() 108 priv->health.crdump_size = space_size; in mlx5_crdump_enable() 114 dev->priv.health.crdump_size = 0; in mlx5_crdump_disable()
|
/openbmc/linux/tools/testing/selftests/drivers/net/netdevsim/ |
H A D | devlink.sh | 395 devlink health show $DL_HANDLE reporter empty >/dev/null 398 devlink health dump show $DL_HANDLE reporter empty >/dev/null 401 devlink health diagnose $DL_HANDLE reporter empty >/dev/null 404 devlink health recover $DL_HANDLE reporter empty 419 local show=$(devlink health show $DL_HANDLE reporter $name -j | jq -e -r ".[][][]") 450 devlink health set $DL_HANDLE reporter dummy auto_recover false 456 echo "$BREAK_MSG"> $DEBUGFS_DIR/health/break_health 461 local dump=$(devlink health dump show $DL_HANDLE reporter dummy -j) 468 devlink health dump clear $DL_HANDLE reporter dummy 471 devlink health recover $DL_HANDLE reporter dummy [all …]
|
/openbmc/phosphor-health-monitor/ |
H A D | health_monitor.hpp | 9 namespace phosphor::health::monitor namespace 11 namespace ConfigIntf = phosphor::health::metric::config; 12 namespace MetricIntf = phosphor::health::metric; 13 namespace CollectionIntf = phosphor::health::metric::collection;
|
H A D | meson.build | 2 'phosphor-health-monitor', 23 'health-monitor', 49 input: 'phosphor-health-monitor.service.in', 50 output: 'phosphor-health-monitor.service',
|
H A D | phosphor-health-monitor.service.in | 2 Description=BMC health monitoring 5 ExecStart=@bindir@/health-monitor 9 SyslogIdentifier=phosphor-health-monitor
|
H A D | health_metric.hpp | 13 namespace phosphor::health::metric namespace 16 using phosphor::health::utils::paths_t; 17 using phosphor::health::utils::startUnit; 40 using MType = phosphor::health::metric::Type;
|
H A D | health_metric_collection.hpp | 5 namespace phosphor::health::metric::collection namespace 7 namespace ConfigIntf = phosphor::health::metric::config; 8 namespace MetricIntf = phosphor::health::metric;
|
H A D | health_monitor.cpp | 12 namespace phosphor::health::monitor namespace 15 using namespace phosphor::health::utils; 56 using namespace phosphor::health::monitor;
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | kirkwood-guruplug-server-plus.dts | 23 pmx_led_health_r: pmx-led-health-r { 27 pmx_led_health_g: pmx-led-health-g { 62 health-r { 63 label = "guruplug:red:health"; 66 health-g { 67 label = "guruplug:green:health";
|
/openbmc/linux/arch/arm/boot/dts/marvell/ |
H A D | kirkwood-guruplug-server-plus.dts | 23 pmx_led_health_r: pmx-led-health-r { 27 pmx_led_health_g: pmx-led-health-g { 62 health-r { 63 label = "guruplug:red:health"; 66 health-g { 67 label = "guruplug:green:health";
|
/openbmc/openbmc/meta-phosphor/recipes-phosphor/health/ |
H A D | phosphor-health-monitor_git.bb | 2 DESCRIPTION = "Daemon to collect and monitor bmc health statistics" 3 HOMEPAGE = "https://github.com/openbmc/phosphor-health-monitor" 15 SRC_URI = "git://github.com/openbmc/phosphor-health-monitor.git;protocol=https;branch=master" 18 SYSTEMD_SERVICE:${PN} = "phosphor-health-monitor.service"
|
/openbmc/openbmc-test-automation/gui/test/server_health/ |
H A D | test_obmc_gui_sensors.robot | 3 Documentation Test OpenBMC GUI "Sensors" sub-menu of "Server health". 13 ${xpath_select_sensors} //a[@href='#/server-health/sensors-overview'] 21 ... "Server health". 30 ... sub-menu of "Server health". 39 ... sub-menu of "Server health".
|
/openbmc/linux/drivers/power/supply/ |
H A D | da9052-battery.c | 172 int health; member 406 static int da9052_bat_check_health(struct da9052_battery *bat, int *health) in da9052_bat_check_health() argument 417 bat->health = POWER_SUPPLY_HEALTH_UNKNOWN; in da9052_bat_check_health() 421 if (bat->health != POWER_SUPPLY_HEALTH_OVERHEAT) { in da9052_bat_check_health() 426 bat->health = POWER_SUPPLY_HEALTH_DEAD; in da9052_bat_check_health() 428 bat->health = POWER_SUPPLY_HEALTH_GOOD; in da9052_bat_check_health() 431 *health = bat->health; in da9052_bat_check_health() 603 bat->health = POWER_SUPPLY_HEALTH_UNKNOWN; in da9052_bat_probe()
|
H A D | ucs1002_power.c | 108 int health; member 387 val->intval = info->health; in ucs1002_get_property() 452 if ((reg & F_ERR) && info->health != POWER_SUPPLY_HEALTH_GOOD) { in ucs1002_health_poll() 459 info->health = POWER_SUPPLY_HEALTH_OVERHEAT; in ucs1002_health_poll() 461 info->health = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in ucs1002_health_poll() 463 info->health = POWER_SUPPLY_HEALTH_OVERCURRENT; in ucs1002_health_poll() 465 info->health = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; in ucs1002_health_poll() 467 info->health = POWER_SUPPLY_HEALTH_GOOD; in ucs1002_health_poll() 645 info->health = POWER_SUPPLY_HEALTH_GOOD; in ucs1002_probe()
|
/openbmc/openbmc/meta-openembedded/meta-webserver/recipes-webadmin/netdata/netdata/ |
H A D | netdata.conf | 76 stock health config = @@libdir/netdata/conf.d/health.d 77 health config = @@sysconfdir/netdata/health.d 124 [health] 125 silencers file = @@localstatedir/lib/netdata/health.silencers.json
|
/openbmc/linux/drivers/hwmon/ |
H A D | pt5161l.c | 527 char health[16]; in pt5161l_debugfs_read_fw_load_sts() local 535 ret = snprintf(health, sizeof(health), "%s\n", in pt5161l_debugfs_read_fw_load_sts() 538 return simple_read_from_buffer(buf, count, ppos, health, ret); in pt5161l_debugfs_read_fw_load_sts() 552 char health[16]; in pt5161l_debugfs_read_hb_sts() local 560 ret = snprintf(health, sizeof(health), "%s\n", in pt5161l_debugfs_read_hb_sts() 563 return simple_read_from_buffer(buf, count, ppos, health, ret); in pt5161l_debugfs_read_hb_sts()
|