Re: [PATCH 1/3] Per-cpu UP unification

From: Andrew Morton (akpm@digeo.com)
Date: Tue May 20 2003 - 05:53:22 EST


Rusty Russell <rusty@rustcorp.com.au> wrote:
>
> [ Untested on ia64, but fairly trivial if I've broken something ].
>
> Name: Unification of per-cpu headers for non-SMP
> Author: Rusty Russell
> Status: Trivial

I applied all these to the ppc64 kernel (you missed ppc64 btw) and it dies.

Quite late in boot, during floppy_init->init_disk_stats->alloc_percpu.

I'm reduced to debugging with printk on ppc64. __alloc_percpu() calls
new_block(), loops around and then dies in here:

#define D() printk("at %s:%d\n", __FILE__, __LINE__)

                        D();
                        /* Transfer extra to previous block. */
                        if (b->size[i-1] < 0)
                                b->size[i-1] -= extra;
                        else
                                b->size[i-1] += extra;
                        b->size[i] -= extra;
                        ptr += extra;

                        D();

Not sure what happened - no oops, no xmon, no sysrq, no nuthin. It even
manages to lock up minicom on the other end of the cable. Impressed.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri May 23 2003 - 22:00:40 EST