[PATCH 0/2] scsi: ufs: critical health condition

From: Avri Altman
Date: Mon Feb 03 2025 - 10:32:11 EST


Martin hi,
The UFS4.1 standard, released on January 8 2025, is adding several new
features. Among them a new exception event: HEALTH_CRITICAL, which
notify the host of a device's critical health condition. This
notification implies that the device is approaching to the end of its
life time based on the amount of performed program/erase cycles.

We use the hw monitor subsystem to proliferate this info via the chip
alarm channel.

Please consider this for the next merge window.

Thanks,
Avri

Avri Altman (2):
scsi: ufs: hwmon: Prepare for more hwmon notifications
scsi: ufs: Add support for critical health notification

drivers/ufs/core/Kconfig | 2 +-
drivers/ufs/core/ufs-hwmon.c | 12 ++++++++----
drivers/ufs/core/ufshcd-priv.h | 8 ++++----
drivers/ufs/core/ufshcd.c | 31 ++++++++++++++++++++++++++-----
include/ufs/ufs.h | 1 +
5 files changed, 40 insertions(+), 14 deletions(-)

--
2.25.1