All of lore.kernel.org
 help / color / mirror / Atom feed
* [virtio-comment] Clarifying the language of VIRTIO_RPMB_REQ_PROGRAM_KEY
@ 2020-06-12 15:40 Alex Bennée
  2020-06-12 15:59 ` [virtio-comment] " Huang, Yang
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Bennée @ 2020-06-12 15:40 UTC (permalink / raw)
  To: virtio-comment; +Cc: Yang Huang, Bing Zhu, Tomas Winkler


Hi,

In the virtio-rpmb part of the spec it says:

  The operation of a virtio RPMB device is driven by the requests placed on the virtqueue.
    The type of request can be program key (VIRTIO_RPMB_REQ_PROGRAM_KEY),
    get write counter (VIRTIO_RPMB_REQ_GET_WRITE_COUNTER),
    write (VIRTIO_RPMB_REQ_DATA_WRITE), and read (VIRTIO_RPMB_REQ_DATA_READ).
    A program key or write request can also combine with a
    result read (VIRTIO_RPMB_REQ_RESULT_READ) for a returned result.

but later on:

  VIRTIO_RPMB_REQ_RESULT_READ
     requests for a returned result. It is used following with VIRTIO_RPMB_REQ_PROGRAM_KEY or VIRTIO_RPMB_REQ_DATA_WRITE request types for a returned result in one or multiple RPMB frames. If it’s not requested, the device will not return result frame to the driver.

So which is it? I can't quite see how a VIRTIO_RPMB_REQ_RESULT_READ can
be combined with the other requests because they are not overlapping
bits so maybe the working should be:

  A program key or write request can be followed by a result read (VIRTIO_RPMB_REQ_RESULT_READ) for a returned result.

Is that is what is intended?

-- 
Alex Bennée

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	[flat|nested] 2+ messages in thread

* [virtio-comment] RE: Clarifying the language of VIRTIO_RPMB_REQ_PROGRAM_KEY
  2020-06-12 15:40 [virtio-comment] Clarifying the language of VIRTIO_RPMB_REQ_PROGRAM_KEY Alex Bennée
@ 2020-06-12 15:59 ` Huang, Yang
  0 siblings, 0 replies; 2+ messages in thread
From: Huang, Yang @ 2020-06-12 15:59 UTC (permalink / raw)
  To: Alex Bennée, virtio-comment@lists.oasis-open.org
  Cc: Zhu, Bing, Winkler, Tomas

>   A program key or write request can be followed by a result read
> (VIRTIO_RPMB_REQ_RESULT_READ) for a returned result.
> 
> Is that is what is intended?

Yes.

RPMB Read/Get Write Counter implicitly requests for a result, so that VIRTIO_RPMB_REQ_RESULT_READ is not required.
Actually, it's aligned with the JEDEC spec.


> -----Original Message-----
> From: Alex Bennée <alex.bennee@linaro.org>
> Sent: Friday, June 12, 2020 11:41 PM
> To: virtio-comment@lists.oasis-open.org
> Cc: Huang, Yang <yang.huang@intel.com>; Zhu, Bing <bing.zhu@intel.com>;
> Winkler, Tomas <tomas.winkler@intel.com>
> Subject: Clarifying the language of VIRTIO_RPMB_REQ_PROGRAM_KEY
> 
> 
> Hi,
> 
> In the virtio-rpmb part of the spec it says:
> 
>   The operation of a virtio RPMB device is driven by the requests placed on the
> virtqueue.
>     The type of request can be program key (VIRTIO_RPMB_REQ_PROGRAM_KEY),
>     get write counter (VIRTIO_RPMB_REQ_GET_WRITE_COUNTER),
>     write (VIRTIO_RPMB_REQ_DATA_WRITE), and read
> (VIRTIO_RPMB_REQ_DATA_READ).
>     A program key or write request can also combine with a
>     result read (VIRTIO_RPMB_REQ_RESULT_READ) for a returned result.
> 
> but later on:
> 
>   VIRTIO_RPMB_REQ_RESULT_READ
>      requests for a returned result. It is used following with
> VIRTIO_RPMB_REQ_PROGRAM_KEY or VIRTIO_RPMB_REQ_DATA_WRITE
> request types for a returned result in one or multiple RPMB frames. If it’s not
> requested, the device will not return result frame to the driver.
> 
> So which is it? I can't quite see how a VIRTIO_RPMB_REQ_RESULT_READ can be
> combined with the other requests because they are not overlapping bits so
> maybe the working should be:
> 
>   A program key or write request can be followed by a result read
> (VIRTIO_RPMB_REQ_RESULT_READ) for a returned result.
> 
> Is that is what is intended?
> 
> --
> Alex Bennée

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

end of thread, other threads:[~2020-06-12 15:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-12 15:40 [virtio-comment] Clarifying the language of VIRTIO_RPMB_REQ_PROGRAM_KEY Alex Bennée
2020-06-12 15:59 ` [virtio-comment] " Huang, Yang

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.