[PATCH] spufs-prevent-sdr1-access
Michael Ellerman
michael at ellerman.id.au
Thu Jan 26 08:57:15 EST 2006
On Thu, 26 Jan 2006 07:25, Geoff Levand wrote:
> diff -uprN linux-2.6.15+spufs/arch/powerpc/platforms/cell/spu_base.c
> linux-2.6.15+spufs.mod/arch/powerpc/platforms/cell/spu_base.c ---
> linux-2.6.15+spufs/arch/powerpc/platforms/cell/spu_base.c 2006-01-18
> 20:46:38.000000000 +0900 +++
> linux-2.6.15+spufs.mod/arch/powerpc/platforms/cell/spu_base.c 2006-01-20
> 17:18:41.000000000 +0900 @@ -626,7 +626,8 @@ static int __init
> create_spu(struct devi
> spu->dsisr = 0UL;
> spin_lock_init(&spu->register_lock);
>
> - spu_mfc_sdr_set(spu, mfspr(SPRN_SDR1));
> + if (!platform_is_lpar())
> + spu_mfc_sdr_set(spu, mfspr(SPRN_SDR1));
> spu_mfc_sr1_set(spu, 0x33);
>
> spu->ibox_callback = NULL;
Unfortunately (for you :) we just removed platform_is_lpar(), instead you
should use firmware_has_feature(FW_FEATURE_LPAR).
cheers
--
Michael Ellerman
IBM OzLabs
email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20060126/13c941a9/attachment.pgp
More information about the Linuxppc64-dev
mailing list