[patch] smp-2.3.41-A1, (was: Re: BUG? i386 TLB Flushing)

Ingo Molnar (mingo@chiara.csoma.elte.hu)
Mon, 24 Jan 2000 21:28:06 +0100 (CET)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--79888902-1240373012-948745246=:2759
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.4.10.10001242123481.2759@chiara.csoma.elte.hu>

On Mon, 24 Jan 2000, Stephen C. Tweedie wrote:

> > yeah, this is indeed a bug and it also explains the one remaining 64GB
> > mystery: the extra invlpg in highmem.c. Patch (with other SMP fixes) will
> > follow shortly.
>
> I was really, really hoping that this might lay to rest the boot
> failures with PAE36 for me, but no such luck --- 2.3.40 still dies with
> SIGSEGV in init. Zach Brown can reproduce the same thing on one of his
> boxes: Zach, does 2.3.40 do anything to help things for you?

ok, how about the attached smp-2.3.41-A1 patch:

- fixes dumb cr4 flushing typo found by Manfred

- (tries to fix) current->active_mm == NULL problem by moving the
setting of prev->active_mm to after the switch_to(). It happens
before has_cpu is set to 0, so it should be safe. It also cannot
open up a window to TLB corruption i believe.

-- mingo

--79888902-1240373012-948745246=:2759
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="smp-2.3.41-A1"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.10.10001242128060.2759@chiara.csoma.elte.hu>
Content-Description:
Content-Disposition: attachment; filename="smp-2.3.41-A1"

LS0tIGxpbnV4L2tlcm5lbC9zY2hlZC5jLm9yaWcJTW9uIEphbiAyNCAxMjox
NTo0MSAyMDAwDQorKysgbGludXgva2VybmVsL3NjaGVkLmMJTW9uIEphbiAy
NCAxMjoxNjo0MyAyMDAwDQpAQCAtNDEyLDYgKzQxMiw4IEBADQogc3RhdGlj
IGlubGluZSB2b2lkIF9fc2NoZWR1bGVfdGFpbChzdHJ1Y3QgdGFza19zdHJ1
Y3QgKnByZXYpDQogew0KICNpZmR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XJyZW50LT5hY3RpdmVfbW0tPnBnZCkpCQlcDQogCQkJOiAibWVtb3J5Iik7
CQkJCQlcDQogCX0gd2hpbGUgKDApDQo=
--79888902-1240373012-948745246=:2759--

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