* strange interaction between IDE and ieee1394 driver
@ 2000-11-20 19:51 Arne Schirmacher
2000-11-20 20:36 ` Meelis Roos
0 siblings, 1 reply; 2+ messages in thread
From: Arne Schirmacher @ 2000-11-20 19:51 UTC (permalink / raw)
To: linux-kernel
When I user the ieee1394 subsystem to transmit data from a camcorder to an
IDE disk and the IDE driver is not using DMA, then there will be some data
lost in the ieee1394 driver. If I turn on DMA in the IDE driver (hdparm -d1
/dev/hda), I do not have any data loss in the ieee1394 driver. Also, on a
system that is using a SCSI disk instead of an IDE disk everything is ok
too.
This behavior has been observed on several different systems. I can
reproduce it on my system with kernel 2.2.16 and 2.4.0 test10 with several
versions of the ieee1394 driver.
My guess is that using the non-DMA mode in the IDE driver is somehow more
demanding compared to the DMA mode. Since both IDE and ieee1394 chips are
accessed via the PCI bus, perhaps the traffic is so high that the ieee1394
data doesn't make it through. But this is just a guess.
The data rate from the camcorder is about 3.6 MByte/sec, the hdparm -Tt
benchmark show 4.5 MByte/sec transfer speed when not using DMA and 19
MByte/sec when using DMA. (However even the slow disk speed is fast enough
to store the video data. The video packets get lost at the ieee1394 driver
side, not when attempting writing them to a disk file).
Another thing is that there is no handshake available between camcorder and
ieee1394 interface (it wouldn't make sense for a video appplication). If
the interface is not listening, the dropped packet can't be retransmitted.
Any insights into the nature of this problem would be very appreciated.
Arne Schirmacher
(I am not the developer of the ieee1394 driver, just a (currently unhappy)
user of both ieee1394 and IDE driver)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: strange interaction between IDE and ieee1394 driver
2000-11-20 19:51 strange interaction between IDE and ieee1394 driver Arne Schirmacher
@ 2000-11-20 20:36 ` Meelis Roos
0 siblings, 0 replies; 2+ messages in thread
From: Meelis Roos @ 2000-11-20 20:36 UTC (permalink / raw)
To: arne, linux-kernel
AS> When I user the ieee1394 subsystem to transmit data from a camcorder to an
AS> IDE disk and the IDE driver is not using DMA, then there will be some data
AS> lost in the ieee1394 driver. If I turn on DMA in the IDE driver (hdparm -d1
AS> /dev/hda), I do not have any data loss in the ieee1394 driver. Also, on a
IDE is blocking interrupts for too long in non-DMA mode? Try hdparm -u 1
in non-dma mode - this may help if interrupt latency is the issue.
--
Meelis Roos (mroos@linux.ee)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-11-20 21:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-20 19:51 strange interaction between IDE and ieee1394 driver Arne Schirmacher
2000-11-20 20:36 ` Meelis Roos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®