* [virtio-comment] [PATCH] virtio-can: define out of rage can-id
@ 2024-02-28 16:15 Matias Ezequiel Vara Larsen
2024-02-28 18:15 ` Harald Mommer
0 siblings, 1 reply; 3+ messages in thread
From: Matias Ezequiel Vara Larsen @ 2024-02-28 16:15 UTC (permalink / raw)
To: virtio-comment; +Cc: mvaralar, harald.mommer
This commit explains when a message is out of range.
Signed-off-by: Matias Ezequiel Vara Larsen <mvaralar@redhat.com>
---
* This patch applies on top of virtio-1.4, which has not been released
yet.
---
device-types/can/description.tex | 3 +++
1 file changed, 3 insertions(+)
diff --git a/device-types/can/description.tex b/device-types/can/description.tex
index 2511d9c..0a5cf02 100644
--- a/device-types/can/description.tex
+++ b/device-types/can/description.tex
@@ -191,6 +191,9 @@ \subsubsection{Controller Mode}\label{sec:Device Types / CAN Device / Device Ope
invalid state with VIRTIO_CAN_RESULT_NOT_OK in \field{result} and MUST
NOT schedule the message for transmission.
+Note that a message is out of range when a standard frame uses more than 11
+bits of can-id or when an extended frame uses more than 29 bits.
+
If the parameters are valid the message is scheduled for transmission.
If feature VIRTIO_CAN_F_CAN_LATE_TX_ACK has been negotiated the
base-commit: 37c6a406678a5ee891fdf5671298cb4fcfa517f2
--
2.41.0
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] 3+ messages in thread
* Re: [virtio-comment] [PATCH] virtio-can: define out of rage can-id
2024-02-28 16:15 [virtio-comment] [PATCH] virtio-can: define out of rage can-id Matias Ezequiel Vara Larsen
@ 2024-02-28 18:15 ` Harald Mommer
2024-02-29 9:59 ` Matias Ezequiel Vara Larsen
0 siblings, 1 reply; 3+ messages in thread
From: Harald Mommer @ 2024-02-28 18:15 UTC (permalink / raw)
To: Matias Ezequiel Vara Larsen, virtio-comment
On 28.02.24 17:15, Matias Ezequiel Vara Larsen wrote:
> This commit explains when a message is out of range.
>
> Signed-off-by: Matias Ezequiel Vara Larsen <mvaralar@redhat.com>
> ---
> * This patch applies on top of virtio-1.4, which has not been released
> yet.
> ---
> device-types/can/description.tex | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/device-types/can/description.tex b/device-types/can/description.tex
> index 2511d9c..0a5cf02 100644
> --- a/device-types/can/description.tex
> +++ b/device-types/can/description.tex
> @@ -191,6 +191,9 @@ \subsubsection{Controller Mode}\label{sec:Device Types / CAN Device / Device Ope
> invalid state with VIRTIO_CAN_RESULT_NOT_OK in \field{result} and MUST
> NOT schedule the message for transmission.
>
> +Note that a message is out of range when a standard frame uses more than 11
> +bits of can-id or when an extended frame uses more than 29 bits.
"_" and "-" and missing \field{}: It's "\field{can_id}" in the paragraph
above.
=> "can-id" => "\field{can_id}"
Looked through the spec. I did at least not totally forget to mention
the 11 bits for standard CAN and the 29 bits for extended CAN (line
28ff). But could have been expressed more clearly, the note makes it
clear now.
> +
> If the parameters are valid the message is scheduled for transmission.
>
> If feature VIRTIO_CAN_F_CAN_LATE_TX_ACK has been negotiated the
>
> base-commit: 37c6a406678a5ee891fdf5671298cb4fcfa517f2
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] 3+ messages in thread
* Re: [virtio-comment] [PATCH] virtio-can: define out of rage can-id
2024-02-28 18:15 ` Harald Mommer
@ 2024-02-29 9:59 ` Matias Ezequiel Vara Larsen
0 siblings, 0 replies; 3+ messages in thread
From: Matias Ezequiel Vara Larsen @ 2024-02-29 9:59 UTC (permalink / raw)
To: Harald Mommer; +Cc: virtio-comment
Hello,
On Wed, Feb 28, 2024 at 7:15 PM Harald Mommer
<harald.mommer@opensynergy.com> wrote:
>
>
> On 28.02.24 17:15, Matias Ezequiel Vara Larsen wrote:
> > This commit explains when a message is out of range.
> >
> > Signed-off-by: Matias Ezequiel Vara Larsen <mvaralar@redhat.com>
> > ---
> > * This patch applies on top of virtio-1.4, which has not been released
> > yet.
> > ---
> > device-types/can/description.tex | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/device-types/can/description.tex b/device-types/can/description.tex
> > index 2511d9c..0a5cf02 100644
> > --- a/device-types/can/description.tex
> > +++ b/device-types/can/description.tex
> > @@ -191,6 +191,9 @@ \subsubsection{Controller Mode}\label{sec:Device Types / CAN Device / Device Ope
> > invalid state with VIRTIO_CAN_RESULT_NOT_OK in \field{result} and MUST
> > NOT schedule the message for transmission.
> >
> > +Note that a message is out of range when a standard frame uses more than 11
> > +bits of can-id or when an extended frame uses more than 29 bits.
>
>
> "_" and "-" and missing \field{}: It's "\field{can_id}" in the paragraph
> above.
>
> => "can-id" => "\field{can_id}"
>
> Looked through the spec. I did at least not totally forget to mention
> the 11 bits for standard CAN and the 29 bits for extended CAN (line
> 28ff). But could have been expressed more clearly, the note makes it
> clear now.
>
Thanks! I will add those changes in v1.
Matias
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] 3+ messages in thread
end of thread, other threads:[~2024-02-29 10:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-28 16:15 [virtio-comment] [PATCH] virtio-can: define out of rage can-id Matias Ezequiel Vara Larsen
2024-02-28 18:15 ` Harald Mommer
2024-02-29 9:59 ` Matias Ezequiel Vara Larsen
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.