John Baldwin 254e4e5b77 Simplify swi for bus_dma.
When a DMA request using bounce pages completes, a swi is triggered to
schedule pending DMA requests using the just-freed bounce pages.  For
a long time this bus_dma swi has been tied to a "virtual memory" swi
(swi_vm).  However, all of the swi_vm implementations are the same and
consist of checking a flag (busdma_swi_pending) which is always true
and if set calling busdma_swi.  I suspect this dates back to the
pre-SMPng days and that the intention was for swi_vm to serve as a
mux.  However, in the current scheme there's no need for the mux.

Instead, remove swi_vm and vm_ih.  Each bus_dma implementation that
uses bounce pages is responsible for creating its own swi (busdma_ih)
which it now schedules directly.  This swi invokes busdma_swi directly
removing the need for busdma_swi_pending.

One consequence is that the swi now works on RISC-V which had previously
failed to invoke busdma_swi from swi_vm.

Reviewed by:	imp, kib
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D33447
2021-12-28 13:51:25 -08:00
..
2021-12-06 20:46:49 +02:00
2021-11-15 02:33:01 +02:00
2021-12-09 02:49:10 +02:00
2021-06-07 16:45:50 -04:00
2020-11-19 02:50:48 +00:00
2021-11-29 22:04:43 +00:00
2021-12-28 13:51:25 -08:00
2020-12-04 18:56:44 +00:00
2021-09-09 10:11:02 -04:00
2021-04-18 11:19:15 -06:00
2021-11-10 21:18:54 +02:00
2021-08-10 21:27:54 -04:00
2020-11-05 15:08:56 +00:00
2021-09-14 14:29:27 -04:00
2021-08-08 21:54:49 -04:00
2021-12-14 14:52:25 +00:00
2020-11-09 00:34:23 +00:00
2021-09-03 23:13:42 -04:00
2020-08-13 20:48:14 +00:00
2021-04-02 15:41:51 +03:00
2021-07-28 22:00:29 -04:00
2021-09-16 20:11:27 +03:00
2021-12-09 02:49:10 +02:00
2021-12-09 02:49:10 +02:00
2021-04-18 11:14:17 -06:00
2020-08-27 05:11:15 +00:00
2021-09-03 22:18:51 -04:00
2021-11-17 20:12:26 +00:00