lkml.org 
[lkml]   [2000]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Alpha SMP problem
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/

\
 
 \ /
  Last update: 2005-03-22 12:51    [W:0.036 / U:0.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site