Cc: <linux-fsdevel@...>, <linux-kernel@...>, <linuxppc-dev@...>, Benjamin Herrenschmidt <benh@...>, Paul Mackerras <paulus@...>, Segher Boessenkool <segher@...>, Gunnar von Boehn <VONBOEHN@...>, Mark Nelson <markn@...>
Cc:'ing some more people that might have more of a clue on this question.
_memcpy_fromio does a "sync" at the start and an "eieio" at the end.
IFAICT, neither are needed here because the source is always memory.
It also handles unaligned memory accesses, which copy_to_user should
also do correctly, so it *looks* like it should work with just a
copy_to_user, but it still feels wrong to use an __iomem pointer
as the source for a copy_to_user.
Any ideas?
Arnd <><
--