virtio-rpmb: fix the description for multi-block reads
PATCH 1/1 virtio-rpmb: fix the description for multi-block reads
Previously the text said we fail if block count is set to 1 despite language elsewhere in the text referring to:
"For RPMB read request, one virtio buffer including request command and the subsequent [block_count] virtio buffers for response data are placed in the queue."
and the existence of both max_wr_cnt and max_rd_cnt configuration variables certainly implying devices should be able to handle multi-block reads just like writes.
Fix the description as well as format the steps as an enumerated list to match the style of the previous section describing write handling.
--- virtio-rpmb.tex | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-)
virtio-rpmb.tex +13 -11
@@ -239,22 +239,24 @@ \subsubsection{Device Operation: Request Queue}\label{sec:Device Types / RPMB De \devicenormative{\paragraph}{Device Operation: Data Read}{Device Types / RPMB Device / Device Operation / Device Operation: Data Read} -If the authentication key is not yet programmed then VIRTIO_RPMB_RES_NO_AUTH_KEY -SHOULD be returned in \field{result}. +\begin{enumerate} +\item If the authentication key is not yet programmed then + VIRTIO_RPMB_RES_NO_AUTH_KEY SHOULD be returned in \field{result}. -If block count has not been set to 1 then VIRTIO_RPMB_RES_GENERAL_FAILURE SHOULD be -responded as \field{result}. +\item If block count is zero or greater than \field{max_rd_cnt} then + VIRTIO_RPMB_RES_GENERAL_FAILURE SHOULD be responded as \field{result}. -If there is an error in the address (out of range) then the \field{result} SHOULD -be set to VIRTIO_RPMB_RES_ADDR_FAILURE. +\item If there is an error in the address (out of range) then the + \field{result} SHOULD be set to VIRTIO_RPMB_RES_ADDR_FAILURE. -If data fetch from addressed location inside the device fails then the \field{result} -SHOULD be VIRTIO_RPMB_RES_READ_FAILURE. +\item If data fetch from addressed location inside the device fails + then the \field{result} SHOULD be VIRTIO_RPMB_RES_READ_FAILURE. -If some other error occurs during the read procedure then the \field{result} -SHOULD be VIRTIO_RPMB_RES_GENERAL_FAILURE. +\item If some other error occurs during the read procedure then the + \field{result} SHOULD be VIRTIO_RPMB_RES_GENERAL_FAILURE. -The \field{req_resp} value VIRTIO_RPMB_RESP_DATA_READ SHOULD be responded. +\item The device SHOULD respond with \field{block_count} frames containing the data and \field{req_resp} value set to VIRTIO_RPMB_RESP_DATA_READ. +\end{enumerate} \devicenormative{\paragraph}{Device Operation: Result Read}{Device Types / RPMB Device / Device Operation / Device Operation: Result Read}
Signature · 18 lines
2.20.1 This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC. In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting. Subscribe: [email protected] Unsubscribe: [email protected] List help: [email protected] List archive: https://lists.oasis-open.org/archives/virtio-comment/ Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists Committee: https://www.oasis-open.org/committees/virtio/ Join OASIS: https://www.oasis-open.org/join/
Quoted 50 lines
-----Original Message-----
From: Alex Bennée <[email protected]>
Sent: Thursday, July 22, 2021 7:09 PM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Winkler, Tomas <[email protected]>; Huang, Yang <[email protected]>; Zhu, Bing <[email protected]>; [email protected]; [email protected]; Alex Bennée <[email protected]>
Subject: [PATCH] virtio-rpmb: fix the description for multi-block readsPreviously the text said we fail if block count is set to 1 despite language elsewhere in the text referring to:
"For RPMB read request, one virtio buffer including request command and the subsequent [
block_count] virtio buffers for response data are placed in the queue."and the existence of both
max_wr_cntandmax_rd_cntconfiguration variables certainly implying devices should be able to handle multi-block reads just like writes.Fix the description as well as format the steps as an enumerated list to match the style of the previous section describing write handling.
Reported-by Ruchika Gupta <[email protected]>Signed-off-by Alex Bennée <[email protected]>--- virtio-rpmb.tex | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-)virtio-rpmb.tex +0
-0@@ -239,22 +239,24 @@ \subsubsection{Device Operation: RequestQueue}\label{sec:Device Types / RPMB De
\devicenormative{\paragraph}{Device Operation: Data Read}{Device Types /
RPMB Device / Device Operation / Device Operation: Data Read}-If the authentication key is not yet programmed then
VIRTIO_RPMB_RES_NO_AUTH_KEY-SHOULD be returned in \field{result}. +\begin{enumerate}
+\item If the authentication key is not yet programmed thenvirtio-rpmb.tex +1
-1+ VIRTIO_RPMB_RES_NO_AUTH_KEY SHOULD be returned in \field{result}. -If block count has not been set to 1 then
Quoted 4 lines
VIRTIO_RPMB_RES_GENERAL_FAILURESHOULD be -responded as \field{result}. +\item If block count is zero or greater than \field{max_rd_cnt} then
+VIRTIO_RPMB_RES_GENERAL_FAILURESHOULD be responded as \field{result}.
Reviewed. Thank you for the correction.
Quoted 26 lines
-If there is an error in the address (out of range) then the \field{result} SHOULD - be set to
VIRTIO_RPMB_RES_ADDR_FAILURE.
+\item If there is an error in the address (out of range) then thevirtio-rpmb.tex +1
-1+ \field{result} SHOULD be set to VIRTIO_RPMB_RES_ADDR_FAILURE. -If data fetch from addressed location inside the device fails then the\field{result} -SHOULD be
VIRTIO_RPMB_RES_READ_FAILURE. +\item If data fetch from addressed location inside the device failsvirtio-rpmb.tex +1
-1+ then the \field{result} SHOULD be VIRTIO_RPMB_RES_READ_FAILURE. -If some other error occurs during the read procedure then the \field{result} -SHOULD be
VIRTIO_RPMB_RES_GENERAL_FAILURE.
+\item If some other error occurs during the read procedure then thevirtio-rpmb.tex +1
-1+ \field{result} SHOULD be VIRTIO_RPMB_RES_GENERAL_FAILURE. -The \field{req_resp} value VIRTIO_RPMB_RESP_DATA_READ SHOULD beresponded.
+\item The device SHOULD respond with \field{block_count} frames containing the data and \field{req_resp} value set toVIRTIO_RPMB_RESP_DATA_READ. +\end{enumerate}\devicenormative{\paragraph}{Device Operation: Result Read}{Device Types /
RPMB Device / Device Operation / Device Operation: Result Read}--
2.20.1
Quoted 11 lines · Alex Bennée
Previously the text said we fail if block count is set to 1 despite language elsewhere in the text referring to:
"For RPMB read request, one virtio buffer including request command and the subsequent [
block_count] virtio buffers for response data are placed in the queue."and the existence of both
max_wr_cntandmax_rd_cntconfiguration variables certainly implying devices should be able to handle multi-block reads just like writes.
Quoted 8 lines
Fix the description as well as format the steps as an enumerated list to match the style of the previous section describing write handling.
Reported-by Ruchika Gupta <[email protected]>Signed-off-by Alex Bennée <[email protected]>--- virtio-rpmb.tex | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-)
Do you want to request a vote for this?
This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.
In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.
Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/
Quoted 16 lines · Cornelia Huck
Quoted 14 lines · Alex Bennée
Previously the text said we fail if block count is set to 1 despite language elsewhere in the text referring to:
"For RPMB read request, one virtio buffer including request command and the subsequent [
block_count] virtio buffers for response data are placed in the queue."and the existence of both
max_wr_cntandmax_rd_cntconfiguration variables certainly implying devices should be able to handle multi-block reads just like writes.Fix the description as well as format the steps as an enumerated list to match the style of the previous section describing write handling.
Quoted 7 lines
Quoted 5 lines
Reported-by Ruchika Gupta <[email protected]>Signed-off-by Alex Bennée <[email protected]>--- virtio-rpmb.tex | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-)Do you want to request a vote for this?
Sure - I think it's a clarification rather than a "new" feature but whatever is needed to get it merged ;-)
Signature · 1 line
Alex Bennée
Quoted 24 lines · Alex Bennée
Quoted 22 lines · Cornelia Huck
Quoted 19 lines · Alex Bennée
Previously the text said we fail if block count is set to 1 despite language elsewhere in the text referring to:
"For RPMB read request, one virtio buffer including request command and the subsequent [
block_count] virtio buffers for response data are placed in the queue."and the existence of both
max_wr_cntandmax_rd_cntconfiguration variables certainly implying devices should be able to handle multi-block reads just like writes.Fix the description as well as format the steps as an enumerated list to match the style of the previous section describing write handling.
Reported-by Ruchika Gupta <[email protected]>Signed-off-by Alex Bennée <[email protected]>--- virtio-rpmb.tex | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-)
Quoted 4 lines
Quoted 1 line
Do you want to request a vote for this?
Sure - I think it's a clarification rather than a "new" feature but whatever is needed to get it merged ;-)
Yes, I think it is slightly over the line of things I would merge as an editorial update, so please open a github issue.
This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC.
In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting.
Subscribe: [email protected]
Unsubscribe: [email protected]
List help: [email protected]
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/
Quoted 26 lines · Cornelia Huck
Quoted 24 lines · Alex Bennée
Quoted 22 lines · Cornelia Huck
Quoted 19 lines · Alex Bennée
Previously the text said we fail if block count is set to 1 despite language elsewhere in the text referring to:
"For RPMB read request, one virtio buffer including request command and the subsequent [
block_count] virtio buffers for response data are placed in the queue."and the existence of both
max_wr_cntandmax_rd_cntconfiguration variables certainly implying devices should be able to handle multi-block reads just like writes.Fix the description as well as format the steps as an enumerated list to match the style of the previous section describing write handling.
Reported-by Ruchika Gupta <[email protected]>Signed-off-by Alex Bennée <[email protected]>--- virtio-rpmb.tex | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-)
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Do you want to request a vote for this?
Sure - I think it's a clarification rather than a "new" feature but whatever is needed to get it merged ;-)
Yes, I think it is slightly over the line of things I would merge as an editorial update, so please open a github issue.
Done:
https://github.com/oasis-tcs/virtio-spec/issues/113
Signature · 1 line
Alex Bennée