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)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 21 May 2012 13:09:40 +0000 (15:09 +0200)
commit61f6c7a47a2f84b7ba4b65240ffe9247df772b06
treeaaeadf6490c61a541f83c86374e87a69384b2ca5
parent58f42fd54144346898e6dc6d6ae3acd4c591b42f
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
This page took 0.054317 seconds and 5 git commands to generate.