spin_lock problem in recent kernel

Tom Gall gall at rochcivictheatre.org
Thu Mar 29 05:02:05 EST 2001


Hi Kaoru,

  I've found much the same as you... however I've also found that the
patch you have below (which is exactly the same as a change I have made
to the kernel I've been debugging) hasn't helped me too much. The
page_table_lock would still get messed up during the boot sequence on
Power3 with SMP on.

  I don't have any other great enlightenment as I'm taking the day off
... be back at it tomorrow!

  Regards,

  Tom

Kaoru Fukui wrote:
>
> Hi!
>
> I had tried SMP kernel using paulus rsync tree and 2_4 bk tree.
> Since 2.4.3pre6 it has spin_lock problem in both tree.
>
> I used that patch when pre6,pre7
> Then I could boot kernel and it's work well.
>
> 2.4.3pre8 is not boot that has the other spin_lock problem.
> (around ip_tables loading)
>
> When i used this patch when pre6, pre7.
>
> Please check spin_lock problem of pre8 with SMP kernel.
>
> the machine is G4 dual
> Thanks
>
> Kaoru
>
> diff -urN base/arch/ppc/mm/init.c fixed/arch/ppc/mm/init.c
> --- base/arch/ppc/mm/init.c     Thu Mar 22 19:29:46 2001
> +++ fixed/arch/ppc/mm/init.c    Fri Mar 23 05:52:33 2001
> @@ -436,11 +436,11 @@
>          * Should check if it is a candidate for a BAT mapping
>          */
>
> -       spin_lock(&init_mm.page_table_lock);
> +//     spin_lock(&init_mm.page_table_lock);
>         err = 0;
>         for (i = 0; i < size && err == 0; i += PAGE_SIZE)
>                 err = map_page(v+i, p+i, flags);
> -       spin_unlock(&init_mm.page_table_lock);
> +//     spin_unlock(&init_mm.page_table_lock);
>         if (err) {
>                 if (mem_init_done)
>                         vfree((void *)v);
>

--
Regards,

Tom

--------------------------------------------------------------
Linux Guy             "My heart is human, my blood is boiling,
gall at rochcivictheatre.org    my brain IBM" -- Mr Roboto, Styxx

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/






More information about the Linuxppc-dev mailing list