All of lore.kernel.org
 help / color / mirror / Atom feed
* [virtio-comment] [RFC PATCH] virtio-rpmb: fix spec land mine in max_[wr|rd]_cnt
@ 2023-06-19 12:01 Alex Bennée
  2023-06-21  9:30 ` Cornelia Huck
  2023-06-26 19:05 ` Harald Mommer
  0 siblings, 2 replies; 5+ messages in thread
From: Alex Bennée @ 2023-06-19 12:01 UTC (permalink / raw)
  To: virtio-comment
  Cc: Alex Bennée, Manos Pitsidianakis, Harald Mommer, Will Deacon

Even if 0 meant no limit we are still limited by the field size of the
request. That said for a maximum sized partition (* 80 128 1024) you
could only actually request 40960 blocks before running out of device.
Perhaps it would be better to mark 0 as invalid?

Cc: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Cc: Harald Mommer <hmo@opensynergy.com>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 device-types/rpmb/description.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/device-types/rpmb/description.tex b/device-types/rpmb/description.tex
index 1dae3fd..2ce8a5b 100644
--- a/device-types/rpmb/description.tex
+++ b/device-types/rpmb/description.tex
@@ -37,7 +37,7 @@ \subsection{Device configuration layout}\label{sec:Device Types / RPMB Device /
    The values MUST range between 0x00 and 0x80 inclusive.
 \item[\field{max_wr_cnt and max_rd_cnt}] are the maximum numbers of RPMB
    block count (256B) that can be performed to device in one request. 0 implies
-   no limitation.
+   no limitation other than the maximum value you can store in \field{block_count} (65535).
 \end{description}
 
 \devicenormative{\subsection}{Device Initialization}{Device Types / RPMB Device / Device Initialization}
-- 
2.39.2


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: virtio-comment-subscribe@lists.oasis-open.org
Unsubscribe: virtio-comment-unsubscribe@lists.oasis-open.org
List help: virtio-comment-help@lists.oasis-open.org
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/


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-06-26 20:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-19 12:01 [virtio-comment] [RFC PATCH] virtio-rpmb: fix spec land mine in max_[wr|rd]_cnt Alex Bennée
2023-06-21  9:30 ` Cornelia Huck
2023-06-22 13:16   ` Alex Bennée
2023-06-26 19:05 ` Harald Mommer
2023-06-26 20:03   ` Alex Bennée

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.