freebsd-nq/sys/arm
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
..
allwinner Move more bus_space_* files to be built by files.arm. This leaves the 2015-11-21 15:30:08 +00:00
altera/socfpga Create device options for the two common ARM timers. 2015-11-21 16:23:56 +00:00
amlogic/aml8726 Move more bus_space_* files to be built by files.arm. This leaves the 2015-11-21 15:30:08 +00:00
annapurna/alpine Move more bus_space_* files to be built by files.arm. This leaves the 2015-11-21 15:30:08 +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
at91 Move more bus_space_* files to be built by files.arm. This leaves the 2015-11-21 15:30:08 +00:00
broadcom/bcm2835 Create device options for the two common ARM timers. 2015-11-21 16:23:56 +00:00
cavium/cns11xx Move more bus_space_* files to be built by files.arm. This leaves the 2015-11-21 15:30:08 +00:00
conf Create device options for the two common ARM timers. 2015-11-21 16:23:56 +00:00
freescale Create device options for the two common ARM timers. 2015-11-21 16:23:56 +00:00
include Limit arm_base_bs_tag to ARMv4 and ARMv5, we only used it in one place in 2015-11-21 13:02:34 +00:00
lpc Move more bus_space_* files to be built by files.arm. This leaves the 2015-11-21 15:30:08 +00:00
mv Move more bus_space_* files to be built by files.arm. This leaves the 2015-11-21 15:30:08 +00:00
qemu Create device options for the two common ARM timers. 2015-11-21 16:23:56 +00:00
rockchip Create device options for the two common ARM timers. 2015-11-21 16:23:56 +00:00
samsung/exynos Create device options for the two common ARM timers. 2015-11-21 16:23:56 +00:00
ti Move hdmi_if.m to files.arm so other kernel configs can use it. 2015-11-21 16:25:03 +00:00
versatile Move more bus_space_* files to be built by files.arm. This leaves the 2015-11-21 15:30:08 +00:00
xilinx Create device options for the two common ARM timers. 2015-11-21 16:23:56 +00:00
xscale Move more bus_space_* files to be built by files.arm. This leaves the 2015-11-21 15:30:08 +00:00