]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc01a9f8cc63dbc26850f431cc576938950e9d2f2
tree0b8d869eb706911f0a7c38cac4d26e25f218b622
parent2dbf18818fcd58811e3db7e46f27313decd3e001
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