Corrupt data - RAID sata_sil 3114 chip
The last message of this discussion is more than one year old, but still there was no solution to this problem.
I recently encountered the same problem that a raid created with mdadm consisting of three SAMSUNG HD154UI sata harddisks had random errors and mdadm --examine would randomly report that checksums are wrong/correct.
The sata controller with the SIL 3114 chipset runs on an old Epox 8K3A board with a VIA KT133 chipset. I noticed that placing the controller in another pci slot would change the results of mdadm --examine. While in one slot it was the checksums were randomly changing between correct and wrong in another slot it was always displayed as wrong.
After deactivating every single bios option that somehow optimizes the pci bus the problem seems to be gone. After some more testing I could narrow the problem down to the option "PCI Master 0 WS Write", which controls if requests to the pci bus are executed immediately (with zero wait states) or if every write request will be delayed by one wait state.
Obviously this reduces the performance. I didn't perform tests but the resync speed of the raid dropped from ~ 28mb/s to ~ 17mb/s.
I hope this also solves the problems for other people and it would be interesting if any change to the driver would allow to reenable the "PCI Master 0 WS Write" option.
Regards,
Ulli Brennenstuhl
Quoted 19 lines · Ulli.Brennenstuhl
The last message of this discussion is more than one year old, but still there was no solution to this problem.
I recently encountered the same problem that a raid created with mdadm consisting of three SAMSUNG HD154UI sata harddisks had random errors and mdadm --examine would randomly report that checksums are wrong/correct.
The sata controller with the SIL 3114 chipset runs on an old Epox 8K3A board with a VIA KT133 chipset. I noticed that placing the controller in another pci slot would change the results of mdadm --examine. While in one slot it was the checksums were randomly changing between correct and wrong in another slot it was always displayed as wrong.
After deactivating every single bios option that somehow optimizes the pci bus the problem seems to be gone. After some more testing I could narrow the problem down to the option "PCI Master 0 WS Write", which controls if requests to the pci bus are executed immediately (with zero wait states) or if every write request will be delayed by one wait state.
Quoted 6 lines
Obviously this reduces the performance. I didn't perform tests but the resync speed of the raid dropped from ~ 28mb/s to ~ 17mb/s.
I hope this also solves the problems for other people and it would be interesting if any change to the driver would allow to reenable the "PCI Master 0 WS Write" option.
I don't imagine there's anything the driver's likely to be able to do to avoid it. That sounds like a definite chipset bug. The PCI interface on older VIA chipsets was pretty notorious for them.
Hello,
Quoted 10 lines · Robert Hancock
Quoted 9 lines · Ulli.Brennenstuhl
After deactivating every single bios option that somehow optimizes the pci bus the problem seems to be gone. After some more testing I could narrow the problem down to the option "PCI Master 0 WS Write", which controls if requests to the pci bus are executed immediately (with zero wait states) or if every write request will be delayed by one wait state.
Obviously this reduces the performance. I didn't perform tests but the resync speed of the raid dropped from ~ 28mb/s to ~ 17mb/s.
Quoted 7 lines
Quoted 3 lines
I hope this also solves the problems for other people and it would be interesting if any change to the driver would allow to reenable the "PCI Master 0 WS Write" option.
I don't imagine there's anything the driver's likely to be able to do to avoid it. That sounds like a definite chipset bug. The PCI interface on older VIA chipsets was pretty notorious for them.
Sil3112/3114 are now virtually the only controllers with occassional and unresolved data corruption issues. The other one was sata_via with ATAPI devices which got a possible fix recently (it needed a delay or flush during command issue or CDB leaked into write buffer).
Given that these sil chips are used very widely and the relatively low frequency and certain traits like putting two controllers on the bus triggers the problem more easily and this fiddling with PCI bus option resolves it, it's conceivable that signal tx/rx quality of sil3112/4 is borderline in certain cases which usually doesn't show up but causes problem when there also are other weaknesses in the bus (heavy loading, bus controller not having exactly the best signal quality and so on.
It would be great if there's some knob we can turn in the controller PCI config space but I really have no idea whatsoever. :-(
Thanks.
Signature · 1 line
tejun
Quoted 3 lines · Tejun Heo
It would be great if there's some knob we can turn in the controller PCI config space but I really have no idea whatsoever. :-(
I wonder if enabling EDAC PCI parity error detection would show up these problems - either on the controller itself, or its upstream PCI bridge chip?
modprobe edac_core check_pci_errors=1
alternatively, "setpci -s <slot> STATUS" should also show status register bit 15 having been asserted, I think, and lspci -vv should say "<PERR+"
Cheers,
Tim.
Quoted 5 lines · Tim Small
Quoted 3 lines · Tejun Heo
It would be great if there's some knob we can turn in the controller PCI config space but I really have no idea whatsoever. :-(
Quoted 8 lines
I wonder if enabling EDAC PCI parity error detection would show up these problems - either on the controller itself, or its upstream PCI bridge chip?
modprobe
edac_corecheck_pci_errors=1alternatively, "setpci -s<slot> STATUS" should also show status register bit 15 having been asserted, I think, and lspci -vv should say "<PERR+"
It's something to check, yes. It would be somewhat surprising if that were occurring - detected PCI parity errors should cause a target abort and cause a transfer failure, not silent data corruption. But again, on an old VIA chipset, for this to be handled improperly wouldn't be shocking :-)
Quoted 5 lines · Robert Hancock
It's something to check, yes. It would be somewhat surprising if that were occurring - detected PCI parity errors should cause a target abort and cause a transfer failure, not silent data corruption. But again, on an old VIA chipset, for this to be handled improperly wouldn't be shocking :-)
Oh... some via pci bridges are known to ignore PCI parity errors. It will just happily proceed with corrupt data.
Signature · 1 line
tejun
Quoted 1 line · Robert Hancock
It's something to check, yes. It would be somewhat surprising if that were occurring - detected PCI parity errors should cause a target abort and cause a transfer failure, not silent data corruption. But again, on an old VIA chipset, for this to be handled improperly wouldn't be shocking :-)
I believe that this is only the case if the motherboard BIOS sets bit 6 in the Control register to tell the device to respond to parity errors. Most of the "server" motherboards I've seen do. None of the non-server motherboards that I've just looked at do....
The Status flag "should" still work whether the "parity error response" flag is set, or not...
Cheers,
Tim.