Provide detailed specification of virtio-blk lifetime metrics
Subsystems (2)
PATCH v2 1/1 Provide detailed specification of virtio-blk lifetime metrics
In the course of review, some concerns were surfaced about the original virtio-blk lifetime proposal, as it depends on the eMMC spec which is not open
Add a more detailed description of the meaning of the fields added by that proposal to the virtio-blk specification, as to make it feasible to understand and implement the new lifetime metrics feature without needing to refer to JEDEC's specification
This patch does not change the meaning of those fields nor add any new fields, but it is intended to provide an open and more clear description of the meaning associated with those fields.
---
Changes in v2:
- clarified JEDEC references;
- added VIRTIO_BLK prefix and cleaned up comment syntax;
- clarified reserved block references
content.tex | 40 ++++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-)
content.tex +32 -8
@@ -4668,14 +4668,28 @@ \subsection{Device Operation}\label{sec:Device Types / Block Device / Device Ope }; \end{lstlisting} -The device lifetime metrics \field{pre_eol_info}, \field{device_lifetime_est_a} -and \field{device_lifetime_est_b} have the semantics described by the JESD84-B50 -specification for the extended CSD register fields \field{PRE_EOL_INFO} -\field{DEVICE_LIFETIME_EST_TYP_A} and \field{DEVICE_LIFETIME_EST_TYP_B} -respectively. +The \field{pre_eol_info} specifies the percentage of reserved blocks +that are consumed and will have one of these values: -JESD84-B50 is available at the JEDEC website (https://www.jedec.org) -pursuant to JEDEC's licensing terms and conditions. +\begin{lstlisting} +/* Value not available */ +#define VIRTIO_BLK_PRE_EOL_INFO_UNDEFINED 0 +/* < 80% of reserved blocks are consumed */ +#define VIRTIO_BLK_PRE_EOL_INFO_NORMAL 1 +/* 80% of reserved blocks are consumed */ +#define VIRTIO_BLK_PRE_EOL_INFO_WARNING 2 +/* 90% of reserved blocks are consumed */ +#define VIRTIO_BLK_PRE_EOL_INFO_URGENT 3 +/* All others values are reserved */ +\end{lstlisting} + +The \field{device_lifetime_est_typ_a} refers to wear of SLC cells and is provided +in increments of 10%, with 0 meaning undefined, 1 meaning up-to 10% of lifetime +used, and so on, thru to 11 meaning estimated lifetime exceeded. +All values above 11 are reserved. + +The \field{device_lifetime_est_typ_b} refers to wear of MLC cells and is provided +with the same semantics as \field{device_lifetime_est_typ_a}. The final \field{status} byte is written by the device: either VIRTIO_BLK_S_OK for success, VIRTIO_BLK_S_IOERR for device or driver
@@ -4812,7 +4826,17 @@ \subsection{Device Operation}\label{sec:Device Types / Block Device / Device Ope or UFS persistent storage), the device SHOULD offer the VIRTIO_BLK_F_LIFETIME flag. The flag MUST NOT be offered if the device is backed by storage for which the lifetime metrics described in this document cannot be obtained or for which -such metrics have no useful meaning. +such metrics have no useful meaning. If the metrics are offered, the device MUST NOT +send any reserved values, as defined in this specification. + +\begin{note} + The device lifetime metrics \field{pre_eol_info}, \field{device_lifetime_est_a} + and \field{device_lifetime_est_b} are discussed in the JESD84-B50 specification. + + The complete JESD84-B50 is available at the JEDEC website (https://www.jedec.org) + pursuant to JEDEC's licensing terms and conditions. This information is provided to + simplfy passthrough implementations from eMMC devices. +\end{note} \subsubsection{Legacy Interface: Device Operation}\label{sec:Device Types / Block Device / Device Operation / Legacy Interface: Device Operation} When using the legacy interface, transitional devices and drivers
Signature · 1 line
2.31.1.527.g47e6f16901-goog
PATCH v2 1/1 Provide detailed specification of virtio-blk lifetime metrics
---------- Forwarded message ---------
From: Enrico Granata <[email protected]>
Date: Wed, May 5, 2021 at 1:37 PM
Subject: [PATCH v2] Provide detailed specification of virtio-blk lifetime metrics
To: <[email protected]>
Cc: <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>
In the course of review, some concerns were surfaced about the original virtio-blk lifetime proposal, as it depends on the eMMC spec which is not open
Add a more detailed description of the meaning of the fields added by that proposal to the virtio-blk specification, as to make it feasible to understand and implement the new lifetime metrics feature without needing to refer to JEDEC's specification
This patch does not change the meaning of those fields nor add any new fields, but it is intended to provide an open and more clear description of the meaning associated with those fields.
---
Changes in v2:
- clarified JEDEC references;
- added VIRTIO_BLK prefix and cleaned up comment syntax;
- clarified reserved block references
content.tex | 40 ++++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-)
content.tex +0 -0
@@ -4668,14 +4668,28 @@ \subsection{Device Operation}\label{sec:Device
Types / Block Device / Device Ope
};
\end{lstlisting}
-The device lifetime metrics \field{pre_eol_info}, \field{device_lifetime_est_a} -and \field{device_lifetime_est_b} have the semantics described by the JESD84-B50
-specification for the extended CSD register fields \field{PRE_EOL_INFO} -\field{DEVICE_LIFETIME_EST_TYP_A} and \field{DEVICE_LIFETIME_EST_TYP_B} -respectively.
+The \field{pre_eol_info} specifies the percentage of reserved blocks +that are consumed and will have one of these values:
-JESD84-B50 is available at the JEDEC website (https://www.jedec.org)
-pursuant to JEDEC's licensing terms and conditions. +\begin{lstlisting}
+/* Value not available */
+#define VIRTIO_BLK_PRE_EOL_INFO_UNDEFINED 0
+/* < 80% of reserved blocks are consumed */
+#define VIRTIO_BLK_PRE_EOL_INFO_NORMAL 1
+/* 80% of reserved blocks are consumed */
+#define VIRTIO_BLK_PRE_EOL_INFO_WARNING 2
+/* 90% of reserved blocks are consumed */
+#define VIRTIO_BLK_PRE_EOL_INFO_URGENT 3
+/* All others values are reserved */
+\end{lstlisting}
+
+The \field{device_lifetime_est_typ_a} refers to wear of SLC cells and is provided
+in increments of 10%, with 0 meaning undefined, 1 meaning up-to 10% of lifetime +used, and so on, thru to 11 meaning estimated lifetime exceeded. +All values above 11 are reserved.
+
+The \field{device_lifetime_est_typ_b} refers to wear of MLC cells and is provided
+with the same semantics as \field{device_lifetime_est_typ_a}.
The final \field{status} byte is written by the device: either VIRTIO_BLK_S_OK for success, VIRTIO_BLK_S_IOERR for device or driver
@@ -4812,7 +4826,17 @@ \subsection{Device Operation}\label{sec:Device Types / Block Device / Device Ope
or UFS persistent storage), the device SHOULD offer the VIRTIO_BLK_F_LIFETIME flag. The flag MUST NOT be offered if the device is backed by storage for which the lifetime metrics described in this document cannot be obtained or for which
-such metrics have no useful meaning.
+such metrics have no useful meaning. If the metrics are offered, the device MUST NOT
+send any reserved values, as defined in this specification.
+
+\begin{note}
+ The device lifetime metrics \field{pre_eol_info}, \field{device_lifetime_est_a}
+ and \field{device_lifetime_est_b} are discussed in the JESD84-B50 specification.
+
+ The complete JESD84-B50 is available at the JEDEC website
(https://www.jedec.org)
+ pursuant to JEDEC's licensing terms and conditions. This information is provided to
+ simplfy passthrough implementations from eMMC devices. +\end{note}
\subsubsection{Legacy Interface: Device Operation}\label{sec:Device
Types / Block Device / Device Operation / Legacy Interface: Device Operation}
When using the legacy interface, transitional devices and drivers
--
2.31.1.527.g47e6f16901-goog
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Quoted 25 lines · On Wed, 5 May 2021 13:37:26 -0600 Enrico Granata <[email protected]> wrote:
---------- Forwarded message ---------
From: Enrico Granata <[email protected]>
Date: Wed, May 5, 2021 at 1:37 PM
Subject: [PATCH v2] Provide detailed specification of virtio-blk lifetime metrics
To: <[email protected]>
Cc: <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>In the course of review, some concerns were surfaced about the original virtio-blk lifetime proposal, as it depends on the eMMC spec which is not open
Add a more detailed description of the meaning of the fields added by that proposal to the virtio-blk specification, as to make it feasible to understand and implement the new lifetime metrics feature without needing to refer to JEDEC's specification
This patch does not change the meaning of those fields nor add any new fields, but it is intended to provide an open and more clear description of the meaning associated with those fields.
Signed-off-by Enrico Granata <[email protected]>
Quoted 8 lines
---
Changes in v2:
- clarified JEDEC references;
- addedVIRTIO_BLKprefix and cleaned up comment syntax;
- clarified reserved block referencescontent.tex | 40 ++++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-)
Do we have a consent here? I see the mails are not showing up on all of the lists, so I'm a bit confused regarding the state of this...
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
I believe the proposal was Acked-By and didn't receive any strong pushback
The only open point of discussion was whether to rename the feature flag to F_EMMC_LIFETIME in order to open the door for F_NVME_LIFETIME I think, but I didn't hear any comment on that
Thanks,
- Enrico
Quoted 35 lines · Cornelia Huck
Quoted 31 lines · On Wed, 5 May 2021 13:37:26 -0600 Enrico Granata <[email protected]> wrote:
---------- Forwarded message ---------
From: Enrico Granata <[email protected]>
Date: Wed, May 5, 2021 at 1:37 PM
Subject: [PATCH v2] Provide detailed specification of virtio-blk lifetime metrics
To: <[email protected]>
Cc: <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>In the course of review, some concerns were surfaced about the original virtio-blk lifetime proposal, as it depends on the eMMC spec which is not open
Add a more detailed description of the meaning of the fields added by that proposal to the virtio-blk specification, as to make it feasible to understand and implement the new lifetime metrics feature without needing to refer to JEDEC's specification
This patch does not change the meaning of those fields nor add any new fields, but it is intended to provide an open and more clear description of the meaning associated with those fields.
Signed-off-by Enrico Granata <[email protected]>---
Changes in v2:
- clarified JEDEC references;
- addedVIRTIO_BLKprefix and cleaned up comment syntax;
- clarified reserved block references
Quoted 6 lines
Quoted 2 lines
content.tex | 40 ++++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-)Do we have a consent here? I see the mails are not showing up on all of the lists, so I'm a bit confused regarding the state of this...
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Friendly ping here. Since no further feedback, would it make sense to set up a vote on this proposal?
Thanks,
- Enrico
Quoted 52 lines · Enrico Granata
I believe the proposal was Acked-By and didn't receive any strong pushback
The only open point of discussion was whether to rename the feature flag to
F_EMMC_LIFETIMEin order to open the door forF_NVME_LIFETIMEI think, but I didn't hear any comment on thatThanks,
- EnricoQuoted 41 lines · Cornelia Huck
Quoted 25 lines · On Wed, 5 May 2021 13:37:26 -0600 Enrico Granata <[email protected]> wrote:
---------- Forwarded message ---------
From: Enrico Granata <[email protected]>
Date: Wed, May 5, 2021 at 1:37 PM
Subject: [PATCH v2] Provide detailed specification of virtio-blk lifetime metrics
To: <[email protected]>
Cc: <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>In the course of review, some concerns were surfaced about the original virtio-blk lifetime proposal, as it depends on the eMMC spec which is not open
Add a more detailed description of the meaning of the fields added by that proposal to the virtio-blk specification, as to make it feasible to understand and implement the new lifetime metrics feature without needing to refer to JEDEC's specification
This patch does not change the meaning of those fields nor add any new fields, but it is intended to provide an open and more clear description of the meaning associated with those fields.
Signed-off-by Enrico Granata <[email protected]>Quoted 8 lines
---
Changes in v2:
- clarified JEDEC references;
- addedVIRTIO_BLKprefix and cleaned up comment syntax;
- clarified reserved block referencescontent.tex | 40 ++++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-)Do we have a consent here? I see the mails are not showing up on all of the lists, so I'm a bit confused regarding the state of this...
Quoted 25 lines · Enrico Granata
---------- Forwarded message ---------
From: Enrico Granata <[email protected]>
Date: Wed, May 5, 2021 at 1:37 PM
Subject: [PATCH v2] Provide detailed specification of virtio-blk lifetime metrics
To: <[email protected]>
Cc: <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>In the course of review, some concerns were surfaced about the original virtio-blk lifetime proposal, as it depends on the eMMC spec which is not open
Add a more detailed description of the meaning of the fields added by that proposal to the virtio-blk specification, as to make it feasible to understand and implement the new lifetime metrics feature without needing to refer to JEDEC's specification
This patch does not change the meaning of those fields nor add any new fields, but it is intended to provide an open and more clear description of the meaning associated with those fields.
Signed-off-by Enrico Granata <[email protected]>
Quoted 8 lines
---
Changes in v2:
- clarified JEDEC references;
- addedVIRTIO_BLKprefix and cleaned up comment syntax;
- clarified reserved block referencescontent.tex | 40 ++++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-)
Ping?
Quoted 32 lines · Stefan Hajnoczi
Quoted 31 lines · Enrico Granata
---------- Forwarded message ---------
From: Enrico Granata <[email protected]>
Date: Wed, May 5, 2021 at 1:37 PM
Subject: [PATCH v2] Provide detailed specification of virtio-blk lifetime metrics
To: <[email protected]>
Cc: <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>In the course of review, some concerns were surfaced about the original virtio-blk lifetime proposal, as it depends on the eMMC spec which is not open
Add a more detailed description of the meaning of the fields added by that proposal to the virtio-blk specification, as to make it feasible to understand and implement the new lifetime metrics feature without needing to refer to JEDEC's specification
This patch does not change the meaning of those fields nor add any new fields, but it is intended to provide an open and more clear description of the meaning associated with those fields.
Signed-off-by Enrico Granata <[email protected]>---
Changes in v2:
- clarified JEDEC references;
- addedVIRTIO_BLKprefix and cleaned up comment syntax;
- clarified reserved block references
Quoted 6 lines
Quoted 2 lines
content.tex | 40 ++++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-)Ping?
Reviewed-by Stefan Hajnoczi <[email protected]>
[Enrico is currently on leave of absence]
Is there any outstanding feedback from the linux-block folks? I've lost track of this, I'm afraid. (Your R-b is the only feedback I see on this list...)
We can certainly put up a vote. This is one of the things I wanted to see fixed for the next release of the standard.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Quoted 41 lines · Cornelia Huck
Quoted 32 lines · Stefan Hajnoczi
Quoted 31 lines · Enrico Granata
---------- Forwarded message ---------
From: Enrico Granata <[email protected]>
Date: Wed, May 5, 2021 at 1:37 PM
Subject: [PATCH v2] Provide detailed specification of virtio-blk lifetime metrics
To: <[email protected]>
Cc: <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>In the course of review, some concerns were surfaced about the original virtio-blk lifetime proposal, as it depends on the eMMC spec which is not open
Add a more detailed description of the meaning of the fields added by that proposal to the virtio-blk specification, as to make it feasible to understand and implement the new lifetime metrics feature without needing to refer to JEDEC's specification
This patch does not change the meaning of those fields nor add any new fields, but it is intended to provide an open and more clear description of the meaning associated with those fields.
Signed-off-by Enrico Granata <[email protected]>---
Changes in v2:
- clarified JEDEC references;
- addedVIRTIO_BLKprefix and cleaned up comment syntax;
- clarified reserved block referencesQuoted 6 lines
Quoted 2 lines
content.tex | 40 ++++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-)Ping?
Reviewed-by Stefan Hajnoczi <[email protected]>
Quoted 8 lines
[Enrico is currently on leave of absence]
Is there any outstanding feedback from the linux-block folks? I've lost track of this, I'm afraid. (Your R-b is the only feedback I see on this list...)
We can certainly put up a vote. This is one of the things I wanted to see fixed for the next release of the standard.
I have CCed Christoph, linux-block@, and virtualization@. Here is the link to the patch that we're discussing:
https://patchwork.kernel.org/project/linux-block/patch/[email protected]/
Stefan
Hi folks,
I am back from my leave of absence, so thank you everyone for your patience
This proposal has been outstanding for a while and didn't seem to receive pushback, especially compared to the initial proposal
Would it be the right time to put this modification up for a vote?
Thanks,
- Enrico
Thanks,
- Enrico
Quoted 57 lines · Stefan Hajnoczi
Quoted 41 lines · Cornelia Huck
Quoted 32 lines · Stefan Hajnoczi
Quoted 31 lines · Enrico Granata
---------- Forwarded message ---------
From: Enrico Granata <[email protected]>
Date: Wed, May 5, 2021 at 1:37 PM
Subject: [PATCH v2] Provide detailed specification of virtio-blk lifetime metrics
To: <[email protected]>
Cc: <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>In the course of review, some concerns were surfaced about the original virtio-blk lifetime proposal, as it depends on the eMMC spec which is not open
Add a more detailed description of the meaning of the fields added by that proposal to the virtio-blk specification, as to make it feasible to understand and implement the new lifetime metrics feature without needing to refer to JEDEC's specification
This patch does not change the meaning of those fields nor add any new fields, but it is intended to provide an open and more clear description of the meaning associated with those fields.
Signed-off-by Enrico Granata <[email protected]>---
Changes in v2:
- clarified JEDEC references;
- addedVIRTIO_BLKprefix and cleaned up comment syntax;
- clarified reserved block referencesQuoted 6 lines
Quoted 2 lines
content.tex | 40 ++++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-)Ping?
Reviewed-by Stefan Hajnoczi <[email protected]>Quoted 8 lines
[Enrico is currently on leave of absence]
Is there any outstanding feedback from the linux-block folks? I've lost track of this, I'm afraid. (Your R-b is the only feedback I see on this list...)
We can certainly put up a vote. This is one of the things I wanted to see fixed for the next release of the standard.
I have CCed Christoph, linux-block@, and virtualization@. Here is the link to the patch that we're discussing:
https://patchwork.kernel.org/project/linux-block/patch/[email protected]/Stefan
Quoted 7 lines · Enrico Granata
Hi folks,
I am back from my leave of absence, so thank you everyone for your patienceThis proposal has been outstanding for a while and didn't seem to receive pushback, especially compared to the initial proposal
Would it be the right time to put this modification up for a vote?
I guess no news is good news? (Or it fell through the cracks for everybody...)
I can update #106 and start voting.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
I would very much favor that - thanks for bringing this thread back to attention
Thanks,
- Enrico
Thanks,
- Enrico
Quoted 20 lines · Cornelia Huck
Quoted 7 lines · Enrico Granata
Hi folks,
I am back from my leave of absence, so thank you everyone for your patienceThis proposal has been outstanding for a while and didn't seem to receive pushback, especially compared to the initial proposal
Would it be the right time to put this modification up for a vote?
I guess no news is good news? (Or it fell through the cracks for everybody...)
I can update #106 and start voting.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Quoted 1 line · Enrico Granata
I would very much favor that - thanks for bringing this thread back to attention
Merged now, thank you for your patience.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Excellent thank you. I will send out an up-to-date kernel patch once I am back from my current leave (ETA within November)
Thanks,
- Enrico
Quoted 8 lines · Cornelia Huck
Quoted 1 line · Enrico Granata
I would very much favor that - thanks for bringing this thread back to
attention
Merged now, thank you for your patience.