Re: Alpha SMP problem

From: Reto Baettig (baettig@scs.ch)
Date: Fri Dec 01 2000 - 11:28:57 EST


Hi!

It's great that you could fix that!

Is there any chance that we will see this patch as well as your other
Alpha patches included in future 2.2.X and 2.4.X releases?

Thanks,

Reto

Andrea Arcangeli wrote:
>
> There were a few SMP races that could trigger only using threads:
>
> 1) flush_tlb_other could happen after we read the mm->context and we could
> miss a tlb flush
> 2) flush_tlb_current could bump up the asn of the current cpu and in turn
> change the asn version after we acquired a new context leading to
> an alias between our asn and a later one
> 3) a PAL_swpctx can't be done in the middle of alpha_switch_to
>
> ppc/sparc64 may have similar issues and I didn't checked them (from a fast read
> it looks like sparc64 is just safe but I don't know the sparc hardware
> well enough to be sure).
>
> I also noticed the horrible implementation of ASN in SMP so while I was
> there I rewrote it.
>
> The rewrote is based on the fact that mm->context makes no sense. It must be an
> array of mm->context[NR_CPUS]. Almost certainly mips wants an array of NR_CPUS
> too. Anyways for mips it's not a big deal since SMP isn't supported in 2.2.x ;).
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Dec 07 2000 - 21:00:08 EST