aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/cell/interrupt.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd.bergmann@de.ibm.com>2006-03-24 13:47:52 -0500
committerPaul Mackerras <paulus@samba.org>2006-03-26 22:48:42 -0500
commit47952d5ea67dc7098667a954483a82acf81eb4da (patch)
tree1696c80c6b883496006abd0a4586b02a981a50d4 /arch/powerpc/platforms/cell/interrupt.c
parent2fa68747dad290f4415e2ea8565d57876747b2d3 (diff)
[PATCH] powerpc: use guarded ioremap for cell on-chip mappings
I'm not sure where the information came from, but I assumed that doing cache-inhibited mappings for mmio regions was sufficient. It seems we also need the guarded bit set, like everyone else, which is the default for ioremap. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/cell/interrupt.c')
-rw-r--r--arch/powerpc/platforms/cell/interrupt.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/powerpc/platforms/cell/interrupt.c b/arch/powerpc/platforms/cell/interrupt.c
index e3fffdfcc674..ae62f5d5c31b 100644
--- a/arch/powerpc/platforms/cell/interrupt.c
+++ b/arch/powerpc/platforms/cell/interrupt.c
@@ -226,9 +226,7 @@ static int setup_iic_hardcoded(void)
226 regs += 0x20; 226 regs += 0x20;
227 227
228 printk(KERN_INFO "IIC for CPU %d at %lx\n", cpu, regs); 228 printk(KERN_INFO "IIC for CPU %d at %lx\n", cpu, regs);
229 iic->regs = __ioremap(regs, sizeof(struct iic_regs), 229 iic->regs = ioremap(regs, sizeof(struct iic_regs));
230 _PAGE_NO_CACHE);
231
232 iic->target_id = (nodeid << 4) + ((cpu & 1) ? 0xf : 0xe); 230 iic->target_id = (nodeid << 4) + ((cpu & 1) ? 0xf : 0xe);
233 } 231 }
234 232
@@ -269,14 +267,12 @@ static int setup_iic(void)
269 } 267 }
270 268
271 iic = &per_cpu(iic, np[0]); 269 iic = &per_cpu(iic, np[0]);
272 iic->regs = __ioremap(regs[0], sizeof(struct iic_regs), 270 iic->regs = ioremap(regs[0], sizeof(struct iic_regs));
273 _PAGE_NO_CACHE);
274 iic->target_id = ((np[0] & 2) << 3) + ((np[0] & 1) ? 0xf : 0xe); 271 iic->target_id = ((np[0] & 2) << 3) + ((np[0] & 1) ? 0xf : 0xe);
275 printk("IIC for CPU %d at %lx mapped to %p\n", np[0], regs[0], iic->regs); 272 printk("IIC for CPU %d at %lx mapped to %p\n", np[0], regs[0], iic->regs);
276 273
277 iic = &per_cpu(iic, np[1]); 274 iic = &per_cpu(iic, np[1]);
278 iic->regs = __ioremap(regs[2], sizeof(struct iic_regs), 275 iic->regs = ioremap(regs[2], sizeof(struct iic_regs));
279 _PAGE_NO_CACHE);
280 iic->target_id = ((np[1] & 2) << 3) + ((np[1] & 1) ? 0xf : 0xe); 276 iic->target_id = ((np[1] & 2) << 3) + ((np[1] & 1) ? 0xf : 0xe);
281 printk("IIC for CPU %d at %lx mapped to %p\n", np[1], regs[2], iic->regs); 277 printk("IIC for CPU %d at %lx mapped to %p\n", np[1], regs[2], iic->regs);
282 278