Hello,
Here are some patches to correct the MCA setup for different Pentium cores
in bluesmoke.c. The P6 family must not initialize MSR_IA32_MC0_CTL in
software, it must be done by the bios. The P4/Xeon cores must have this
bank initialized in software. Added check for processor type and
associated init loops. Included patches against 2.5.7 and 2.4.18.
Cheers,
Jon Hourd
jonhourd@telus.net
--=====================_1121764==_
Content-Type: application/octet-stream; name="bluesmoke.c.patch.2.5.7"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bluesmoke.c.patch.2.5.7"
LS0tIGJsdWVzbW9rZS5jCUZyaSBNYXIgMjIgMDE6MDA6NDYgMjAwMgorKysgYmx1ZXNtb2tlLmMu
bmV3CUZyaSBNYXIgMjIgMDE6MDA6MTYgMjAwMgpAQCAtMyw5ICszLDEyIEBACiAjaW5jbHVkZSA8
bGludXgvdHlwZXMuaD4KICNpbmNsdWRlIDxsaW51eC9rZXJuZWwuaD4KICNpbmNsdWRlIDxsaW51
eC9zY2hlZC5oPgorI2luY2x1ZGUgPGxpbnV4L2NvbmZpZy5oPgogI2luY2x1ZGUgPGFzbS9wcm9j
ZXNzb3IuaD4gCiAjaW5jbHVkZSA8YXNtL21zci5oPgogCisjaWZkZWYgQ09ORklHX1g4Nl9NQ0UK
Kwogc3RhdGljIGludCBtY2VfZGlzYWJsZWQgX19pbml0ZGF0YSA9IDA7CiAKIC8qCkBAIC00MSwx
MyArNDQsMTIgQEAKIAkJCWlmKGhpZ2gmKDE8PDI3KSkKIAkJCXsKIAkJCQlyZG1zcihNU1JfSUEz
Ml9NQzBfTUlTQytpKjQsIGFsb3csIGFoaWdoKTsKLQkJCQlwcmludGsoIlslMDh4JTA4eF0iLCBh
bG93LCBhaGlnaCk7CisJCQkJcHJpbnRrKCJbJTA4eCUwOHhdIiwgYWhpZ2gsIGFsb3cpOwogCQkJ
fQogCQkJaWYoaGlnaCYoMTw8MjYpKQogCQkJewogCQkJCXJkbXNyKE1TUl9JQTMyX01DMF9BRERS
K2kqNCwgYWxvdywgYWhpZ2gpOwotC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JCX0KKwl9IGVsc2UgeworCQlwcmludGsoS0VSTl9JTkZPICJV
bmtub3duIFByb2Nlc3Nvci4gIE1hY2hpbmUgY2hlY2sgYXJjaGl0ZWN0dXJlIG5vdCBlbmFibGVk
IG9uIENQVSMlZC5cbiIsIHNtcF9wcm9jZXNzb3JfaWQoKSk7CisJCWRvbmUgPSAxOworCQlyZXR1
cm47CiAJfQogCWZvcihpPTA7aTxiYW5rcztpKyspCiAJewpAQCAtMjQ3LDMgKzI2NSw5IEBACiAK
IF9fc2V0dXAoIm5vbWNlIiwgbWNoZWNrX2Rpc2FibGUpOwogX19zZXR1cCgibWNlIiwgbWNoZWNr
X2VuYWJsZSk7CisKKyNlbHNlCithc21saW5rYWdlIHZvaWQgZG9fbWFjaGluZV9jaGVjayhzdHJ1
Y3QgcHRfcmVncyAqIHJlZ3MsIGxvbmcgZXJyb3JfY29kZSkge30KK3ZvaWQgX19pbml0IG1jaGVj
a19pbml0KHN0cnVjdCBjcHVpbmZvX3g4NiAqYykge30KKyNlbmRpZgorCg==
--=====================_1121764==_
Content-Type: application/octet-stream; name="bluesmoke.c.patch.2.4.18"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bluesmoke.c.patch.2.4.18"
LS0tIGJsdWVzbW9rZS5jCUZyaSBNYXIgMjIgMDE6MDE6MTkgMjAwMgorKysgYmx1ZXNtb2tlLmMu
bmV3CUZyaSBNYXIgMjIgMDE6MDA6MTYgMjAwMgpAQCAtMyw5ICszLDEyIEBACiAjaW5jbHVkZSA8
bGludXgvdHlwZXMuaD4KICNpbmNsdWRlIDxsaW51eC9rZXJuZWwuaD4KICNpbmNsdWRlIDxsaW51
eC9zY2hlZC5oPgorI2luY2x1ZGUgPGxpbnV4L2NvbmZpZy5oPgogI2luY2x1ZGUgPGFzbS9wcm9j
ZXNzb3IuaD4gCiAjaW5jbHVkZSA8YXNtL21zci5oPgogCisjaWZkZWYgQ09ORklHX1g4Nl9NQ0UK
Kwogc3RhdGljIGludCBtY2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3cm1zcihNU1JfSUEzMl9NQzBfQ1RMKzQqaSwgMHhmZmZmZmZm
ZiwgMHhmZmZmZmZmZik7CisJCX0KKwl9IGVsc2UgaWYoYy0+eDg2ID09IDE1KSB7CisJCXByaW50
ayhLRVJOX0lORk8gIkRldGVjdGVkIFA0L1hlb24gQ29yZS5cbiIpOworCQlmb3IoaT0wO2k8YmFu
a3M7aSsrKQkJCS8qIE11c3Qgc3RhcnQgd2l0aCBiYW5rIDAgZm9yIFBlbnRpdW0gNCBhbmQgWGVv
biBQcm9jZXNzb3JzICovCisJCXsKKwkJCXdybXNyKE1TUl9JQTMyX01DMF9DVEwrNCppLCAweGZm
ZmZmZmZmLCAweGZmZmZmZmZmKTsKKwkJfQorCX0gZWxzZSB7CisJCXByaW50ayhLRVJOX0lORk8g
IlVua25vd24gUHJvY2Vzc29yLiAgTWFjaGluZSBjaGVjayBhcmNoaXRlY3R1cmUgbm90IGVuYWJs
ZWQgb24gQ1BVIyVkLlxuIiwgc21wX3Byb2Nlc3Nvcl9pZCgpKTsKKwkJZG9uZSA9IDE7CisJCXJl
dHVybjsKIAl9CiAJZm9yKGk9MDtpPGJhbmtzO2krKykKIAl7CkBAIC0yNDcsMyArMjY1LDkgQEAK
IAogX19zZXR1cCgibm9tY2UiLCBtY2hlY2tfZGlzYWJsZSk7CiBfX3NldHVwKCJtY2UiLCBtY2hl
Y2tfZW5hYmxlKTsKKworI2Vsc2UKK2FzbWxpbmthZ2Ugdm9pZCBkb19tYWNoaW5lX2NoZWNrKHN0
cnVjdCBwdF9yZWdzICogcmVncywgbG9uZyBlcnJvcl9jb2RlKSB7fQordm9pZCBfX2luaXQgbWNo
ZWNrX2luaXQoc3RydWN0IGNwdWluZm9feDg2ICpjKSB7fQorI2VuZGlmCisK
--=====================_1121764==_--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/