lkml.org 
[lkml]   [2017]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2 v4] scsi: ufs: introduce sysfs entries exposing UFS health info
On Wed, Dec 20, 2017 at 02:13:25PM -0800, Jaegeuk Kim wrote:
> This patch adds a new sysfs group, namely health, via:
>
> /sys/devices/soc/X.ufshc/health/
>
> This directory contains the below entries, each of which shows an 8-bytes
> hex number representing different meanings defined by JEDEC specfication.
>
> Users can simply read these entries to check how their underlying flash
> storage is getting reached out to its end of life. For example, if
> lifetimeA shows 0xb, it would be the right time to consider device swap.
>
> - length
> : must be 25h
>
> - type
> : must be 09h
>
> - eol
> 00h: Not defined
> 01h: Normal
> 02h: Warning
> 03h: Critical
>
> - lifetimeA/B
> 00h: Not defined
> 01h: 0% ~ 10% device life time used
> 02h: 10% ~ 20% device life time used
> 03h: 20% ~ 30% device life time used
> 04h: 30% ~ 40% device life time used
> 05h: 40% ~ 50% device life time used
> 06h: 50% ~ 60% device life time used
> 07h: 60% ~ 70% device life time used
> 08h: 70% ~ 80% device life time used
> 09h: 80% ~ 90% device life time used
> 0Ah: 90% ~ 100% device life time used
> 0Bh: Exceeded its maximum estimated device life time
>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
> ---

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

\
 
 \ /
  Last update: 2017-12-21 09:00    [W:0.076 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site