Corrupt data - RAID sata_sil 3114 chip
[sorry sent again, since Robert dropped all mailing list CCs and I didn't notice first]
Quoted 16 lines · Robert Hancock
Quoted 4 lines · Bernd Schubert
Quoted 3 lines · Alan Cox
On Fri, 2 Jan 2009 22:30:07 +0100
Bernd Schubert <[email protected]> wrote:Quoted 8 lines
Quoted 4 lines
Quoted 3 lines
Hello Bengt,
sil3114 is known to cause data corruption with some disks.
News to me. There are a few people with lots of SI and other devices
No no, you just forgot about it, since you even reviewed the patches ;)
And Jeff explained why they were not merged:
Quoted 7 lines
http://lkml.org/lkml/2007/10/11/166
All the patch does is try to reduce the speed impact of the workaround. But as was pointed out, they don't reliably solve the problem the workaround is trying to fix, and besides, the workaround is already not applied to SiI3114 at all, as it is apparently not applicable on that controller (only 3112).
Well, do they reliable solve the problem in our case (before taking the patch into production I run a checksum tests for about 2 weeks). Anyway, I entirely understand the patches didn't get accepted.
But now more than a year has passed again without doing anything about it and actually this is what I strongly criticize. Most people don't know about issues like that and don't run file checksum tests as I now always do before taking a disk into production. So users are exposed to known data corruption problems without even being warned about it. Usually even backups don't help, since one creates a backup of the corrupted data.
So IMHO, the driver should be deactived for sil3114 until a real solution is found. And it only should be possible to force activate it by a kernel flag, which then also would print a huuuge warning about possible data corruption (unfortunately most distributions disables inital kernel messages *grumble*).
Cheers,
Bernd
Quoted 25 lines · Bernd Schubert
[sorry sent again, since Robert dropped all mailing list CCs and I didn't notice first]
Quoted 9 lines · Robert Hancock
Quoted 8 lines · Bernd Schubert
Quoted 7 lines · Alan Cox
Quoted 3 lines · On Fri, 2 Jan 2009 22:30:07 +0100 Bernd Schubert <[email protected]> wrote:
Hello Bengt,
sil3114 is known to cause data corruption with some disks.
News to me. There are a few people with lots of SI and other devices
Quoted 8 lines
Quoted 3 lines
No no, you just forgot about it, since you even reviewed the patches ;)
And Jeff explained why they were not merged:
http://lkml.org/lkml/2007/10/11/166
All the patch does is try to reduce the speed impact of the workaround. But as was pointed out, they don't reliably solve the problem the workaround is trying to fix, and besides, the workaround is already not applied to SiI3114 at all, as it is apparently not applicable on that controller (only 3112).
Well, do they reliable solve the problem in our case (before taking the patch into production I run a checksum tests for about 2 weeks). Anyway, I entirely understand the patches didn't get accepted.
Quoted 8 lines
But now more than a year has passed again without doing anything about it and actually this is what I strongly criticize. Most people don't know about issues like that and don't run file checksum tests as I now always do before taking a disk into production. So users are exposed to known data corruption problems without even being warned about it. Usually even backups don't help, since one creates a backup of the corrupted data.
So IMHO, the driver should be deactived for sil3114 until a real solution is found. And it only should be possible to force activate it by a kernel flag, which then also would print a huuuge warning about possible data corruption (unfortunately most distributions disables inital kernel messages *grumble*).
If the corruption was happening on all such controllers then people would have been complaining in droves and something would have been done. It seems much more likely that in this case the problem is some kind of hardware fault or combination of hardware which is causing the problem. Unfortunately these kind of not-easily-reproducible issues tend to be very hard to track down.
Quoted 44 lines · Robert Hancock
Quoted 37 lines · Bernd Schubert
[sorry sent again, since Robert dropped all mailing list CCs and I didn't notice first]
Quoted 14 lines · Robert Hancock
Quoted 11 lines · Bernd Schubert
Quoted 7 lines · Alan Cox
Quoted 3 lines · On Fri, 2 Jan 2009 22:30:07 +0100 Bernd Schubert <[email protected]> wrote:
Hello Bengt,
sil3114 is known to cause data corruption with some disks.
News to me. There are a few people with lots of SI and other devices
No no, you just forgot about it, since you even reviewed the patches ;)
And Jeff explained why they were not merged:
Quoted 7 lines
http://lkml.org/lkml/2007/10/11/166
All the patch does is try to reduce the speed impact of the workaround. But as was pointed out, they don't reliably solve the problem the workaround is trying to fix, and besides, the workaround is already not applied to SiI3114 at all, as it is apparently not applicable on that controller (only 3112).
Well, do they reliable solve the problem in our case (before taking the patch into production I run a checksum tests for about 2 weeks). Anyway, I entirely understand the patches didn't get accepted.
But now more than a year has passed again without doing anything about it and actually this is what I strongly criticize. Most people don't know about issues like that and don't run file checksum tests as I now always do before taking a disk into production. So users are exposed to known data corruption problems without even being warned about it. Usually even backups don't help, since one creates a backup of the corrupted data.
Quoted 5 lines
So IMHO, the driver should be deactived for sil3114 until a real solution is found. And it only should be possible to force activate it by a kernel flag, which then also would print a huuuge warning about possible data corruption (unfortunately most distributions disables inital kernel messages *grumble*).
Quoted 7 lines
If the corruption was happening on all such controllers then people would have been complaining in droves and something would have been done. It seems much more likely that in this case the problem is some kind of hardware fault or combination of hardware which is causing the problem. Unfortunately these kind of not-easily-reproducible issues tend to be very hard to track down.
Well yes, it only happens with certain drives. But these drives work fine on other controllers. But still these are by now
known issues and nothing is done for that.
I would happily help to solve the problem, I just don't have any knowledge about hardware programming. What would be your next step, if you had remote access to such a system?
Thanks,
Bernd
Quoted 33 lines · Bernd Schubert
Quoted 32 lines · Robert Hancock
Quoted 31 lines · Bernd Schubert
[sorry sent again, since Robert dropped all mailing list CCs and I didn't notice first]
Quoted 9 lines · Robert Hancock
Quoted 8 lines · Bernd Schubert
Quoted 7 lines · Alan Cox
Quoted 3 lines · On Fri, 2 Jan 2009 22:30:07 +0100 Bernd Schubert <[email protected]> wrote:
Hello Bengt,
sil3114 is known to cause data corruption with some disks.
News to me. There are a few people with lots of SI and other devices
Quoted 8 lines
Quoted 3 lines
No no, you just forgot about it, since you even reviewed the patches ;)
And Jeff explained why they were not merged:
http://lkml.org/lkml/2007/10/11/166
All the patch does is try to reduce the speed impact of the workaround. But as was pointed out, they don't reliably solve the problem the workaround is trying to fix, and besides, the workaround is already not applied to SiI3114 at all, as it is apparently not applicable on that controller (only 3112).
Well, do they reliable solve the problem in our case (before taking the patch into production I run a checksum tests for about 2 weeks). Anyway, I entirely understand the patches didn't get accepted.
But now more than a year has passed again without doing anything about it and actually this is what I strongly criticize. Most people don't know about issues like that and don't run file checksum tests as I now always do before taking a disk into production. So users are exposed to known data corruption problems without even being warned about it. Usually even backups don't help, since one creates a backup of the corrupted data.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
So IMHO, the driver should be deactived for sil3114 until a real solution is found. And it only should be possible to force activate it by a kernel flag, which then also would print a huuuge warning about possible data corruption (unfortunately most distributions disables inital kernel messages *grumble*).
If the corruption was happening on all such controllers then people would have been complaining in droves and something would have been done. It seems much more likely that in this case the problem is some kind of hardware fault or combination of hardware which is causing the problem. Unfortunately these kind of not-easily-reproducible issues tend to be very hard to track down.
Well yes, it only happens with certain drives. But these drives work fine on
other controllers. But still these are by now known issues and nothing is done for that.
I would happily help to solve the problem, I just don't have any knowledge about hardware programming. What would be your next step, if you had remote access to such a system?
Have you been able to track down what kind of corruption is occurring exactly, i.e. what is happening to the data, is data being zeroed out, random bits being flipped, chunks of a certain size being corrupted, etc. That would likely be useful in determining where to go next..
Hello,
Quoted 7 lines · Bernd Schubert
But now more than a year has passed again without doing anything about it and actually this is what I strongly criticize. Most people don't know about issues like that and don't run file checksum tests as I now always do before taking a disk into production. So users are exposed to known data corruption problems without even being warned about it. Usually even backups don't help, since one creates a backup of the corrupted data.
sata_sil being one of the most popular controllers && data corruption reports seem to be concentrated on certain chipsets, I don't think it's a wide spread problem. In some cases, the corruption was very reproducible too.
I think it's something related to setting up the PCI side of things. There have been hints that incorrect CLS setting was the culprit and I tried thte combinations but without any success and unfortunately the problem wasn't reproducible with the hardware I have here. :-(
Anyways, there was an interesting report that updating the BIOS on the controller fixed the problem.
http://bugzilla.kernel.org/show_bug.cgi?id=10480
Taking "lspci -nnvvvxxx" output of before and after such BIOS update will shed some light on what's really going on. Can you please try that?
Quoted 5 lines
So IMHO, the driver should be deactived for sil3114 until a real solution is found. And it only should be possible to force activate it by a kernel flag, which then also would print a huuuge warning about possible data corruption (unfortunately most distributions disables inital kernel messages *grumble*).
The problem is serious but the scope is quite limited and we can't tell where the problem lies, so I'm not too sure about taking such drastic measure. Grumble...
Yeah, I really want to see this long standing problem fixed. To my knowledge, this is one of two still open data corruption bugs - the other one being via putting CDB bytes into burnt CD/DVDs.
So, if you can try the BIOS update thing, please give it a shot.
Thanks.
Signature · 1 line
tejun
Quoted 16 lines · Tejun Heo
Hello,
Quoted 7 lines · Bernd Schubert
But now more than a year has passed again without doing anything about it and actually this is what I strongly criticize. Most people don't know about issues like that and don't run file checksum tests as I now always do before taking a disk into production. So users are exposed to known data corruption problems without even being warned about it. Usually even backups don't help, since one creates a backup of the corrupted data.
sata_silbeing one of the most popular controllers && data corruption reports seem to be concentrated on certain chipsets, I don't think it's a wide spread problem. In some cases, the corruption was very reproducible too.
Quoted 4 lines
I think it's something related to setting up the PCI side of things. There have been hints that incorrect CLS setting was the culprit and I tried thte combinations but without any success and unfortunately the problem wasn't reproducible with the hardware I have here. :-(
As far as the cache line size register, the only thing the documentation says it controls _directly_ is "With the SiI3114 as a master, initiating a read transaction, it issues PCI command Read Multiple in place, when empty space in its FIFO is larger than the value programmed in this register."
The interesting thing is the commit (log below) that added code to the driver to check the PCI cache line size register and set up the FIFO thresholds:
2005/03/24 23:32:42-05:00 Carlos.Pardo
[PATCH] sata_sil: Fix FIFO PCI Bus Arbitration
This patch set default values for the FIFO PCI Bus Arbitration to avoid data corruption. The root cause is due to our PCI bus master handling mismatch with the chipset PCI bridge during DMA xfer (write data to the device). The patch is to setup the DMA fifo threshold so that there is no chance for the DMA engine to change protocol. We have seen this problem only on one motherboard.
What the code's doing is setting the FIFO thresholds, used to assign priority when requesting a PCI bus read or write operation, based on the cache line size somehow. It seems to be trusting that the chip's cache line size register has been set properly by the BIOS. The kernel should know what the cache line size is but AFAIK normally only sets it when the driver requests MWI. This chip doesn't support MWI, but it looks like pci_set_mwi would fix up the CLS register as a side effect..
Quoted 9 lines
Anyways, there was an interesting report that updating the BIOS on the controller fixed the problem.
http://bugzilla.kernel.org/show_bug.cgi?id=10480
Taking "lspci -nnvvvxxx" output of before and after such BIOS update will shed some light on what's really going on. Can you please try that?
Yes, that would be quite interesting.. the output even with the current BIOS would be useful to see if the BIOS set some stupid cache line size value..
Quoted 19 lines
Quoted 6 lines
So IMHO, the driver should be deactived for sil3114 until a real solution is found. And it only should be possible to force activate it by a kernel flag, which then also would print a huuuge warning about possible data corruption (unfortunately most distributions disables inital kernel messages *grumble*).
The problem is serious but the scope is quite limited and we can't tell where the problem lies, so I'm not too sure about taking such drastic measure. Grumble...
Yeah, I really want to see this long standing problem fixed. To my knowledge, this is one of two still open data corruption bugs - the other one being via putting CDB bytes into burnt CD/DVDs.
So, if you can try the BIOS update thing, please give it a shot.
Thanks.
Quoted 58 lines · On Wednesday 07 January 2009 06:38:28 Robert Hancock wrote:
Quoted 16 lines · Tejun Heo
Hello,
Quoted 7 lines · Bernd Schubert
But now more than a year has passed again without doing anything about it and actually this is what I strongly criticize. Most people don't know about issues like that and don't run file checksum tests as I now always do before taking a disk into production. So users are exposed to known data corruption problems without even being warned about it. Usually even backups don't help, since one creates a backup of the corrupted data.
sata_silbeing one of the most popular controllers && data corruption reports seem to be concentrated on certain chipsets, I don't think it's a wide spread problem. In some cases, the corruption was very reproducible too.Quoted 4 lines
I think it's something related to setting up the PCI side of things. There have been hints that incorrect CLS setting was the culprit and I tried thte combinations but without any success and unfortunately the problem wasn't reproducible with the hardware I have here. :-(
As far as the cache line size register, the only thing the documentation says it controls _directly_ is "With the SiI3114 as a master, initiating a read transaction, it issues PCI command Read Multiple in place, when empty space in its FIFO is larger than the value programmed in this register."
The interesting thing is the commit (log below) that added code to the driver to check the PCI cache line size register and set up the FIFO thresholds:
2005/03/24 23:32:42-05:00 Carlos.Pardo
[PATCH]sata_sil: Fix FIFO PCI Bus ArbitrationThis patch set default values for the FIFO PCI Bus Arbitration to avoid data corruption. The root cause is due to our PCI bus master handling mismatch with the chipset PCI bridge during DMA xfer (write data to the device). The patch is to setup the DMA fifo threshold so that there is no chance for the DMA engine to change protocol. We have seen this problem only on one motherboard.
Signed-off-by Silicon Image Corporation <[email protected]>Signed-off-by Jeff Garzik <[email protected]>What the code's doing is setting the FIFO thresholds, used to assign priority when requesting a PCI bus read or write operation, based on the cache line size somehow. It seems to be trusting that the chip's cache line size register has been set properly by the BIOS. The kernel should know what the cache line size is but AFAIK normally only sets it when the driver requests MWI. This chip doesn't support MWI, but it looks like
pci_set_mwiwould fix up the CLS register as a side effect..Quoted 5 lines
Anyways, there was an interesting report that updating the BIOS on the controller fixed the problem.
Quoted 7 lines
Quoted 3 lines
Taking "lspci -nnvvvxxx" output of before and after such BIOS update will shed some light on what's really going on. Can you please try that?
Yes, that would be quite interesting.. the output even with the current BIOS would be useful to see if the BIOS set some stupid cache line size value..
Unfortunately I can't update the bios/firmware of the Sil3114 directly, it is onboard and the firmware is included into the mainboard bios. There is not the most recent bios version installed, but when we initially had the problems, we first tried a bios update, but it didn't help.
As suggested by Robert, I'm presently trying to figure out the corruption pattern. Actually our test tool easily provides these data. Unfortunately, it so far didn't report anything, although the reiserfs already got corrupted. Might be my colleague, who wrote that tool, recently broke something (as it is the second time, it doesn't report corruptions), in the past it did work reliably. Please give me a few more days...
03:05.0 Mass storage controller [0180]: Silicon Image, Inc. SiI 3114 [SATALink/SATARaid] Serial ATA Controller [1095:3114] (rev 02)
Subsystem: Silicon Image, Inc. SiI 3114 SATALink Controller
[1095:3114]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR+ FastB2B-
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 64, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 19
Region 0: I/O ports at bc00 [size=8]
Region 1: I/O ports at b880 [size=4]
Region 2: I/O ports at b800 [size=8]
Region 3: I/O ports at ac00 [size=4]
Region 4: I/O ports at a880 [size=16]
Region 5: Memory at feafec00 (32-bit, non-prefetchable) [size=1K] Expansion ROM at fea00000 [disabled] [size=512K]
Capabilities: [60] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mAPME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-
00: 95 10 14 31 07 01 b0 02 02 00 80 01 10 40 00 00
10: 01 bc 00 00 81 b8 00 00 01 b8 00 00 01 ac 00 00
20: 81 a8 00 00 00 ec af fe 00 00 00 00 95 10 14 31
30: 00 00 a0 fe 60 00 00 00 00 00 00 00 0a 01 00 00
40: 02 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 01 00 22 06 00 40 00 64 00 00 00 00 00 00 00 00
70: 00 00 60 00 d0 d0 09 00 00 00 60 00 00 00 00 00
80: 03 00 00 00 22 00 00 00 00 00 00 00 c8 93 7f ef
90: 00 00 00 09 ff ff 00 00 00 00 00 19 00 00 00 00
a0: 01 31 15 65 dd 62 dd 62 92 43 92 43 09 40 09 40
b0: 01 21 15 65 dd 62 dd 62 92 43 92 43 09 40 09 40
c0: 84 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Cheers,
Bernd
Signature · 2 lines
Bernd Schubert Q-Leap Networks GmbH
Quoted 40 lines · Bernd Schubert
Quoted 40 lines
Quoted 4 lines
I think it's something related to setting up the PCI side of things. There have been hints that incorrect CLS setting was the culprit and I tried thte combinations but without any success and unfortunately the problem wasn't reproducible with the hardware I have here. :-(
As far as the cache line size register, the only thing the documentation says it controls _directly_ is "With the SiI3114 as a master, initiating a read transaction, it issues PCI command Read Multiple in place, when empty space in its FIFO is larger than the value programmed in this register."
The interesting thing is the commit (log below) that added code to the driver to check the PCI cache line size register and set up the FIFO thresholds:
2005/03/24 23:32:42-05:00 Carlos.Pardo
[PATCH]sata_sil: Fix FIFO PCI Bus ArbitrationThis patch set default values for the FIFO PCI Bus Arbitration to avoid data corruption. The root cause is due to our PCI bus master handling mismatch with the chipset PCI bridge during DMA xfer (write data to the device). The patch is to setup the DMA fifo threshold so that there is no chance for the DMA engine to change protocol. We have seen this problem only on one motherboard.
Signed-off-by Silicon Image Corporation <[email protected]>Signed-off-by Jeff Garzik <[email protected]>4
What the code's doing is setting the FIFO thresholds, used to assign priority when requesting a PCI bus read or write operation, based on the cache line size somehow. It seems to be trusting that the chip's cache line size register has been set properly by the BIOS. The kernel should know what the cache line size is but AFAIK normally only sets it when the driver requests MWI. This chip doesn't support MWI, but it looks likepci_set_mwiwould fix up the CLS register as a side effect..Quoted 5 lines
Anyways, there was an interesting report that updating the BIOS on the controller fixed the problem.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Taking "lspci -nnvvvxxx" output of before and after such BIOS update will shed some light on what's really going on. Can you please try that?
Yes, that would be quite interesting.. the output even with the current BIOS would be useful to see if the BIOS set some stupid cache line size value..
Unfortunately I can't update the bios/firmware of the Sil3114 directly, it is onboard and the firmware is included into the mainboard bios. There is not the most recent bios version installed, but when we initially had the problems, we first tried a bios update, but it didn't help.
Well if one is really adventurous one can sometimes use some BIOS image editing tools to install an updated flash image for such integrated chips into the main BIOS image. This is definitely for advanced users only though..
Quoted 4 lines
As suggested by Robert, I'm presently trying to figure out the corruption pattern. Actually our test tool easily provides these data. Unfortunately, it so far didn't report anything, although the reiserfs already got corrupted. Might be my colleague, who wrote that tool, recently broke something (as it is the second time, it doesn't report corruptions), in the past it did work reliably. Please give me a few more days...
Quoted 8 lines
03:05.0 Mass storage controller [0180]: Silicon Image, Inc. SiI 3114 [SATALink/SATARaid] Serial ATA Controller [1095:3114] (rev 02)
Subsystem: Silicon Image, Inc. SiI 3114 SATALink Controller
[1095:3114]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR+ FastB2B-
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 64, Cache Line Size: 64 bytes
Well, 64 seems quite reasonable, so that doesn't really give any more useful information.
I'm CCing Carlos Pardo at Silicon Image who wrote the patch above, maybe he has some insight.. Carlos, we have a case here where Bernd is reporting seeing corruption on an integrated SiI3114 on a Tyan Thunder K8S Pro (S2882) board, AMD 8111 chipset. This is reportedly occurring only with certain Seagate drives. Do you have any insight into this problem, in particular as far as whether the problem worked around in the patch mentioned above might be related?
There are apparently some reports of issues on NVidia chipsets as well, though I don't have any details at hand.
Quoted 34 lines
Interrupt: pin A routed to IRQ 19
Region 0: I/O ports at bc00 [size=8]
Region 1: I/O ports at b880 [size=4]
Region 2: I/O ports at b800 [size=8]
Region 3: I/O ports at ac00 [size=4]
Region 4: I/O ports at a880 [size=16]
Region 5: Memory atfeafec00(32-bit, non-prefetchable) [size=1K] Expansion ROM atfea00000[disabled] [size=512K]
Capabilities: [60] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mAPME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-
00: 95 10 14 31 07 01 b0 02 02 00 80 01 10 40 00 00
10: 01 bc 00 00 81 b8 00 00 01 b8 00 00 01 ac 00 00
20: 81 a8 00 00 00 ec af fe 00 00 00 00 95 10 14 31
30: 00 00 a0 fe 60 00 00 00 00 00 00 00 0a 01 00 00
40: 02 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 01 00 22 06 00 40 00 64 00 00 00 00 00 00 00 00
70: 00 00 60 00 d0 d0 09 00 00 00 60 00 00 00 00 00
80: 03 00 00 00 22 00 00 00 00 00 00 00 c8 93 7f ef
90: 00 00 00 09 ff ff 00 00 00 00 00 19 00 00 00 00
a0: 01 31 15 65 dd 62 dd 62 92 43 92 43 09 40 09 40
b0: 01 21 15 65 dd 62 dd 62 92 43 92 43 09 40 09 40
c0: 84 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00Cheers,
Bernd
Quoted 63 lines · Robert Hancock
Quoted 41 lines · Bernd Schubert
Quoted 41 lines
Quoted 4 lines
I think it's something related to setting up the PCI side of things. There have been hints that incorrect CLS setting was the culprit and I tried thte combinations but without any success and unfortunately the problem wasn't reproducible with the hardware I have here. :-(
As far as the cache line size register, the only thing the documentation says it controls _directly_ is "With the SiI3114 as a master, initiating a read transaction, it issues PCI command Read Multiple in place, when empty space in its FIFO is larger than the value programmed in this register."
The interesting thing is the commit (log below) that added code to the driver to check the PCI cache line size register and set up the FIFO thresholds:
2005/03/24 23:32:42-05:00 Carlos.Pardo
[PATCH]sata_sil: Fix FIFO PCI Bus ArbitrationThis patch set default values for the FIFO PCI Bus Arbitration to avoid data corruption. The root cause is due to our PCI bus master handling mismatch with the chipset PCI bridge during DMA xfer (write data to the device). The patch is to setup the DMA fifo threshold so that there is no chance for the DMA engine to change protocol. We
have
seen this problem only on one motherboard.Signed-off-by Silicon Image Corporation <[email protected]>Signed-off-by Jeff Garzik <[email protected]>4
What the code's doing is setting the FIFO thresholds, used to assign priority when requesting a PCI bus read or write operation, based on the cache line size somehow. It seems to be trusting that the chip's cache line size register has been set properly by the BIOS. The kernel should know what the cache line size is but AFAIK normally only sets it when the driver requests MWI. This chip doesn't support MWI, but it looks likepci_set_mwiwould fix up the CLS register as a side effect..Quoted 5 lines
Anyways, there was an interesting report that updating the BIOS on the controller fixed the problem.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Taking "lspci -nnvvvxxx" output of before and after such BIOS update will shed some light on what's really going on. Can you please try that?
Yes, that would be quite interesting.. the output even with the current BIOS would be useful to see if the BIOS set some stupid cache line size value..
Unfortunately I can't update the bios/firmware of the Sil3114 directly, it is onboard and the firmware is included into the mainboard bios. There is not the most recent bios version installed, but when we initially had the problems, we first tried a bios update, but it didn't help.
Well if one is really adventurous one can sometimes use some BIOS image editing tools to install an updated flash image for such integrated chips into the main BIOS image. This is definitely for advanced users only though..
Quoted 10 lines
As suggested by Robert, I'm presently trying to figure out the corruption pattern. Actually our test tool easily provides these data. Unfortunately, it so far didn't report anything, although the reiserfs already got corrupted. Might be my colleague, who wrote that tool, recently broke something (as it is the second time, it doesn't report corruptions), in the past it did work reliably. Please give me a few more days...
03:05.0 Mass storage controller [0180]: Silicon Image, Inc. SiI 3114 [SATALink/SATARaid] Serial ATA Controller [1095:3114] (rev 02)
Subsystem: Silicon Image, Inc. SiI 3114 SATALink Controller
[1095:3114]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium
Quoted 8 lines
Quoted 2 lines
Quoted 1 line
TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64, Cache Line Size: 64 bytes
Well, 64 seems quite reasonable, so that doesn't really give any more useful information.
I'm CCing Carlos Pardo at Silicon Image who wrote the patch above, maybe he has some insight.. Carlos, we have a case here where Bernd is reporting seeing corruption on an integrated SiI3114 on a Tyan Thunder K8S Pro (S2882) board, AMD 8111 chipset. This is reportedly occurring only with certain Seagate drives. Do you have any insight into this problem, in particular as far as whether the problem worked around in the patch mentioned above might be related?
There are apparently some reports of issues on NVidia chipsets as well, though I don't have any details at hand.
Well, Carlos' email bounces, so much for that one. Anyone have any other contacts at Silicon Image?
Quoted 41 lines
Quoted 35 lines
Interrupt: pin A routed to IRQ 19
Region 0: I/O ports at bc00 [size=8]
Region 1: I/O ports at b880 [size=4]
Region 2: I/O ports at b800 [size=8]
Region 3: I/O ports at ac00 [size=4]
Region 4: I/O ports at a880 [size=16]
Region 5: Memory atfeafec00(32-bit, non-prefetchable) [size=1K] Expansion ROM atfea00000[disabled] [size=512K]
Capabilities: [60] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mAPME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-
00: 95 10 14 31 07 01 b0 02 02 00 80 01 10 40 00 00
10: 01 bc 00 00 81 b8 00 00 01 b8 00 00 01 ac 00 00
20: 81 a8 00 00 00 ec af fe 00 00 00 00 95 10 14 31
30: 00 00 a0 fe 60 00 00 00 00 00 00 00 0a 01 00 00
40: 02 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 01 00 22 06 00 40 00 64 00 00 00 00 00 00 00 00
70: 00 00 60 00 d0 d0 09 00 00 00 60 00 00 00 00 00
80: 03 00 00 00 22 00 00 00 00 00 00 00 c8 93 7f ef
90: 00 00 00 09 ff ff 00 00 00 00 00 19 00 00 00 00
a0: 01 31 15 65 dd 62 dd 62 92 43 92 43 09 40 09 40
b0: 01 21 15 65 dd 62 dd 62 92 43 92 43 09 40 09 40
c0: 84 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00Cheers,
BerndSignature · 3 lines
To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · Robert Hancock
Quoted 2 lines
There are apparently some reports of issues on NVidia chipsets as well, though I don't have any details at hand.
Well, Carlos' email bounces, so much for that one. Anyone have any other contacts at Silicon Image?
I'll ping my SIMG contacts but I've pinged about this problem in the past but it didn't get anywhere.
Thanks.
Signature · 1 line
tejun
Quoted 9 lines · Tejun Heo
Quoted 5 lines · Robert Hancock
Quoted 2 lines
There are apparently some reports of issues on NVidia chipsets as well, though I don't have any details at hand.
Well, Carlos' email bounces, so much for that one. Anyone have any other contacts at Silicon Image?
I'll ping my SIMG contacts but I've pinged about this problem in the past but it didn't get anywhere.
I wish I'd read this thread last week.. I've been beating my head against this problem all weekend.
I picked up a cheap 3114 card, and found that when I created a filesystem with it on a 250GB disk, it got massive corruption very quickly.
My experience echos most the other peoples in this thread, but here's a few data points I've been able to figure out..
I ran badblocks -v -w -s on the disk, and after running for nearly 24 hours, it reported a huge number of blocks failing at the upper part of the disk.
I created a partition in this bad area to speed up testing..
Device Boot Start End Blocks Id System /dev/sde1 1 30000 240974968+ 83 Linux /dev/sde2 30001 30200 1606500 83 Linux /dev/sde3 30201 30401 1614532+ 83 Linux
Rerunning badblocks on /dev/sde2 consistently fails when it gets to the reading back 0x00 stage. (Somehow it passes reading back 0xff, 0xaa and 0x55)
I was beginning to suspect the disk may be bad, but when I moved it to a box with Intel sata, the badblocks run on that same partition succeeds with no problems at all.
Given the corruption happens at high block numbers, I'm wondering if maybe there's some kind of wraparound bug happening here. (Though why only the 0x00 pattern fails would still be a mystery).
After reading about the firmware update fixing it, I thought I'd give that a shot. This was pretty much complete fail.
The DOS utility for flashing claims I'm running BIOS 5.0.39,
which looking at http://www.siliconimage.com/support/searchresults.aspx?pid=28&cat=15
is quite ancient. So I tried the newer ones.
Same experience with both 5.4.0.3, and 5.0.73
"BIOS version in the input file is not a newer version"
Forcing it to write anyway gets..
"Data is different at address 65f6h"
Dave
Signature · 1 line
http://www.codemonkey.org.uk
Quoted 35 lines · Dave Jones
Quoted 9 lines · Tejun Heo
Quoted 5 lines · Robert Hancock
Quoted 2 lines
There are apparently some reports of issues on NVidia chipsets as well, though I don't have any details at hand.
Well, Carlos' email bounces, so much for that one. Anyone have any other contacts at Silicon Image?
I'll ping my SIMG contacts but I've pinged about this problem in the past but it didn't get anywhere.
I wish I'd read this thread last week.. I've been beating my head against this problem all weekend.
I picked up a cheap 3114 card, and found that when I created a filesystem with it on a 250GB disk, it got massive corruption very quickly.
My experience echos most the other peoples in this thread, but here's a few data points I've been able to figure out..
I ran badblocks -v -w -s on the disk, and after running for nearly 24 hours, it reported a huge number of blocks failing at the upper part of the disk.
I created a partition in this bad area to speed up testing..
Device Boot Start End Blocks Id System /dev/sde1 1 30000 240974968+ 83 Linux /dev/sde2 30001 30200 1606500 83 Linux /dev/sde3 30201 30401 1614532+ 83 LinuxRerunning badblocks on
/dev/sde2consistently fails when it gets to the reading back0x00stage. (Somehow it passes reading back0xff,0xaaand0x55)
Quoted 7 lines
I was beginning to suspect the disk may be bad, but when I moved it to a box with Intel sata, the badblocks run on that same partition succeeds with no problems at all.
Given the corruption happens at high block numbers, I'm wondering if maybe there's some kind of wraparound bug happening here. (Though why only the
0x00pattern fails would still be a mystery).
Yeah, that seems a bit bizarre.. Apparently somehow zeros are being converted into non-zero.. Can you try zeroing out the partition by dd'ing into it from /dev/zero or something, then dumping it back out to see what kind of data is showing up?
Quoted 22 lines
After reading about the firmware update fixing it, I thought I'd give that a shot. This was pretty much complete fail.
The DOS utility for flashing claims I'm running BIOS 5.0.39,
which looking at http://www.siliconimage.com/support/searchresults.aspx?pid=28&cat=15
is quite ancient. So I tried the newer ones.
Same experience with both 5.4.0.3, and 5.0.73"BIOS version in the input file is not a newer version"
Forcing it to write anyway gets..
"Data is different at address 65f6h"
Dave
Quoted 8 lines · Robert Hancock
Quoted 3 lines
Given the corruption happens at high block numbers, I'm wondering if maybe there's some kind of wraparound bug happening here. (Though why only the
0x00pattern fails would still be a mystery).Yeah, that seems a bit bizarre.. Apparently somehow zeros are being converted into non-zero.. Can you try zeroing out the partition by dd'ing into it from
/dev/zeroor something, then dumping it back out to see what kind of data is showing up?
Hmm, it seems the failed firmware update has killed the eeprom. It no longer reports the right PCI vendor ID.
Dave
Signature · 1 line
http://www.codemonkey.org.uk