All of lore.kernel.org
 help / color / mirror / Atom feed
* [virtio-dev] [PATCH] virtio-mmio: Specify wait needed in driver during reset
@ 2021-07-22  9:19 Srivatsa Vaddagiri
  2021-07-22  9:26 ` Jason Wang
  0 siblings, 1 reply; 6+ messages in thread
From: Srivatsa Vaddagiri @ 2021-07-22  9:19 UTC (permalink / raw)
  To: mst, jasowang, virtio-dev; +Cc: Trilok Soni, Pratik Patel

[-- Attachment #1: Type: text/plain, Size: 1319 bytes --]

This is following up on the discussion we had earlier on MMIO reset behavior:

https://lists.oasis-open.org/archives/virtio-dev/202107/msg00012.html

Suggesting below change to spec to make it explicit what's expected in driver. If this is accepted, I will follow up with a patch to Linux driver.

===

Device reset is accomplished by writing 0 to Status register. Explicitly note
that a driver needs to wait on Status register read returning 0 before assuming that
device reset operation is complete.

Signed-off-by: Srivatsa Vaddagiri <svaddagi@qti.qualcomm.com>

diff --git a/content.tex b/content.tex
index 5c70a3c..7631be4 100644
--- a/content.tex
+++ b/content.tex
@@ -1985,6 +1985,10 @@ \subsubsection{Device Initialization}\label{sec:Virtio Transport Options / Virti
 and if its value is zero (0x0) MUST abort initialization and
 MUST NOT access any other register.

+After writing 0 to \field{Status}, the driver MUST wait for a read of
+\field{Status} to return 0 before proceeding with the remaining steps of
+initializing the device.
+
 Drivers not expecting shared memory MUST NOT use the shared
 memory registers.


---

Qualcomm Innovation Center, Inc. is submitting the attached "feedback" as a non-member to the virtio-dev mailing list for consideration and inclusion.

[-- Attachment #2: Type: text/html, Size: 3555 bytes --]

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

end of thread, other threads:[~2021-07-22 15:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-22  9:19 [virtio-dev] [PATCH] virtio-mmio: Specify wait needed in driver during reset Srivatsa Vaddagiri
2021-07-22  9:26 ` Jason Wang
2021-07-22 10:57   ` Cornelia Huck
2021-07-22 12:53     ` Jason Wang
2021-07-22 15:41       ` Srivatsa Vaddagiri
2021-07-22 11:09   ` Srivatsa Vaddagiri

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.