Skip to contentSkip to conversation

libata/iswraid DMA Timeout

DISCUSSION [email protected] 3 participants 5 messages Feb 23, 2004 – Feb 24, 2004

lore
Share & tools
lore
#0 lore raw

Sorry never posted to this list so bear with me.
I am currently using kernel version 2.4.25 i386 with libata and iswraid.
Note: iswraid is for 2.4.22, but it applied to 2.4.25 without issue.

I am not sure which patch this problem is in relation to, but here is the information.

I was using a php script to move a bunch of my files around the file system when my system locks up and I see:
ata1: DMA timeout, stat 0x21
ATA: abnormal status 0x59 on port 0xC407

I try to do an emegency sync but I fails, and I am forced to reboot. This problem is reproducable. If any additional information is needed please email me as I am not a member of the mailing list.

Thanks.

#1 lore raw
Quoted 5 lines · On Mon, Feb 23 at 18:51, [email protected] wrote:

Sorry never posted to this list so bear with me. I am currently using kernel version 2.4.25 i386 with libata and iswraid. Note: iswraid is for 2.4.22, but it applied to 2.4.25 without issue.

I am not sure which patch this problem is in relation to, but here is the information.

I was using a php script to move a bunch of my files around the file system when my system locks up and I see: ata1: DMA timeout, stat 0x21 ATA: abnormal status 0x59 on port 0xC407

0x59 is the status that the drive sends when it has a block in error and wants to transmit said block. The LBA in the task file after the bad block is transferred is the location of the error.

I think that the drive you're copying from had a hard ECC error. Maybe see if you can try to read all the files on that drive and see if you can find a bad block.

Signature · 2 lines
Eric D. Mudama
[email protected]
#2 lore raw
In reply to [email protected]
Quoted 4 lines · --- [email protected] wrote:

Sorry never posted to this list so bear with me.
I am currently using kernel version 2.4.25 i386 with libata and iswraid.
Note: iswraid is for 2.4.22, but it applied to 2.4.25 without issue.

Please try the new iswraid that was posted to this list on Friday, Feb. 20th. It is completely redone and has a lot more features than what you were using, including /proc fs support, ICH6R support, updating RAID metadata on errors, ability to work with many volumes and various configurations of them, etc., etc. Yes, it's very new and new bugs could have been introduced but I think you'll be better off with the latest anyway.

Quoted 5 lines

I was using a php script to move a bunch of my files around the file system
when my system locks up and I see:
ata1: DMA timeout, stat 0x21
ATA: abnormal status 0x59 on port 0xC407

I had a bad SATA cable once and was seeing the same thing. I reported it to libata1 author via personal email. I don't think iswraid has anything to do with it as this is a lower level driver issue. Iswraid, both old and new, are fairly high level drivers that don't deal directly with the SATA controllers or their interrupts. In fact, iswraid would work with any SCSI disks that have the right metadata format on them.

Quoted 1 line

I try to do an emegency sync but I fails, and I am forced to reboot.

In my experience the system was still usable, except the userland application was hanging. Adding another SATA transaction (to any disk, I believe), was what made it hang completely. So I think we've seen the same problem.

I certainly don't understand enough of libata1 to fix this, but you could perhaps start by changing your SATA cables or at least swapping them around to see whether the timeout follows the cable, perhaps, as it was in my case.

Good luck, and please report back any iswraid bugs/wishes/questions.

Martins Krikis
Storage Components Division (SCD)
Intel Massachusetts

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

#3 lore raw

Quoting Martins Krikis <[email protected]>:
[snip]

Quoted 11 lines
Quoted 1 line

I try to do an emegency sync but I fails, and I am forced to reboot.

In my experience the system was still usable, except the userland application was hanging. Adding another SATA transaction (to any disk, I believe), was what made it hang completely. So I think we've seen the same problem.

I certainly don't understand enough of libata1 to fix this, but you could perhaps start by changing your SATA cables or at least swapping them around to see whether the timeout follows the cable, perhaps, as it was in my case.

[snip]

Was your fault a random occurance or could you always reproduce it. I have only seen mine doing this one particualar operation, and nowhere else, and it is perfectly reproducable every time.

#4 lore raw
Quoted 5 lines · --- [email protected] wrote:

Was your fault a random occurance or could you always reproduce it. I have only
seen mine doing this one particualar operation, and nowhere else, and it is
perfectly reproducable every time.

Reproducible. Always happened on mount (not on fdisk, not on mke2fs, I never got to anything beyond mount). I started swapping cables and thus discovered the faulty cable. Of course, your problem could be different.

Martins

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools