]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ps3: Fix ioremap of spu shadow regs
authorMasakazu Mokuno <mokuno@sm.sony.co.jp>
Wed, 20 Aug 2008 20:18:56 +0000 (06:18 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 26 Aug 2008 00:24:46 +0000 (10:24 +1000)
commit9e8f0ac5009886332744da58428e04160459a0fc
tree5656337fbada29bd6cdb8d7c8fcaa0372fd4ba8e
parent2531acbfcf3bd0a9c25d8233f51697a83b44447f
powerpc/ps3: Fix ioremap of spu shadow regs

Fix the ioremap of the spu shadow regs on the PS3.

The current PS3 hypervisor requires the spu shadow regs to be
mapped with the PTE page protection bits set as read-only (PP=3).
This implementation uses the low level __ioremap() to bypass the
page protection settings inforced by ioremap_flags() to get the
needed PTE bits set for the shadow regs.

This fixes a runtime failure on the PS3 introduced by the powerpc
ioremap_prot rework of commit f7d06951032f9872ad014ed50db23f260f8f424c
("powerpc ioremap_prot").

Signed-off-by: Masakazu Mokuno <mokuno@sm.sony.co.jp>
CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/ps3/spu.c