commit | 7f80fe207de9602aaff028c79345caa68c90cd31 | [log] [tgz] |
---|---|---|
author | Guo Ren <ren_guo@c-sky.com> | Tue Jul 30 14:43:22 2019 +0800 |
committer | Guo Ren <ren_guo@c-sky.com> | Wed Jul 31 11:05:25 2019 +0800 |
tree | 4052003f821439f67f8be27a26c016075cf48e7d | |
parent | 81b23ba645e6b2b446093b2d927c261a17f7dee3 [diff] |
csky: Fixup dma_alloc_coherent with PAGE_SO attribute This bug is from commit: 2b070ccdf8c0 (fixup abiv2 mmap(... O_SYNC) failed). In that patch we remove the _PAGE_SO for memory noncache mapping and this will cause problem when drivers use dma descriptors to control the transcations without dma_w/rmb(). After referencing other archs' implementation, pgprot_writecombine is introduced for mmap(... O_SYNC). Signed-off-by: Guo Ren <ren_guo@c-sky.com>