]> git.hungrycats.org Git - linux/commit
[PATCH] ppc64: Add readq/writeq and __raw* IO functions
authorAndrew Morton <akpm@osdl.org>
Fri, 6 Feb 2004 00:49:30 +0000 (16:49 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 6 Feb 2004 00:49:30 +0000 (16:49 -0800)
commit6bf2c4c092bb95366e82f9fc09873e1b94871fbc
treecfc3f8bb0e158947e0ca286373ccaf194dfd66e7
parent039c5e57542abcbbc33e2d15ff7e096eeae1591e
[PATCH] ppc64: Add readq/writeq and __raw* IO functions

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>

This patch adds those for ppc64, except for iSeries which cannot do
readq/writeq easily, at least not as far as I know but I need to ask the
iSeries specialists in Rochester to be sure.  But anyway, iSeries shouldn't
use anything in fb.h anyway ...

It also add the proper tweaks & barriers to make sure reads are actually
done right away and not delayed indefinitely (making the CPU think the read
data is actually used) and add necessary write barriers on IO writes.  For
some reasons, ppc64 in 2.6 lacked some of these, opening potential races
within some drivers.
include/asm-ppc64/eeh.h
include/asm-ppc64/io.h