Re: Athlon: Try this (was: Re: Athlon bug stomping #2)

From: VDA (VDA@port.imtp.ilyichevsk.odessa.ua)
Date: Fri Sep 14 2001 - 13:43:03 EST


Hello Petr,
Saturday, September 15, 2001, 10:16:59 AM, you wrote:
PV> Hi,
PV> I'll sleep much better with ...

>> +static void __init pci_fixup_athlon_bug(struct pci_dev *d)
>> +{
>> + u8 v;
>> + printk("Trying to stomp on Athlon bug...\n");
>> + pci_read_config_byte(d, 0x55, &v);
PV>+ if (v & 0x80) {
>> + v &= 0x7f; /* clear bit 55.7 */
>> + pci_write_config_byte(d, 0x55, v);
PV>+ }

How about this:

+static void __init pci_fixup_athlon_bug(struct pci_dev *d)
+{
+ u8 v;
+ pci_read_config_byte(d, 0x55, &v);
+ if(v & 0x80) {
+ printk(KERN_NOTICE "Stomping on Athlon bug.\n");
+ v &= 0x7f; /* clear bit 55.7 */
+ pci_write_config_byte(d, 0x55, v);
+ }
+}

Well, these are cosmetic changes anyway...
What is more important now:
1) Do we have people who still see Athlon bug with the patch?
2) Do Alan read these messages? ;-)

-- 
Best regards, VDA
mailto:VDA@port.imtp.ilyichevsk.odessa.ua
http://port.imtp.ilyichevsk.odessa.ua/vda/

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



This archive was generated by hypermail 2b29 : Sat Sep 15 2001 - 21:00:48 EST