1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-14 14:55:41 +00:00
freebsd/sys
Svatopluk Kraus 6fa7734d6f Fix BUS_DMA_MIN_ALLOC_COMP flag logic. When bus_dmamap_t map is being
created for bus_dma_tag_t tag, bounce pages should be allocated
only if needed.

Before the fix, they were allocated always if BUS_DMA_COULD_BOUNCE flag
was set but BUS_DMA_MIN_ALLOC_COMP not. As bounce pages are never freed,
it could cause memory exhaustion when a lot of such tags together with
their maps were created.

Note that there could be more maps in one tag by current design.
However BUS_DMA_MIN_ALLOC_COMP flag is tag's flag. It's set after
bounce pages are allocated. Thus, they are allocated only for first
tag's map which needs them.

Approved by:	kib (mentor)
2015-11-21 19:55:01 +00:00
..
amd64 Export various helper variables describing the layout and size of 2015-11-12 22:00:59 +00:00
arm Fix BUS_DMA_MIN_ALLOC_COMP flag logic. When bus_dmamap_t map is being 2015-11-21 19:55:01 +00:00
arm64 Fix BUS_DMA_MIN_ALLOC_COMP flag logic. When bus_dmamap_t map is being 2015-11-21 19:55:01 +00:00
boot Disconnect unused kgzldr from sys/boot/i386 2015-11-20 21:56:20 +00:00
bsm
cam Add API to obtain primary enclosure name and ID for /dev/sesX devices. 2015-11-21 10:22:01 +00:00
cddl Fix a bug in the amd64 dtrace_getarg() implementation: when unwinding the 2015-11-19 05:33:15 +00:00
compat Add assert and note about the size of "unsigned long" inside the 2015-11-13 09:00:39 +00:00
conf Move hdmi_if.m to files.arm so other kernel configs can use it. 2015-11-21 16:25:03 +00:00
contrib Fix slots DMA memory handling. It's similar to r290553. 2015-11-10 10:56:52 +00:00
crypto
ddb
dev Update firmware for QLogic 22xx from 2.02.06 to 2.02.08. 2015-11-21 14:39:57 +00:00
fs Revert r283330 since it broke directory caching in the client. 2015-11-21 00:15:41 +00:00
gdb
geom Fix early kernel dump via dumpdev env 2015-11-17 20:55:50 +00:00
gnu
i386 Export various helper variables describing the layout and size of 2015-11-12 22:00:59 +00:00
isa
kern Remove remnants of the old NFS from vnode pager. 2015-11-20 23:52:27 +00:00
kgssapi
libkern
mips Fix BUS_DMA_MIN_ALLOC_COMP flag logic. When bus_dmamap_t map is being 2015-11-21 19:55:01 +00:00
modules Fix a logic inversion, we should build dtrace on armv6, not on arm and 2015-11-21 12:53:44 +00:00
net Implement the sadb_x_policy_priority field as it is done in Linux: 2015-11-17 14:39:33 +00:00
net80211
netgraph Move iflladdr_event eventhandler invocation to if_setlladdr. 2015-11-14 13:34:03 +00:00
netinet Fix the handling of IPSec policies in the SCTP stack. At least 2015-11-21 18:21:16 +00:00
netinet6 in6_mc_get: Fix recursion on if_addr_lock on malloc failure 2015-11-19 00:27:26 +00:00
netipsec Implement the sadb_x_policy_priority field as it is done in Linux: 2015-11-17 14:39:33 +00:00
netnatm
netpfil Fix dynamic IPv6 rules showing junk for non-specified address masks. 2015-11-17 20:42:08 +00:00
netsmb The problem report was for a crash that happened when smbfs was 2015-11-18 23:04:01 +00:00
nfs
nfsclient
nfsserver
nlm
ofed Don't leak work if __mlx4_register_vlan(..) fails in 2015-11-19 01:08:16 +00:00
opencrypto Use explicitly specified ivsize instead of blocksize when we mean IV size. 2015-11-16 07:10:42 +00:00
pc98
powerpc Fix BUS_DMA_MIN_ALLOC_COMP flag logic. When bus_dmamap_t map is being 2015-11-21 19:55:01 +00:00
rpc Improve locking of sg_threadcount. 2015-11-19 08:04:05 +00:00
security
sparc64 Merge from r290547: 2015-11-21 02:49:33 +00:00
sys Remove remnants of the old NFS from vnode pager. 2015-11-20 23:52:27 +00:00
teken
tests Style 9 changes. 2015-11-12 10:31:14 +00:00
tools
ufs
vm Remove remnants of the old NFS from vnode pager. 2015-11-20 23:52:27 +00:00
x86 Fix BUS_DMA_MIN_ALLOC_COMP flag logic. When bus_dmamap_t map is being 2015-11-21 19:55:01 +00:00
xdr
xen
Makefile