Linux-kernel mailing list archive 2000-15,: [patch] smp-2.3.99-5-B2, various x86 SMP updates/fixes

# [patch] smp-2.3.99-5-B2, various x86 SMP updates/fixes

Ingo Molnar (mingo@chiara.csoma.elte.hu)
Wed, 12 Apr 2000 13:55:24 +0200 (CEST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Andrew Morton: "Re: What to do with 3c59x.c?"
- Previous message: David Woodhouse: "Re: CONFIG_{INPUT_,}MOUSEDEV_SCREEN_[XY] in 2.3.99-pre5"
- Next in thread: Manfred Spraul: "Re: [patch] smp-2.3.99-5-B2, various x86 SMP updates/fixes"
- Reply: Manfred Spraul: "Re: [patch] smp-2.3.99-5-B2, various x86 SMP updates/fixes"
- Reply: Jeff Garzik: "Re: [patch] smp-2.3.99-5-B2, various x86 SMP updates/fixes"
- Reply: david parsons: "Re: [patch] smp-2.3.99-5-B2, various x86 SMP updates/fixes"

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-983468898-955540524=:5358
Content-Type: TEXT/PLAIN; charset=US-ASCII

this is the newest x86 SMP patchset (attached), against 2.3.99-pre5. The
patch is also available from:

http://www.redhat.com/~mingo/smp-x86-patches/smp-2.3.99-5-B2

Changes:

- external APIC (82489DX) code rewrite, default configuration handling
rewrite and fixes (Maciej W. Rozycki, tested by Eric Gilmore)

- support for i486 SMP boxes [yeah! :-)] (Maciej W. Rozycki)

- various fixes and cleanups (Maciej W. Rozycki, me)

- fixed CPU/process stats in UP-IOAPIC mode, first reported by Gabor Vitez
(me)

some small unrelated x86 items:

- added the string-i486.h assembly version of strstr to asm-i386/string.h
because it's much faster than the lib/ version. (me)

- added mem=exactmap option to enable setting of an exact e820 memory map,
as specified by the user. Right now the kernel adds an unconditional
low-RAM e820 region if mem= is added. (me)

with this patch applied the x86 SMP/APIC subsystem is again in 'no known
bugs' status - please resend reports to me if any problem is still
unfixed, or any new problem arises. The patch has been sanity booted on
8-way, dual, UP-IOAPIC and UP (486) systems.

Ingo

--79888902-983468898-955540524=:5358
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="smp-2.3.99-5-B2"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.10.10004121355230.5358@chiara.csoma.elte.hu>
Content-Description:
Content-Disposition: attachment; filename="smp-2.3.99-5-B2"

LS0tIGxpbnV4L2luY2x1ZGUvYXNtLWkzODYvYXBpYy5oLm9yaWcJU2F0IEZl
YiAxMiAxOTo0ODowNSAyMDAwDQorKysgbGludXgvaW5jbHVkZS9hc20taTM4
Ni9hcGljLmgJV2VkIEFwciAxMiAwMzo0MTozOSAyMDAwDQpAQCAtMyw2ICsz
LDcgQEANCiANCiAjaW5jbHVkZSA8bGludXgvY29uZmlnLmg+DQogI2luY2x1
ZGUgPGFzbS9hcGljZGVmLmg+DQorI2luY2x1ZGUgPGFzbS9zeXN0ZW0uaD4N
CiANCiAjZGVmaW5lIEFQSUNfREVCVUcgMQ0KIA0KQEAgLTIwLDcgKzIxLDEy
IEBADQogDQogZXh0ZXJuIF9faW5saW5lIHZvaWQgYXBpY193cml0ZSh1bnNp
Z25lZCBsb25nIHJlZywgdW5zaWduZWQgbG9uZyB2KQ0KIHsNCi0JKigodm9s
YXRpbGUgdW5zaWduZWQgbG9uZyAqKShBUElDX0JBU0UrcmVnKSk9djsNCisJ
Kigodm9sYXRpbGUgdW5zaWduZWQgbG9uZyAqKShBUElDX0JBU0UrcmVnKSkg
PSB2Ow0KK30NCisNCitleHRlcm4gX19pbmxpbmUgdm9pZCBhcGljX3dyaXRl
X2F0b21pYyh1bnNpZ25lZCBsb25nIHJlZywgdW5zaWduZWQgbG9uZyB2KQ0K
K3sNCisJeGNoZygodm9sYXRpbGUgdW5zaWduZWQgbG9uZyAqKShBUElDX0JB
U0UrcmVnKSwgdik7DQogfQ0KIA0KIGV4dGVybiBfX2lubGluZSB1bnNpZ25l
ZCBsb25nIGFwaWNfcmVhZCh1bnNpZ25l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Mzc2LDcgQEANCiAJZm9yIChpID0gMDsg
aSA8IDE2OyBpKyspIHsNCiAJCWlycV9kZXNjW2ldLnN0YXR1cyA9IElSUV9E
SVNBQkxFRDsNCiAJCWlycV9kZXNjW2ldLmFjdGlvbiA9IDA7DQotCQlpcnFf
ZGVzY1tpXS5kZXB0aCA9IDA7DQorCQlpcnFfZGVzY1tpXS5kZXB0aCA9IDE7
DQogDQogCQkvKg0KIAkJICogQ29iYWx0IElSUXMgYXJlIG1hcHBlZCB0byBz
dGFuZGFyZCBJU0ENCg==
--79888902-983468898-955540524=:5358--

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

- Next message: Andrew Morton: "Re: What to do with 3c59x.c?"
- Previous message: David Woodhouse: "Re: CONFIG_{INPUT_,}MOUSEDEV_SCREEN_[XY] in 2.3.99-pre5"
- Next in thread: Manfred Spraul: "Re: [patch] smp-2.3.99-5-B2, various x86 SMP updates/fixes"
- Reply: Manfred Spraul: "Re: [patch] smp-2.3.99-5-B2, various x86 SMP updates/fixes"
- Reply: Jeff Garzik: "Re: [patch] smp-2.3.99-5-B2, various x86 SMP updates/fixes"
- Reply: david parsons: "Re: [patch] smp-2.3.99-5-B2, various x86 SMP updates/fixes"