Skip to content

Commit

Permalink
arm64: Make default dma_ops to be noncoherent
Browse files Browse the repository at this point in the history
Currently arm64 dma_ops is by default made coherent which makes it
opposite in default policy from arm.

Make default dma_ops to be noncoherent (same as arm), as currently there
aren't any dma-capable drivers which assumes coherent ops

Signed-off-by: Ritesh Harjani <ritesh.harjani@gmail.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
  • Loading branch information
Ritesh Harjani authored and Catalin Marinas committed May 3, 2014
1 parent f774b7d commit c7a4a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm64/mm/dma-mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ static int __init swiotlb_late_init(void)
{
size_t swiotlb_size = min(SZ_64M, MAX_ORDER_NR_PAGES << PAGE_SHIFT);

dma_ops = &coherent_swiotlb_dma_ops;
dma_ops = &noncoherent_swiotlb_dma_ops;

return swiotlb_late_init_with_default_size(swiotlb_size);
}
Expand Down

0 comments on commit c7a4a76

Please sign in to comment.