public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrea Arcangeli <andrea@suse.de>
To: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Phillip Ezolt <ezolt@perf.zko.dec.com>,
	axp-list@redhat.com, rth@twiddle.net, Jay.Estabrook@compaq.com,
	linux-kernel@vger.kernel.org, clinux@zk3.dec.com,
	wcarr@perf.zko.dec.com, linux-alpha@vger.kernel.org
Subject: mm->context[NR_CPUS] and pci fix check [was Re: Alpha SCSI error on 2.4.0-test11]
Date: Fri, 1 Dec 2000 15:18:42 +0100	[thread overview]
Message-ID: <20001201151842.C30653@athlon.random> (raw)
In-Reply-To: <20001201004049.A980@jurassic.park.msu.ru> <Pine.OSF.3.96.1001130171941.32335D-100000@perf.zko.dec.com> <20001130233742.A21823@athlon.random> <20001201145619.A553@jurassic.park.msu.ru>
In-Reply-To: <20001201145619.A553@jurassic.park.msu.ru>; from ink@jurassic.park.msu.ru on Fri, Dec 01, 2000 at 02:56:19PM +0300

On Fri, Dec 01, 2000 at 02:56:19PM +0300, Ivan Kokshaysky wrote:
> Andrea, could you try this?

that's the right fix thanks (please send to Linus).

BTW, here is a preview of the asn SMP race fix for 2.4.x:

	ftp://ftp.us.kernel.org/pub/linux/kernel/people/andrea/patches/v2.4/2.4.0-test12-pre2/alpha-ASN-SMP-races-2.4.x-1

I'm still left the #ifdef __alpha__ around the context[NR_CPUS] to avoid
breakage of other archs but that should be probably removed: any CPU with
per-CPU ASNs like alpha needs per-CPU per-MM context information to avoid
wasting ASNs when the task migrate CPU or with threads.

The ASN race fix for 2.4.x is implemented differently than the 2.2.x previous
version, in 2.4.x I'm avoiding the __cli, so the whole context switch runs with
irq _enabled_ as usual (unlike in the 2.2.x version). I'm also taking care not
to waste any ASN than strictly necessary while doing the race-check after the
context switch completed.

And here a new version of the 2.2.x one (I was clearing all other cpu context
from activate_context, and that wasn't necessary but it couldn't hurt so
it's a minor update):

	ftp://ftp.us.kernel.org/pub/linux/kernel/people/andrea/patches/v2.2/2.2.18pre23/alpha-ASN-SMP-races-3

(the cli-less logic could be backported to 2.2.x but OTOH the cli way looks
simpler so more appropriate for 2.2.x)

Andrea
-
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/

  reply	other threads:[~2000-12-01 15:07 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-30 20:02 Alpha SCSI error on 2.4.0-test11 Phillip Ezolt
2000-11-30 20:37 ` Peter Rival
2000-11-30 21:40 ` Ivan Kokshaysky
2000-11-30 22:26   ` Phillip Ezolt
2000-11-30 22:37     ` Andrea Arcangeli
2000-12-01 11:56       ` Ivan Kokshaysky
2000-12-01 14:18         ` Andrea Arcangeli [this message]
2000-12-01 18:19           ` mm->context[NR_CPUS] and pci fix check [was Re: Alpha SCSI error on 2.4.0-test11] David S. Miller
2000-12-01 19:14             ` Andrea Arcangeli
2000-12-15 15:46               ` Andrea Arcangeli
2000-12-15 17:11                 ` David S. Miller
2000-12-15 17:55                   ` Andrea Arcangeli
2000-12-15 17:44                     ` David S. Miller
2000-12-01 18:30         ` Alpha SCSI error on 2.4.0-test11 Phillip Ezolt
2000-12-01 19:35           ` Andrea Arcangeli
2000-12-01 19:56             ` Phillip Ezolt
2000-12-01 20:26               ` Andrea Arcangeli
2000-12-05 15:52                 ` Phillip Ezolt
2000-12-01 22:11               ` Ivan Kokshaysky
2000-12-04 18:53                 ` Phillip Ezolt
2000-12-06  0:06                   ` Jay Estabrook
2000-12-06 14:51                     ` Phillip Ezolt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20001201151842.C30653@athlon.random \
    --to=andrea@suse.de \
    --cc=Jay.Estabrook@compaq.com \
    --cc=axp-list@redhat.com \
    --cc=clinux@zk3.dec.com \
    --cc=ezolt@perf.zko.dec.com \
    --cc=ink@jurassic.park.msu.ru \
    --cc=linux-alpha@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rth@twiddle.net \
    --cc=wcarr@perf.zko.dec.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox