Home
last modified time | relevance | path

Searched refs:health (Results 1 – 25 of 77) sorted by relevance

1234

/linux/drivers/net/netdevsim/
H A Dhealth.c43 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()
112 struct nsim_dev_health *health = devlink_health_reporter_priv(reporter); in nsim_dev_dummy_reporter_dump() local
118 return nsim_dev_dummy_fmsg_put(fmsg, health->binary_len); in nsim_dev_dummy_reporter_dump()
126 struct nsim_dev_health *health = devlink_health_reporter_priv(reporter); in nsim_dev_dummy_reporter_diagnose() local
128 if (health->recovered_break_msg) in nsim_dev_dummy_reporter_diagnose()
130 health->recovered_break_msg); in nsim_dev_dummy_reporter_diagnose()
[all …]
/linux/Documentation/networking/devlink/
H A Ddevlink-health.rst10 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 Dmlx4.rst48 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 Ddevlink-region.rst25 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
/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Dreporter_vnic.c84 struct mlx5_core_health *health = &dev->priv.health; in mlx5_reporter_vnic_create() local
87 health->vnic_reporter = in mlx5_reporter_vnic_create()
91 if (IS_ERR(health->vnic_reporter)) in mlx5_reporter_vnic_create()
94 PTR_ERR(health->vnic_reporter)); in mlx5_reporter_vnic_create()
99 struct mlx5_core_health *health = &dev->priv.health; in mlx5_reporter_vnic_destroy() local
101 if (!IS_ERR_OR_NULL(health->vnic_reporter)) in mlx5_reporter_vnic_destroy()
102 devlink_health_reporter_destroy(health->vnic_reporter); in mlx5_reporter_vnic_destroy()
H A Dcrdump.c14 return !!dev->priv.health.crdump_size; in mlx5_crdump_enabled()
19 u32 crdump_size = dev->priv.health.crdump_size; in mlx5_crdump_fill()
111 priv->health.crdump_size = space_size; in mlx5_crdump_enable()
117 dev->priv.health.crdump_size = 0; in mlx5_crdump_disable()
/linux/tools/testing/selftests/drivers/net/netdevsim/
H A Ddevlink.sh402 devlink health show $DL_HANDLE reporter empty >/dev/null
405 devlink health dump show $DL_HANDLE reporter empty >/dev/null
408 devlink health diagnose $DL_HANDLE reporter empty >/dev/null
411 devlink health recover $DL_HANDLE reporter empty
426 local show=$(devlink health show $DL_HANDLE reporter $name -j | jq -e -r ".[][][]")
457 devlink health set $DL_HANDLE reporter dummy auto_recover false
463 echo "$BREAK_MSG"> $DEBUGFS_DIR/health/break_health
468 local dump=$(devlink health dump show $DL_HANDLE reporter dummy -j)
475 devlink health dump clear $DL_HANDLE reporter dummy
478 devlink health recover $DL_HANDLE reporter dummy
[all …]
/linux/arch/arm/boot/dts/marvell/
H A Dkirkwood-guruplug-server-plus.dts23 pmx_led_health_r: pmx-led-health-r {
27 pmx_led_health_g: pmx-led-health-g {
62 led-health-r {
63 label = "guruplug:red:health";
66 led-health-g {
67 label = "guruplug:green:health";
H A Dkirkwood-sheevaplug.dts31 led-health {
32 label = "sheevaplug:blue:health";
H A Dkirkwood-sheevaplug-esata.dts36 led-health {
37 label = "sheevaplug:blue:health";
H A Dkirkwood-mplcec4.dts23 pmx_led_health: pmx-led-health {
117 led-health {
118 label = "status:green:health";
H A Dkirkwood-linksys-viper.dts57 led-white-health {
58 label = "viper:white:health";
70 pmx_led_white_health: pmx-led-white-health {
H A Dkirkwood-iomega_ix2_200.dts87 pmx_led_health_brt_ctrl_1: pmx-led-health-brt-ctrl-1 {
91 pmx_led_health_brt_ctrl_2: pmx-led-health-brt-ctrl-2 {
139 led-health-led {
H A Dkirkwood-dockstar.dts45 led-health {
46 label = "status:green:health";
/linux/drivers/power/supply/
H A Dda9052-battery.c172 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 Ducs1002_power.c108 int health; member
382 val->intval = info->health; in ucs1002_get_property()
450 if ((reg & F_ERR) && info->health != POWER_SUPPLY_HEALTH_GOOD) { in ucs1002_health_poll()
457 info->health = POWER_SUPPLY_HEALTH_OVERHEAT; in ucs1002_health_poll()
459 info->health = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in ucs1002_health_poll()
461 info->health = POWER_SUPPLY_HEALTH_OVERCURRENT; in ucs1002_health_poll()
463 info->health = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; in ucs1002_health_poll()
465 info->health = POWER_SUPPLY_HEALTH_GOOD; in ucs1002_health_poll()
643 info->health = POWER_SUPPLY_HEALTH_GOOD; in ucs1002_probe()
H A Dbq24190_charger.c995 int health; in bq24190_charger_get_ntc_status() local
1001 health = POWER_SUPPLY_HEALTH_COLD; in bq24190_charger_get_ntc_status()
1006 health = POWER_SUPPLY_HEALTH_OVERHEAT; in bq24190_charger_get_ntc_status()
1009 health = POWER_SUPPLY_HEALTH_UNKNOWN; in bq24190_charger_get_ntc_status()
1012 return health; in bq24190_charger_get_ntc_status()
1017 int health; in bq24296_charger_get_ntc_status() local
1021 health = POWER_SUPPLY_HEALTH_GOOD; in bq24296_charger_get_ntc_status()
1024 health = POWER_SUPPLY_HEALTH_OVERHEAT; in bq24296_charger_get_ntc_status()
1027 health = POWER_SUPPLY_HEALTH_COLD; in bq24296_charger_get_ntc_status()
1030 health = POWER_SUPPLY_HEALTH_UNKNOWN; in bq24296_charger_get_ntc_status()
[all …]
H A Dwm831x_power.c393 static int wm831x_bat_check_health(struct wm831x *wm831x, int *health) in wm831x_bat_check_health() argument
402 *health = POWER_SUPPLY_HEALTH_OVERHEAT; in wm831x_bat_check_health()
407 *health = POWER_SUPPLY_HEALTH_COLD; in wm831x_bat_check_health()
412 *health = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in wm831x_bat_check_health()
419 *health = POWER_SUPPLY_HEALTH_OVERHEAT; in wm831x_bat_check_health()
422 *health = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; in wm831x_bat_check_health()
425 *health = POWER_SUPPLY_HEALTH_GOOD; in wm831x_bat_check_health()
H A Dbq2515x_charger.c701 int health = POWER_SUPPLY_HEALTH_GOOD; in bq2515x_charger_get_health() local
720 health = POWER_SUPPLY_HEALTH_HOT; in bq2515x_charger_get_health()
723 health = POWER_SUPPLY_HEALTH_WARM; in bq2515x_charger_get_health()
726 health = POWER_SUPPLY_HEALTH_COOL; in bq2515x_charger_get_health()
729 health = POWER_SUPPLY_HEALTH_COLD; in bq2515x_charger_get_health()
732 health = POWER_SUPPLY_HEALTH_UNKNOWN; in bq2515x_charger_get_health()
738 health = POWER_SUPPLY_HEALTH_OVERVOLTAGE; in bq2515x_charger_get_health()
741 health = POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE; in bq2515x_charger_get_health()
743 val->intval = health; in bq2515x_charger_get_health()
/linux/drivers/hwmon/
H A Dpt5161l.c527 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()
/linux/drivers/platform/x86/
H A Dmlx-platform.c782 .health = false,
791 .health = false,
800 .health = false,
809 .health = true,
821 .health = false,
830 .health = false,
839 .health = false,
848 .health = true,
870 .health = false,
879 .health = false,
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-papr-pmem8 more bits set in the dimm-health-bitmap retrieved in
28 There is health event for the NVDIMM.
70 (RO) Reports the health bitmap inject bitmap that is applied to
73 used to simulate various health or shutdown states for an nvdimm
/linux/Documentation/hwmon/
H A Duserspace-tools.rst7 Most mainboards have sensor chips to monitor system health (like temperatures,
18 Core set of utilities that will allow you to obtain health information,
39 If you want some graphical indicators of system health look for applications
/linux/Documentation/networking/device_drivers/ethernet/amd/
H A Dpds_core.rst108 The driver supports a devlink health reporter for FW status::
110 # devlink health show pci/0000:2b:00.0 reporter fw
114 # devlink health diagnose pci/0000:2b:00.0 reporter fw
/linux/Documentation/arch/powerpc/
H A Dpapr_hcalls.rst223 | Out: *health-bitmap (r4), health-bit-valid-bitmap (r5)*
226 Given a DRC Index return the info on predictive failure and overall health of
227 the PMEM device. The asserted bits in the health-bitmap indicate one or more states
228 (described in table below) of the PMEM device and health-bit-valid-bitmap indicate
229 which bits in health-bitmap are valid. The bits are reported in
255 | 06 | PMEM device contents cannot persist due to current platform health |

1234