]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ppc64: fix PCI IO mapping
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 10 Nov 2005 04:04:24 +0000 (15:04 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 10 Nov 2005 04:32:37 +0000 (15:32 +1100)
commit2f44898ff2a3c0551f29c57f82f2a01448f649b8
treef74ccd9d9f0ce385ee8de5150b24f94800635e4b
parent496c8a1db1b4a5e9de9356920447d4078c505a9d
[PATCH] ppc64: fix PCI IO mapping

phbs_remap_io(), which maps the PCI IO space into the kernel virtual space,
is called too early on powermac, and thus doesn't work.

This fixes it by removing the call from all platforms and putting it back
into the ppc64 common code where it belongs, after the actual probing of
the bus.

That means that before that call, only the ISA IO space (if any) is mapped,
any PIO access (from quirks for example) will fail. This happens not to be
a problem for now, but we'll have to rework that code if it becomes one in
the future.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/maple/pci.c
arch/powerpc/platforms/powermac/pci.c
arch/powerpc/platforms/pseries/pci.c
arch/ppc64/kernel/pci.c