linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] AVR32 PATA driver
@ 2007-08-07  9:26 Kristoffer Nyborg Gregertsen
  2007-08-07  9:27 ` [PATCH 1/1] " Kristoffer Nyborg Gregertsen
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Kristoffer Nyborg Gregertsen @ 2007-08-07  9:26 UTC (permalink / raw)
  To: linux-ide; +Cc: kngregertsen, gregerts

Hi everybody,

My PATA driver for AVR32 is now working in all PIO modes. I have
tested the driver for two weeks and it seems pretty stable, there
are no file corruption or fatal errors.

This is a typical result by running Bonnie in PIO4 (file size 104857600):

-------Sequential Output-------- ---Sequential Input-- --Random--
-Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
 MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
100  1599 80.5  5305 20.4  2581 17.4  1385 78.0  5068 14.8  45.8  1.9                               

Yet there are still some issues:

1) In PIO1 and PIO2 there are rare freezes:

ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
ata3.00: cmd 20/00:00:d3:7e:5d/00:00:00:00:00/e1 tag 0 cdb 0x0 data 131072 in
         res 58/00:01:d2:7f:5d/00:00:01:00:00/e1 Emask 0x2 (HSM violation)

The freezes happen close to each other in time. The freezes does not make file
operations fail.

2) After being in operation for a long time (+24 hours) the disk reports wrong
identity:

ata4.00: model number mismatch 'IC35L060AVV207-0' != ''
ata4.00: revalidation failed (errno=-19)
ata4.00: limiting speed to PIO2
ata4: failed to recover some devices, retrying in 5 secs
ata4.00: model number mismatch 'IC35L060AVV207-0' != 'AV07-0 *GARBEL*

This has happend with both the devices I am testing, the 'Quantum Fireball'
reported it self to be 'Quanpum Fiveball' after 24 hours of testing.

I also have a question regrding INTRQ / IRQ handeling. Since I am not using
DMA, there seems to be no reason to handle interrupts, so I set the polling
flag. Not using the polling flag gives a lot of interrupts that does not seem
to do anything except eating my CPU cycles. Is this correct?

If so, what shall I do when activating the host to not get "irq 65: nobody
cared" ... "Disabling IRQ #65". Should I give an negative irq number?

Any help and reviews of my code would be appriciate :)
-- 
Kristoffer Nyborg Gregertsen
MSc. student / Summer intern
Atmel Norway

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-08-31  9:38 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-07  9:26 [PATCH 0/1] AVR32 PATA driver Kristoffer Nyborg Gregertsen
2007-08-07  9:27 ` [PATCH 1/1] " Kristoffer Nyborg Gregertsen
2007-08-07 15:54   ` Alan Cox
2007-08-07 17:39     ` Kristoffer Nyborg Gregertsen
2007-08-07 18:14       ` Jeff Garzik
2007-08-07 18:26         ` Kristoffer Nyborg Gregertsen
2007-08-08 14:57     ` Kristoffer Nyborg Gregertsen
2007-08-31  9:38       ` Jeff Garzik
2007-08-07 15:58 ` [PATCH 0/1] " Alan Cox
2007-08-07 18:18   ` Kristoffer Nyborg Gregertsen
2007-08-14  6:41 ` [PATCH 1/1] " Kristoffer Nyborg Gregertsen
2007-08-14  6:53   ` Kristoffer Nyborg Gregertsen
2007-08-15  8:44     ` Kristoffer Nyborg Gregertsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).