freebsd-skq/sys/arm64
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
..
acpica Add ARM64TODO comments to ACPI PCI stubs 2015-07-12 18:32:16 +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
cavium Add support for unspecified ranges on ThunderX system 2015-10-25 23:22:40 +00:00
cloudabi64 Add support for CloudABI on ARM64. 2015-10-22 11:09:25 +00:00
conf Sync arm64 GENERIC whitespace/comments with amd64 2015-11-08 21:08:31 +00:00
include Mark functions as such. This means we call them directly rather than have 2015-10-27 22:24:57 +00:00