HomeFreeBSD

busdma: Add an internal BUS_DMA_FORCE_MAP flag to x86 bounce_busdma

Description

busdma: Add an internal BUS_DMA_FORCE_MAP flag to x86 bounce_busdma

Use this flag to indicate that busdma should allocate a map structure
even no bouncing is required to satisfy the tag's constraints. This
will be used for KMSAN.

Also fix a memory leak that can occur if the kernel fails to allocate
bounce pages in bounce_bus_dmamap_create().

Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D31338

Details

Provenance
markjAuthored on Aug 10 2021, 9:11 PM
Reviewer
kib
Differential Revision
D31338: busdma: Add hooks for KMSAN
Parents
rG1263022e3922: Add a GENERIC-KMSAN kernel configuration for amd64
Branches
Unknown
Tags
Unknown