From 5d24f7195616a704788829cac93b940518a38935 Mon Sep 17 00:00:00 2001 From: Brandon Paupore Date: Tue, 23 Jun 2020 14:51:33 -0500 Subject: [PATCH] Added documentation for temperature stats function --- Documentation/nvme-wdc-vs-temperature-stats.1 | 179 ++++ .../nvme-wdc-vs-temperature-stats.html | 864 ++++++++++++++++++ .../nvme-wdc-vs-temperature-stats.txt | 78 ++ 3 files changed, 1121 insertions(+) create mode 100644 Documentation/nvme-wdc-vs-temperature-stats.1 create mode 100644 Documentation/nvme-wdc-vs-temperature-stats.html create mode 100644 Documentation/nvme-wdc-vs-temperature-stats.txt diff --git a/Documentation/nvme-wdc-vs-temperature-stats.1 b/Documentation/nvme-wdc-vs-temperature-stats.1 new file mode 100644 index 0000000..9d54029 --- /dev/null +++ b/Documentation/nvme-wdc-vs-temperature-stats.1 @@ -0,0 +1,179 @@ +'\" t +.\" Title: nvme-wdc-vs-temperature-stats +.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] +.\" Generator: DocBook XSL Stylesheets v1.79.1 +.\" Date: 06/23/2020 +.\" Manual: NVMe Manual +.\" Source: NVMe +.\" Language: English +.\" +.TH "NVME\-WDC\-VS\-TEMPE" "1" "06/23/2020" "NVMe" "NVMe Manual" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +nvme-wdc-vs-temperature-stats \- Display temperature\-related statistics +.SH "SYNOPSIS" +.sp +.nf +\fInvme wdc vs\-temperature\-stats\fR +.fi +.SH "DESCRIPTION" +.sp +For the NVMe device given, displays temperature statistics\&. +.sp +The parameter is mandatory NVMe character device (ex: /dev/nvme0)\&. +.sp +This will only work on WDC devices supporting this feature\&. Results for any other device are undefined\&. +.sp +Expected status and description :\- +.TS +allbox tab(:); +ltB ltB. +T{ +Statistic +T}:T{ +Description +T} +.T& +lt lt +lt lt +lt lt +lt lt +lt lt +lt lt +lt lt +lt lt +lt lt +lt lt +lt lt +lt lt. +T{ +.sp +The current composite temperature +T}:T{ +.sp +device temperature +T} +T{ +.sp +Warning Composite TEMPerature threshold +T}:T{ +.sp +temp of overheating +T} +T{ +.sp +Critical Composite TEMPerature threshold +T}:T{ +.sp +temp of critical overheating +T} +T{ +.sp +DITT support status +T}:T{ +.sp +0 = unsupported +T} +T{ +.sp +Host Controlled Thermal Management support +T}:T{ +.sp +0 = unsupported, 1 = supported +T} +T{ +.sp +Thermal Management Temperature 1 (Light throttle) +T}:T{ +.sp +temp to start light throttle +T} +T{ +.sp +Thermal Management Temperature 1 Transition Counter +T}:T{ +.sp +# times switched into light throttle +T} +T{ +.sp +Thermal Management Temperature 1 Total Time +T}:T{ +.sp +# seconds spent in light throttle +T} +T{ +.sp +Thermal Management Temperature 2 (Heavy throttle) +T}:T{ +.sp +temp to start heavy throttle +T} +T{ +.sp +Thermal Management Temperature 2 Transition Counter +T}:T{ +.sp +# times switched into heavy throttle +T} +T{ +.sp +Thermal Management Temperature 2 Total Time +T}:T{ +.sp +# seconds spent in heavy throttle +T} +T{ +.sp +Thermal Shutdown Threshold +T}:T{ +.sp +temp of device shutdown +T} +.TE +.sp 1 +.sp +On success it returns 0, error code otherwise\&. +.SH "EXAMPLES" +.sp +.RS 4 +.ie n \{\ +\h'-04'\(bu\h'+03'\c +.\} +.el \{\ +.sp -1 +.IP \(bu 2.3 +.\} +Displays the temperature stats for the device: +.sp +.if n \{\ +.RS 4 +.\} +.nf +# nvme wdc vs\-temperature\-stats /dev/nvme0 +.fi +.if n \{\ +.RE +.\} +.RE +.SH "NVME" +.sp +Part of the nvme\-user suite\&. diff --git a/Documentation/nvme-wdc-vs-temperature-stats.html b/Documentation/nvme-wdc-vs-temperature-stats.html new file mode 100644 index 0000000..745ac73 --- /dev/null +++ b/Documentation/nvme-wdc-vs-temperature-stats.html @@ -0,0 +1,864 @@ + + + + + + +nvme-wdc-vs-temperature-stats(1) + + + + + +
+
+

SYNOPSIS

+
+
+
nvme wdc vs-temperature-stats <device>
+
+
+
+
+
+

DESCRIPTION

+
+

For the NVMe device given, displays temperature statistics.

+

The <device> parameter is mandatory NVMe character device (ex: /dev/nvme0).

+

This will only work on WDC devices supporting this feature. +Results for any other device are undefined.

+

Expected status and description :-

+
+ +++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Statistic Description

The current composite temperature

device temperature

Warning Composite TEMPerature threshold

temp of overheating

Critical Composite TEMPerature threshold

temp of critical overheating

DITT support status

0 = unsupported

Host Controlled Thermal Management support

0 = unsupported, 1 = supported

Thermal Management Temperature 1 (Light throttle)

temp to start light throttle

Thermal Management Temperature 1 Transition Counter

# times switched into light throttle

Thermal Management Temperature 1 Total Time

# seconds spent in light throttle

Thermal Management Temperature 2 (Heavy throttle)

temp to start heavy throttle

Thermal Management Temperature 2 Transition Counter

# times switched into heavy throttle

Thermal Management Temperature 2 Total Time

# seconds spent in heavy throttle

Thermal Shutdown Threshold

temp of device shutdown

+
+

On success it returns 0, error code otherwise.

+
+
+
+

EXAMPLES

+
+
    +
  • +

    +Displays the temperature stats for the device: +

    +
    +
    +
    # nvme wdc vs-temperature-stats /dev/nvme0
    +
    +
  • +
+
+
+
+

NVME

+
+

Part of the nvme-user suite.

+
+
+
+

+ + + diff --git a/Documentation/nvme-wdc-vs-temperature-stats.txt b/Documentation/nvme-wdc-vs-temperature-stats.txt new file mode 100644 index 0000000..03a918b --- /dev/null +++ b/Documentation/nvme-wdc-vs-temperature-stats.txt @@ -0,0 +1,78 @@ +nvme-wdc-vs-temperature-stats(1) +================================ + +NAME +---- +nvme-wdc-vs-temperature-stats - Display temperature-related statistics + +SYNOPSIS +-------- +[verse] +'nvme wdc vs-temperature-stats' + +DESCRIPTION +----------- + +For the NVMe device given, displays temperature statistics. + +The parameter is mandatory NVMe character device (ex: /dev/nvme0). + +This will only work on WDC devices supporting this feature. +Results for any other device are undefined. + +Expected status and description :- + +[cols="2*", options="header"] +|=== +|Statistic |Description + +|The current composite temperature +|device temperature + +|Warning Composite TEMPerature threshold +|temp of overheating + +|Critical Composite TEMPerature threshold +|temp of critical overheating + +|DITT support status +|0 = unsupported + +|Host Controlled Thermal Management support +|0 = unsupported, 1 = supported + +|Thermal Management Temperature 1 (Light throttle) +|temp to start light throttle + +|Thermal Management Temperature 1 Transition Counter +|# times switched into light throttle + +|Thermal Management Temperature 1 Total Time +|# seconds spent in light throttle + +|Thermal Management Temperature 2 (Heavy throttle) +|temp to start heavy throttle + +|Thermal Management Temperature 2 Transition Counter +|# times switched into heavy throttle + +|Thermal Management Temperature 2 Total Time +|# seconds spent in heavy throttle + +|Thermal Shutdown Threshold +|temp of device shutdown +|=== + +On success it returns 0, error code otherwise. + +EXAMPLES +-------- +* Displays the temperature stats for the device: ++ +------------ +# nvme wdc vs-temperature-stats /dev/nvme0 +------------ + +NVME +---- +Part of the nvme-user suite. -- 2.49.0