diff options
author | Jes Sorensen <jes@sgi.com> | 2007-06-18 17:19:05 +0200 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2007-06-26 13:35:45 -0700 |
commit | 1ee27a4eedf3cc08245d395936c1bfaf80c074cc (patch) | |
tree | 7d36f5c38b3a45fc4db63b8301ff11ee3e013cde /arch/ia64/sn/pci/tioce_provider.c | |
parent | c034637967881830979b5415e55578e42f806659 (diff) | |
download | blackbird-op-linux-1ee27a4eedf3cc08245d395936c1bfaf80c074cc.tar.gz blackbird-op-linux-1ee27a4eedf3cc08245d395936c1bfaf80c074cc.zip |
[IA64] Make SN2 PCI code use ioremap rather than manually mangle the address
This one changes the SN2 specific PCI drivers to use ioremap() for
obtaining the real address to access for the PCI registers instead of
manually calculating them with __IA64_UNCACHED_OFFSET.
The patch should have no real change when running on a normal Linux
kernel, but when running as a paravirtualized it is needed.
Signed-off-by: Jes Sorenson <jes@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/sn/pci/tioce_provider.c')
-rw-r--r-- | arch/ia64/sn/pci/tioce_provider.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/ia64/sn/pci/tioce_provider.c b/arch/ia64/sn/pci/tioce_provider.c index f4c0b961a939..84b72b27e27f 100644 --- a/arch/ia64/sn/pci/tioce_provider.c +++ b/arch/ia64/sn/pci/tioce_provider.c @@ -1002,7 +1002,9 @@ tioce_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *cont return NULL; memcpy(tioce_common, prom_bussoft, sizeof(struct tioce_common)); - tioce_common->ce_pcibus.bs_base |= __IA64_UNCACHED_OFFSET; + tioce_common->ce_pcibus.bs_base = (unsigned long) + ioremap(REGION_OFFSET(tioce_common->ce_pcibus.bs_base), + sizeof(struct tioce_common)); tioce_kern = tioce_kern_init(tioce_common); if (tioce_kern == NULL) { |