The patch titled Cell: Draw SPE helper penguin logos has been added to the -mm tree. Its filename is cell-draw-spe-helper-penguin-logos.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: Cell: Draw SPE helper penguin logos From: Geert Uytterhoeven <Geert.Uytterhoeven@xxxxxxxxxxx> Let spu_management_ops.enumerate_spus() return the number of found SPEs and use that information to draw some little helper penguin logos. Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@xxxxxxxxxxx> Signed-off-by: Geoff Levand <geoffrey.levand@xxxxxxxxxxx> Acked-by: Arnd Bergmann <arnd@xxxxxxxx> Acked-By: James Simmons <jsimmons@xxxxxxxxxxxxx> Cc: "Antonino A. Daplas" <adaplas@xxxxxxx> Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> Cc: Paul Mackerras <paulus@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/powerpc/platforms/cell/spu_base.c | 15 ++++++++++++++- arch/powerpc/platforms/cell/spu_manage.c | 4 +++- arch/powerpc/platforms/ps3/spu.c | 6 ++++-- 3 files changed, 21 insertions(+), 4 deletions(-) diff -puN arch/powerpc/platforms/cell/spu_base.c~cell-draw-spe-helper-penguin-logos arch/powerpc/platforms/cell/spu_base.c --- a/arch/powerpc/platforms/cell/spu_base.c~cell-draw-spe-helper-penguin-logos +++ a/arch/powerpc/platforms/cell/spu_base.c @@ -31,6 +31,7 @@ #include <linux/mm.h> #include <linux/io.h> #include <linux/mutex.h> +#include <linux/linux_logo.h> #include <asm/spu.h> #include <asm/spu_priv1.h> #include <asm/xmon.h> @@ -656,12 +657,24 @@ static int __init init_spu_base(void) ret = spu_enumerate_spus(create_spu); - if (ret) { + if (ret < 0) { printk(KERN_WARNING "%s: Error initializing spus\n", __FUNCTION__); goto out_unregister_sysdev_class; } + if (ret > 0) { + /* + * We cannot put the forward declaration in + * <linux/linux_logo.h> because of conflicting session type + * conflicts for const and __initdata with different compiler + * versions + */ + extern const struct linux_logo logo_spe_clut224; + + fb_append_extra_logo(&logo_spe_clut224, ret); + } + xmon_register_spus(&spu_full_list); spu_add_sysdev_attr(&attr_stat); diff -puN arch/powerpc/platforms/cell/spu_manage.c~cell-draw-spe-helper-penguin-logos arch/powerpc/platforms/cell/spu_manage.c --- a/arch/powerpc/platforms/cell/spu_manage.c~cell-draw-spe-helper-penguin-logos +++ a/arch/powerpc/platforms/cell/spu_manage.c @@ -279,6 +279,7 @@ static int __init of_enumerate_spus(int { int ret; struct device_node *node; + unsigned int n = 0; ret = -ENODEV; for (node = of_find_node_by_type(NULL, "spe"); @@ -289,8 +290,9 @@ static int __init of_enumerate_spus(int __FUNCTION__, node->name); break; } + n++; } - return ret; + return ret ? ret : n; } static int __init of_create_spu(struct spu *spu, void *data) diff -puN arch/powerpc/platforms/ps3/spu.c~cell-draw-spe-helper-penguin-logos arch/powerpc/platforms/ps3/spu.c --- a/arch/powerpc/platforms/ps3/spu.c~cell-draw-spe-helper-penguin-logos +++ a/arch/powerpc/platforms/ps3/spu.c @@ -405,11 +405,13 @@ static int __init ps3_enumerate_spus(int } } - if (result) + if (result) { printk(KERN_WARNING "%s:%d: Error initializing spus\n", __func__, __LINE__); + return result; + } - return result; + return num_resource_id; } const struct spu_management_ops spu_management_ps3_ops = { _ Patches currently in -mm which might be from Geert.Uytterhoeven@xxxxxxxxxxx are origin.patch git-powerpc.patch git-block.patch compat32-ignore-the-loop_clr_fd-ioctl.patch fbdev-extract-fb_show_logo_line.patch fbdev-add-fb_append_extra_logo.patch fbdev-spe-helper-penguin-logo.patch cell-draw-spe-helper-penguin-logos.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html