CVS commit: [netbsd-10] src/sys/dev/pci
"Martin Husemann" <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module Name: src Committed By: martin Date: Sat Jun 27 16:51:53 UTC 2026 Modified Files: src/sys/dev/pci [netbsd-10]: ld_virtio.c Log Message: Pull up following revision(s) (requested by riastradh in ticket #1281): sys/dev/pci/ld_virtio.c: revision 1.48 (patch) 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.30.4.2 -r1.30.4.3 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.