Skip to contentSkip to conversation

virtio-can: define out of rage can-id

PATCH In review Matias Ezequiel Vara Larsen 2 participants 3 messages Feb 28, 2024 – Feb 29, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio-can: define out of rage can-id

This commit explains when a message is out of range.

---
* 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(+)
device-types/can/description.tex +3 -0
index 2511d9c..0a5cf02 100644
@@ -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

Signature · 18 lines
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: [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/
#1 lore raw
Quoted 15 lines · Matias Ezequiel Vara Larsen

This commit explains when a message is out of range.

---
* 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(+)
device-types/can/description.tex +0 -0
index 2511d9c..0a5cf02 100644

device-types/can/description.tex \subsubsection{Controller Mode}\label{sec:Device Types / CAN Device / Device Ope · line 195

Quoted 5 lines
device-types/can/description.tex +2 -0
@@ -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.

Quoted 6 lines
device-types/can/description.tex +1 -0
+
  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: [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/

#2 lore raw

Hello,

Quoted 28 lines · Harald Mommer
Quoted 15 lines · Matias Ezequiel Vara Larsen

This commit explains when a message is out of range.

---
* 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(+)
device-types/can/description.tex +0 -0
index 2511d9c..0a5cf02 100644

device-types/can/description.tex \subsubsection{Controller Mode}\label{sec:Device Types / CAN Device / Device Ope · line 195

Quoted 5 lines
device-types/can/description.tex +2 -0
@@ -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.

Quoted 7 lines

=> "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: [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/