ARM: dma-mapping: use PMD size for section unmap
authorVitaly Andrianov <vitalya@ti.com>
Mon, 14 May 2012 17:49:56 +0000 (13:49 -0400)
committerHiroshi Doyu <hdoyu@nvidia.com>
Fri, 7 Sep 2012 08:46:06 +0000 (11:46 +0300)
commit2d3c613fb73f7dbd44a95fbc1a2ff89fed961dd9
treea4595b4bca71a37c364d58ea4ad5c72c9535dd49
parent114671ccef6ac735b553a7d2f140a6bde66e7def
ARM: dma-mapping: use PMD size for section unmap

The dma_contiguous_remap() function clears existing section maps using
the wrong size (PGDIR_SIZE instead of PMD_SIZE).  This is a bug which
does not affect non-LPAE systems, where PGDIR_SIZE and PMD_SIZE are the same.
On LPAE systems, however, this bug causes the kernel to hang at this point.

This fix has been tested on both LPAE and non-LPAE kernel builds.

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
arch/arm/mm/dma-mapping.c