Skip to contentSkip to conversation

Changes in siimage driver?

DISCUSSION Arve Knudsen 4 participants 7 messages Sep 17, 2003 – Sep 18, 2003

lore
Share & tools
lore
#0 lore raw

Hello

I've noticed that the siimage driver has changed since a few revisions back, I ran into some problems probably related to the driver when updating to 2.6.0-test5-mm1 however. First of all, I noticed hdparm reported really bad performance numbers for my Maxtor DiamondMax9 120GB. About 16MB/sec is reported for a buffered disk reads. The older version of the driver doesnt turn on DMA, but after enabling certain options (-d1, X66 etc.) with hdparm, I get ~50MB/S. It's not an ideal solution since now and then I get a bunch of "disabling irq #18" messages after running hdparm (I think, its part of the startup scripts), and I have to restart.

The second issue is more serious; after rebooting I noticed 3 files I had been working on, and a couple of directories I had downloaded were corrupted. The single files were filled with zeros, while the directories were impossible to access (I/O error). I couldn't even rm (-r) the directories. Am I the only one who's run into any sort of issues with the updated driver? From what I can see it hasn't been modified in the last revision (test5-bk4), hopefully noone is losing important data because of this (fortunately I had some recent backups). Anyway, I'd like some feedback on this from those in the know (the performance drop should be fairly easy to verify, unless hdparm is playing tricks on me).

Thanks in advance

Arve Knudsen

#1 lore raw
Quoted 3 lines · Arve Knudsen

X66 etc.) with hdparm, I get ~50MB/S. It's not an ideal solution since now and then I get a bunch of "disabling irq #18" messages after running hdparm (I think, its part of the startup scripts), and I have to restart.

That is a bug in the 2.6.0 core still. Just hack out the code which does the IRQ disable on too many apparently unidentified interrupts.

Quoted 6 lines

directories. Am I the only one who's run into any sort of issues with the updated driver? From what I can see it hasn't been modified in the last revision (test5-bk4), hopefully noone is losing important data because of this (fortunately I had some recent backups). Anyway, I'd like some feedback on this from those in the know (the performance drop should be fairly easy to verify, unless hdparm is playing tricks on me).

Don't keep important data only on 2.6-test boxes. Its 'test' - it shouldnt eat anything but...

#2 lore raw
Quoted 7 lines · Alan Cox
Quoted 3 lines · Arve Knudsen

X66 etc.) with hdparm, I get ~50MB/S. It's not an ideal solution since now and then I get a bunch of "disabling irq #18" messages after running hdparm (I think, its part of the startup scripts), and I have to restart.

That is a bug in the 2.6.0 core still. Just hack out the code which does the IRQ disable on too many apparently unidentified interrupts.

Ok, thanks for identifying the source of this. I'm no kernel hacker at all, but I'll see what I can find.

Quoted 9 lines
Quoted 6 lines

directories. Am I the only one who's run into any sort of issues with the updated driver? From what I can see it hasn't been modified in the last revision (test5-bk4), hopefully noone is losing important data because of this (fortunately I had some recent backups). Anyway, I'd like some feedback on this from those in the know (the performance drop should be fairly easy to verify, unless hdparm is playing tricks on me).

Don't keep important data only on 2.6-test boxes. Its 'test' - it shouldnt eat anything but...

Well, I understand that, but the older version of the driver (as of test4-mm4) doesn't have these problems (better performance according to hdparm, no corruption). The latest changes to the driver seems to have introduced problems, or is it just me?

Thanks for the swift reply

Arve Knudsen

#3 lore raw
Quoted 10 lines · Arve Knudsen

On Wed, 17 Sep 2003 17:40:36 +0100, Alan Cox <[email protected]>

Quoted 7 lines · wrote:
Quoted 5 lines · Arve Knudsen

X66 etc.) with hdparm, I get ~50MB/S. It's not an ideal solution since now
and then I get a bunch of "disabling irq #18" messages after running hdparm (I think, its part of the startup scripts), and I have to restart.

Quoted 5 lines
Quoted 2 lines

That is a bug in the 2.6.0 core still. Just hack out the code which does the IRQ disable on too many apparently unidentified interrupts.

Ok, thanks for identifying the source of this. I'm no kernel hacker at all, but I'll see what I can find.

s/IRQ_NONE/IRQ_HANDLE/ in ide-io.c or trace which one is offending one.

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

directories. Am I the only one who's run into any sort of issues with the
updated driver? From what I can see it hasn't been modified in the last revision (test5-bk4), hopefully noone is losing important data because of
this (fortunately I had some recent backups). Anyway, I'd like some feedback on this from those in the know (the performance drop should be fairly easy to verify, unless hdparm is playing tricks on me).

Quoted 7 lines
Quoted 2 lines

Don't keep important data only on 2.6-test boxes. Its 'test' - it shouldnt eat anything but...

Well, I understand that, but the older version of the driver (as of test4-mm4) doesn't have these problems (better performance according to hdparm, no corruption). The latest changes to the driver seems to have introduced problems, or is it just me?

You are the first person reporting problems after syncing siimage driver with 2.4.x ;-). It's unlikely that corruption is caused by siimage driver update, we should have seen similar problems with 2.4.x, but...

Performance is crippled because of workaround for buggy controllers. We turn it on unconditionally now, we should do it only on affected controllers. I believe freebsd's workaround is correct and we can adopt it. For more details please see the other thread regarding siimage.

--bartlomiej

Quoted 3 lines

Thanks for the swift reply

Arve Knudsen

#4 lore raw
Quoted 8 lines · Bartlomiej Zolnierkiewicz
Quoted 4 lines

Well, I understand that, but the older version of the driver (as of test4-mm4) doesn't have these problems (better performance according to hdparm, no corruption). The latest changes to the driver seems to have introduced problems, or is it just me?

You are the first person reporting problems after syncing siimage driver with 2.4.x ;-). It's unlikely that corruption is caused by siimage driver update, we should have seen similar problems with 2.4.x, but...

Yes, it's weird, but it happened the first time I tried the test5 kernel. Not a good feeling, sitting with directories you can't even delete :\ The computer had been up for some time (12 hours or so), and several files I had open for editing were zeroed out when I opened them after reboot. Could it have to do with my Maxtor DiamondMax drive perhaps? I guess most people got Seagate SATA drives, I've since then purchased a Seagate 7200.7 SATA to complement the Maxtor.

Quoted 4 lines

Performance is crippled because of workaround for buggy controllers. We turn it on unconditionally now, we should do it only on affected controllers. I believe freebsd's workaround is correct and we can adopt it. For more details please see the other thread regarding siimage.

Sounds great, I think I will migrate to a newer kernel once I have done some proper backups to an unmounted partition :]

Thanks

Arve Knudsen

#5 lore raw
In reply to Alan Cox
Quoted 7 lines · Alan Cox
Quoted 3 lines · Arve Knudsen

X66 etc.) with hdparm, I get ~50MB/S. It's not an ideal solution since now and then I get a bunch of "disabling irq #18" messages after running hdparm (I think, its part of the startup scripts), and I have to restart.

That is a bug in the 2.6.0 core still.

How come this driver is returning IRQ_NONE so much?

Quoted 2 lines

Just hack out the code which does
the IRQ disable on too many apparently unidentified interrupts.

You can boot with the `noirqdebug' option to disable it.

#6 lore raw
Quoted 10 lines · Andrew Morton
Quoted 7 lines · Alan Cox
Quoted 3 lines · Arve Knudsen

X66 etc.) with hdparm, I get ~50MB/S. It's not an ideal solution since now and then I get a bunch of "disabling irq #18" messages after running hdparm (I think, its part of the startup scripts), and I have to restart.

That is a bug in the 2.6.0 core still.

How come this driver is returning IRQ_NONE so much?

Lots of IDE interrupts get cleared directly in other code paths but I'm not sure. I just know its happening.