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)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 26 Feb 2013 17:51:20 +0000 (19:51 +0200)
commitb8e6eac152d0df4719855afc330b832c6f8d2175
tree767774eecf46ebf6077743ee86675b046b831f9d
parentbc25b2f1bbc6e8574770b2d78389c6bb3881a224
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