freebsd-nq/sys/x86/include
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
..
xen xen: introduce xen_has_percpu_evtchn() 2021-07-28 17:27:05 +02:00
_align.h
_inttypes.h
_limits.h
_stdint.h
_types.h Reduce code duplication in machine/_types.h 2021-06-14 16:30:16 +01:00
acpica_machdep.h x86: clean up empty lines in .c and .h files 2020-09-01 21:23:59 +00:00
apicreg.h x86: clean up empty lines in .c and .h files 2020-09-01 21:23:59 +00:00
apicvar.h x86: Defer LAPIC calibration until after timecounters are available 2021-12-06 10:42:10 -05:00
apm_bios.h x86: clean up empty lines in .c and .h files 2020-09-01 21:23:59 +00:00
bus_dma.h busdma: Add KMSAN integration 2021-08-10 21:27:54 -04:00
bus.h Simplify kernel sanitizer interceptors 2021-07-29 21:13:32 -04:00
busdma_impl.h busdma: Add KMSAN integration 2021-08-10 21:27:54 -04:00
clock.h x86: Perform late TSC calibration before LAPIC timer calibration 2021-12-06 10:42:19 -05:00
cputypes.h
dump.h minidump: De-duplicate the progress bar 2021-09-29 16:42:21 -03:00
elf.h x86: clean up empty lines in .c and .h files 2020-09-01 21:23:59 +00:00
endian.h Consolidate machine/endian.h definitions 2021-03-26 19:00:22 -03:00
fdt.h
float.h
fpu.h Revert "linux32: add a hack to avoid redefining the type of the savefpu tag" 2021-09-22 23:17:47 +03:00
frame.h
ifunc.h Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
init.h x86/xen: remove PVHv1 code 2021-05-17 11:41:21 +02:00
intr_machdep.h
iommu.h o Add machine/iommu.h and include MD iommu headers from it, 2020-08-05 19:11:31 +00:00
kvm.h kvm_clock: KVM paravirtual clock support 2021-08-14 15:57:54 +03:00
legacyvar.h
mca.h
metadata.h stand/multiboot: adjust the protocol between loader and kernel 2021-01-29 15:23:26 +01:00
mptable.h
ofw_machdep.h
pci_cfgreg.h
procctl.h Add amd64 procctl(2) ops to manage forced LA48/LA57 VA after exec. 2020-08-23 20:32:13 +00:00
psl.h
ptrace.h
pvclock.h pvclock: Add vDSO support 2021-08-14 15:57:54 +03:00
reg.h Create sys/reg.h for the common code previously in machine/reg.h 2021-08-30 12:50:53 +01:00
segments.h
setjmp.h
sigframe.h
signal.h
specialreg.h mca: Decode new Intel status bits. 2021-12-08 12:03:28 -05:00
stack.h
stdarg.h
sysarch.h
tls.h Add <machine/tls.h> header to hold MD constants and helpers for TLS. 2021-12-09 13:17:13 -08:00
trap.h x86: remove unused T_USER flag 2021-12-05 11:12:40 -04:00
ucode.h
ucontext.h
vdso.h pvclock: Add vDSO support 2021-08-14 15:57:54 +03:00
vmware.h
x86_ieeefp.h Merge common parts of i386 and amd64's ieeefp.h into x86/x86_ieeefp.h 2021-08-12 18:45:22 +08:00
x86_smp.h amd64: Reduce the amount of cpuset copying done for TLB shootdowns 2021-11-15 13:01:31 -05:00
x86_var.h Simplify swi for bus_dma. 2021-12-28 13:51:25 -08:00