common: DMA-mapping: add DMA_ATTR_ALLOC_EXACT_SIZE attribute
authorVandana Salve <vsalve@nvidia.com>
Fri, 22 Nov 2013 09:26:32 +0000 (14:26 +0530)
committerKrishna Reddy <vdumpa@nvidia.com>
Tue, 26 Nov 2013 19:18:07 +0000 (11:18 -0800)
commit047446dee414ec214215171c9c2fa83566849f5d
treeeb84b490c5ee9cbe16c672187de19336f3113258
parent500a6e105125c6c08610a6dc575e4253af1fd581
common: DMA-mapping: add DMA_ATTR_ALLOC_EXACT_SIZE attribute

Add DMA_ATTR_ALLOC_EXACT_SIZE attribute to DMA-mapping subsystem

By default dma_alloc/free_coherent allocates/release memory
in order of 2^pages. By specifying this attribute, allocation/release
can be done for exact size of memory thereby reducing internal memory
fragmentation

bug 1380639

Change-Id: I49eb6a0caeb85aa84ff75fab6a4cf3c6a6d96abb
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/334416
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
include/linux/dma-attrs.h