PR/60182 CVS commit: [netbsd-11] src/sys/dev/pci

"Martin Husemann" <[email protected]>
Newsgroups gmane.os.netbsd.bugs
Message-ID <[email protected]>
The following reply was made to PR kern/60182; it has been noted by GNATS.

From: "Martin Husemann" <[email protected]>
To: [email protected]
Cc: 
Subject: PR/60182 CVS commit: [netbsd-11] src/sys/dev/pci
Date: Sat, 27 Jun 2026 16:12:02 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Sat Jun 27 16:12:02 UTC 2026
 
 Modified Files:
 	src/sys/dev/pci [netbsd-11]: ld_virtio.c
 
 Log Message:
 Pull up following revision(s) (requested by riastradh in ticket #333):
 
 	sys/dev/pci/ld_virtio.c: revision 1.48
 
 ld@virtio: Guard virtio_dequeue by virtio_vq_is_enqueued.
 
 After triggering the DMA operation, or any previous virtio_dequeue,
 virtio_vq_is_enqueued issues the necessary bus_dmamap_sync for
 virtio_dequeue to observe any potential (new) result.
 
 Normally this happens inside virtio(4) (in virtio_vq_intr) between
 interrupt delivery and calling the virtqueue's done callback.  But
 polling mode I/O operations (and dump operations) don't take that
 path, so it is necessary to call virtio_vq_is_enqueued explicitly.
 
 PR kern/60182: ld@virtio sometimes hangs up
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.44 -r1.44.2.1 src/sys/dev/pci/ld_virtio.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.