[PATCH] spufs-fix-init.patch

Arnd Bergmann arnd at arndb.de
Sat Jan 28 14:56:41 EST 2006


On Tuesday 24 January 2006 02:37, Geoff Levand wrote:
> spufs-fix-init.patch:
> 
> This is a small fix to get the spufs init sequence right.
> 
> init_spu_base() in spu_base.c should be called (via module_init(init_spu_base))
> before spufs_init() (via module_init(spufs_init)) in spufs/inode.c gets called.
> 
> Arnd, could you check that this works for your hardware and make any adjustments.

Almost forgot about this patch. I can't test it right now, but I'm
rather certain that it is correct. We have been using spufs as a
loadable module in our test setup, so the bug could never be
found there.
 
> Signed-off-by: Masato Noguchi <Masato.Noguchi at jp.sony.com>
> Signed-off-by: Geoff Levand <geoffrey.levand at am.sony.com>

Acked-by: Arnd Bergmann <arnd at arndb.de>
 
> diff -uprN linux-2.6.15+spufs/arch/powerpc/platforms/cell/Makefile linux-2.6.15+spufs.mod/arch/powerpc/platforms/cell/Makefile
> --- linux-2.6.15+spufs/arch/powerpc/platforms/cell/Makefile	2006-01-18 20:46:38.000000000 +0900
> +++ linux-2.6.15+spufs.mod/arch/powerpc/platforms/cell/Makefile	2006-01-20 17:16:32.000000000 +0900
> @@ -2,7 +2,7 @@ obj-y			+= interrupt.o iommu.o setup.o s
>  obj-y			+= pervasive.o
> 
>  obj-$(CONFIG_SMP)	+= smp.o
> -obj-$(CONFIG_SPU_FS)	+= spufs/ spu-base.o
> +obj-$(CONFIG_SPU_FS)	+= spu-base.o spufs/
>  spu-base-y		+= spu_base.o spu_priv1.o
>  builtin-spufs-$(CONFIG_SPU_FS)	+= spu_syscalls.o
>  obj-y			+= $(builtin-spufs-m)
> 
> 
> 
> 
> 




More information about the Linuxppc64-dev mailing list