]> 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)
commitbe82ffb4f3d11ce0f55144a971326195742d9eab
tree0b8d869eb706911f0a7c38cac4d26e25f218b622
parent2038c35f28cdf3d8fac56cb94ad127ecd499da99
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