Skip to content
Commit 7f80fe20 authored by Guo Ren's avatar Guo Ren
Browse files

csky: Fixup dma_alloc_coherent with PAGE_SO attribute



This bug is from commit: 2b070ccd (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: default avatarGuo Ren <ren_guo@c-sky.com>
parent 81b23ba6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment