opnsense-src/sys/compat
Bjoern A. Zeeb 37b2cf4e6a LinuxKPI: implement dma_set_coherent_mask()
Coherent is lower 32bit only by default in Linux and our only default
dma mask is 64bit currently which violates expectations unless
dma_set_coherent_mask() was called explicitly with a different mask.

Implement coherent by creating a second tag, and storing the tags in the
objects and use the tag from the object wherever possible.
This currently does not update the scatterlist or pool (both could be
converted but S/G cannot be MFCed as easily).

There is a 2nd change embedded in the updated logic of
linux_dma_alloc_coherent() to always zero the allocation as
otherwise some drivers get cranky on uninialised garbage.

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit c39eefe715)
(cherry picked from commit 1269873159)
2021-11-19 00:01:24 +00:00
..
cloudabi cloudabi and linux ABIs: do not call umtx_thread_cleanup() from thr_exit syscall 2021-07-22 01:11:52 +03:00
cloudabi32 regen syscall files after 0bd5d81f1e 2021-05-19 20:32:47 -04:00
cloudabi64 regen syscall files after 0bd5d81f1e 2021-05-19 20:32:47 -04:00
freebsd32 freebsd32: Fix a double copyin in sendmsg() and recvmsg() 2021-09-26 11:55:05 -04:00
ia32 Do not call FreeBSD-ABI specific code for all ABIs 2021-07-22 01:11:52 +03:00
lindebugfs Add emulation support for the Linux kcov(4) ioctl API. 2020-09-04 00:12:28 +00:00
linprocfs linprocfs: find cwd and root handling 2021-10-11 09:13:29 +00:00
linsysfs Add emulation support for the Linux kcov(4) ioctl API. 2020-09-04 00:12:28 +00:00
linux cloudabi and linux ABIs: do not call umtx_thread_cleanup() from thr_exit syscall 2021-07-22 01:11:52 +03:00
linuxkpi/common LinuxKPI: implement dma_set_coherent_mask() 2021-11-19 00:01:24 +00:00
ndis compat: clean up empty lines in .c and .h files 2020-09-01 21:24:33 +00:00
x86bios Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00