Skip to content

scsi: ufs: ufs device as a temperature sensor

Avi Shchislowski lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/25 patches 2 repliesIn review
  2. v1 posting 1/25 patches 1 replySuperseded

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5scsi: ufs: Add ufs thermal supportdrivers/scsi/ufs/Kconfig drivers/scsi/ufs/Makefile drivers/scsi/ufs/ufs-thermal.c +4 more+178 -02 replies
2/5scsi: ufs: export ufshcd_enable_eedrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+3 -10 replies
3/5scsi: ufs: enable thermal exception eventdrivers/scsi/ufs/ufs-thermal.c drivers/scsi/ufs/ufs-thermal.h drivers/scsi/ufs/ufs.h +1 more+39 -50 replies
4/5scsi: ufs-thermal: implement thermal file opsdrivers/scsi/ufs/ufs-thermal.c drivers/scsi/ufs/ufs.h+117 -80 replies
5/5scsi: ufs: temperature atrributes add to ufs_sysfsdrivers/scsi/ufs/ufs-sysfs.c+6 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RESEND PATCH 0/5] scsi: ufs: ufs device as a temperature sensor

UFS3.0 allows using the ufs device as a temperature sensor. The purpose of this feature is to provide notification to the host of the UFS device case temperature. It allows reading of a rough estimate (+-10 degrees centigrade) of the current case temperature, And setting a lower and upper temperature bounds, in which the device will trigger an applicable exception event.

We added the capability of responding to such notifications, while notifying the kernel's thermal core, which further exposes the thermal zone attributes to user space. UFS temperature attributes are all read-only, so only thermal read ops (.get_xxx) can be implemented.

We are re-spinning this patchset per the request of Daniel Lezcano to cc the thermal maintainers.

Avi Shchislowski (5):
scsi: ufs: Add ufs thermal support
scsi: ufs: export ufshcd_enable_ee
scsi: ufs: enable thermal exception event
scsi: ufs-thermal: implement thermal file ops
scsi: ufs: temperature atrributes add to ufs_sysfs

 drivers/scsi/ufs/Kconfig       |  11 ++
 drivers/scsi/ufs/Makefile      |   1 +
 drivers/scsi/ufs/ufs-sysfs.c   |   6 +
 drivers/scsi/ufs/ufs-thermal.c | 249 +++++++++++++++++++++++++++++++++++++++++
 drivers/scsi/ufs/ufs-thermal.h |  25 +++++
 drivers/scsi/ufs/ufs.h         |  20 +++-
 drivers/scsi/ufs/ufshcd.c      |   9 +-
 drivers/scsi/ufs/ufshcd.h      |  12 ++
 8 files changed, 331 insertions(+), 2 deletions(-)
 create mode 100644 drivers/scsi/ufs/ufs-thermal.c
 create mode 100644 drivers/scsi/ufs/ufs-thermal.h
Signature · 1 line
1.9.1