VIA silent disk corruption - patch
Okay, looks like this fixes it (for me anyways).
Thanks to Mark Hahn and Andre for their help with this problem.
P.
arch/i386/kernel/pci-pc.c +17 -0
@@ -924,6 +924,22 @@ pcibios_max_latency =32 ; } +static void __init pci_fixup_vt8363 (struct pci_dev *d) +{ +/* +* VIA VT8363 host bridge has broken feature 'PCI Master Read +* Caching'. It caches more than is good for it, sometimes +* serving the bus master with stale data. Some BIOSes enable +* it by default, so we disable it. +*/ +u8 tmp; +pci_read_config_byte (d,0x70 , &tmp); +if (tmp &4 ) { +printk ("PCI: Bus master read caching disabled\n" ); +pci_write_config_byte (d,0x70 , tmp & ~4 ); + } +} +struct pci_fixup pcibios_fixups[] = { {PCI_FIXUP_HEADER ,PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_82451NX , pci_fixup_i450nx }, {PCI_FIXUP_HEADER ,PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_82454GX , pci_fixup_i450gx },
@@ -936,6 +952,7 @@ { PCI_FIXUP_HEADER, PCI_ANY_ID, PCI_ANY_ID, pci_fixup_ide_bases }, { PCI_FIXUP_HEADER, PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_5597, pci_fixup_latency }, { PCI_FIXUP_HEADER, PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_5598, pci_fixup_latency }, + { PCI_FIXUP_HEADER, PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8363_0, pci_fixup_vt8363 }, { 0 } };
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/