OSDN Git Service

csky: Fixup io-range page attribute for mmap("/dev/mem")
authorGuo Ren <ren_guo@c-sky.com>
Wed, 30 Jan 2019 12:13:11 +0000 (20:13 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Wed, 13 Feb 2019 01:48:14 +0000 (09:48 +0800)
commit76d21d186a65523b08ea5f70302e2c29ee8f6a8d
tree0b8d869eb706911f0a7c38cac4d26e25f218b622
parent0f231dcfc664aaafa75a006ee10e55f3ae0c9b3c
csky: Fixup io-range page attribute for mmap("/dev/mem")

Some user space drivers need accessing IO address and IO remap need
SO(strong order) page-attribute to make IO operation correct. So we
need add SO-page-attr for all non-memory address.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Reported-by: Fan Xiaodong <xiaodong.fan@boyahualu.com>
arch/csky/include/asm/pgtable.h
arch/csky/mm/ioremap.c