Thread (12 messages) flat view 12 messages, 6 authors, 2018-07-17

Re: [PATCH 1/2] mm/cma: remove unsupported gfp_mask parameter from cma_alloc()

From: Vlastimil Babka <hidden>
Date: 2018-07-16 07:45:12
Also in: linux-arm-kernel, linux-iommu, linux-mm, lkml

On 07/09/2018 02:19 PM, Marek Szyprowski wrote:
cma_alloc() function doesn't really support gfp flags other than
__GFP_NOWARN, so convert gfp_mask parameter to boolean no_warn parameter.

This will help to avoid giving false feeling that this function supports
standard gfp flags and callers can pass __GFP_ZERO to get zeroed buffer,
what has already been an issue: see commit dd65a941f6ba ("arm64:
dma-mapping: clear buffers allocated with FORCE_CONTIGUOUS flag").

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Vlastimil Babka <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help