• Chris Brand's avatar
    ARM: mm: fix MMU mapping of CMA regions · 39f78e70
    Chris Brand authored
    Fix dma_contiguous_remap() so that it continues through all the
    regions, even after encountering one that is outside lowmem.
    Without this change, if you have two CMA regions, the first outside
    lowmem and the seocnd inside lowmem, only the second one will get
    set up in the MMU. Data written to that region then doesn't get
    automatically flushed from the cache into memory.
    Signed-off-by: default avatarChris Brand <cbrand@broadcom.com>
    [extended patch subject with 'fix' word]
    Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
    39f78e70
dma-mapping.c 41.3 KB