Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 7 Dec 2001 14:00:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 7 Dec 2001 14:00:44 -0500 Received: from rtlab.med.cornell.edu ([140.251.145.175]:40865 "HELO openlab.rtlab.org") by vger.kernel.org with SMTP id ; Fri, 7 Dec 2001 14:00:33 -0500 Date: Fri, 7 Dec 2001 14:00:32 -0500 (EST) From: "Calin A. Culianu" To: Cc: , Subject: [PATCH] Athlon bug stomper UPDATE (as per VIA's Windows patch) Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-74666095-1768302542-1007751632=:8124" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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. ---74666095-1768302542-1007751632=:8124 Content-Type: TEXT/PLAIN; charset=US-ASCII This patch detects the 0305, 3099, 3102, and 3112 (KT133x, KT266x, VT8662, and KLE133) *only*. On these chipsets, it will patch register 55 in the Northbridge and turn off bits: 5, 6, AND 7. (It does this to register 95 on the KT266x Northbridge). This will supposedly switch off a Memory Write Queue timer, which can cause those infinite loop bugs and other assorted crashes. This patch works just like a similar patch that VIA recently released for Windows machines. The difference between this patch and the original athlon bug stomper is that it is expanded to recognize more chipsets and also does a special case for the KT266x chipset. The attached patch is similar to one already submitted to the mailing list, except I think it's a bit more elegant as it doesn't create a whole new function for stomping the kt266 register 95, but rather instead used the existing athlon bug stomper function in pci-pc.c and simply overloads its functionality. (More efficient in that it has fewer lines and less generated binary code). I tested this patch on my KT266 motherboard and it seems to work correctly. Essentially no harm can be done by this patch, as most of the time those registers have those bits turned off anyway. Only some BIOS's set those bits incorrectly and thus can cause problems. -Calin ---74666095-1768302542-1007751632=:8124 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=README Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=README VGhpcyBwYXRjaCBkZXRlY3RzIHRoZSAwMzA1LCAzMDk5LCAzMTAyLCBhbmQg MzExMiAoS1QxMzN4LCBLVDI2NngsIFZUODY2MiwNCmFuZCBLTEUxMzMpICpv bmx5Ki4gT24gdGhlc2UgY2hpcHNldHMsIGl0IHdpbGwgcGF0Y2ggcmVnaXN0 ZXIgNTUgaW4gdGhlDQpOb3J0aGJyaWRnZSBhbmQgdHVybiBvZmYgYml0czog NSwgNiwgQU5EIDcuICAoSXQgZG9lcyB0aGlzIHRvIHJlZ2lzdGVyIDk1DQpv biB0aGUgS1QyNjZ4IE5vcnRoYnJpZGdlKS4gVGhpcyB3aWxsIHN1cHBvc2Vk bHkgc3dpdGNoIG9mZiBhIE1lbW9yeSBXcml0ZQ0KUXVldWUgdGltZXIsIHdo aWNoIGNhbiBjYXVzZSB0aG9zZSBpbmZpbml0ZSBsb29wIGJ1Z3MgYW5kIG90 aGVyIGFzc29ydGVkDQpjcmFzaGVzLg0KDQpDYWxpbiBDdWxpYW51DQpjYWxp bkBydGxhYi5vcmcNCg== ---74666095-1768302542-1007751632=:8124 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="athlon_bug_stomper_new_2_4_16.patch" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: The athlong bug stomper patch Content-Disposition: attachment; filename="athlon_bug_stomper_new_2_4_16.patch" ZGlmZiAtdSAtciB2YW5pbGxhL2FyY2gvaTM4Ni9rZXJuZWwvcGNpLXBjLmMg cGF0Y2hlZC9hcmNoL2kzODYva2VybmVsL3BjaS1wYy5jDQotLS0gdmFuaWxs YS9hcmNoL2kzODYva2VybmVsL3BjaS1wYy5jCUZyaSBOb3YgIDkgMTY6NTg6 MDIgMjAwMQ0KKysrIHBhdGNoZWQvYXJjaC9pMzg2L2tlcm5lbC9wY2ktcGMu YwlUaHUgRGVjICA2IDE5OjAzOjAzIDIwMDENCkBAIC0xMTE0LDE3ICsxMTE0 LDI2IEB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VfSURfVklBXzgzNjEgICAg ICAgICAgMHgzMTEyIA0KICNkZWZpbmUgUENJX0RFVklDRV9JRF9WSUFfODYz M18wCTB4MzA5MQ0KLSNkZWZpbmUgUENJX0RFVklDRV9JRF9WSUFfODM2N18w CTB4MzA5OQ0KKyNkZWZpbmUgUENJX0RFVklDRV9JRF9WSUFfODM2N18wCTB4 MzA5OSANCiAjZGVmaW5lIFBDSV9ERVZJQ0VfSURfVklBXzg2QzEwMEEJMHg2 MTAwDQogI2RlZmluZSBQQ0lfREVWSUNFX0lEX1ZJQV84MjMxCQkweDgyMzEN CiAjZGVmaW5lIFBDSV9ERVZJQ0VfSURfVklBXzgyMzFfNAkweDgyMzUNCg== ---74666095-1768302542-1007751632=:8124-- - 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/