linux/drivers/firewire
Stefan Richter 4817ed2402 firewire: prevent creation of multiple IR DMA contexts for the same channel
OHCI-1394 1.1 clause 10.4.3 says:  "If more than one IR DMA context
specifies receives for packets from the same isochronous channel, the
context destination for that channel's packets is undefined."

Any userspace client and in the future also kernelspace clients can
allocate IR DMA contexts for any channel.  We don't want them to
interfere with each other, hence it is preferable to return -EBUSY if
allocation of a second context for a channel is attempted.

Notes:
  - This limitation is OHCI-1394 specific, therefore its proper place of
    implementation is down in the low-level driver.

  - Since the <linux/firewire-cdev.h> ABI simply maps one userspace iso
    client context to one hardware iso context, this OHCI-1394
    limitation alas requires userspace to implement its own multiplexing
    of iso reception from the same channel and card to multiple clients
    when needed.

  - The limitation is independent of channel allocation at the IRM; the
    latter is really only important for the initiation of iso 
    transmission but not of iso reception.

  - We don't need to do the same for IT DMA because OHCI-1394 does not
    have any ties between IT contexts and channels.  Only the voluntary
    channel allocation protocol via the IRM, globally to the FireWire
    bus, can ensure proper isochronous transmit behaviour anyway.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
2009-03-24 20:56:41 +01:00
..
fw-card.c firewire: remove line breaks before function names 2009-03-24 20:56:40 +01:00
fw-cdev.c firewire: cdev: use list_first_entry 2009-03-24 20:56:41 +01:00
fw-device.c firewire: remove line breaks before function names 2009-03-24 20:56:40 +01:00
fw-device.h firewire: remove line breaks before function names 2009-03-24 20:56:40 +01:00
fw-iso.c firewire: prevent creation of multiple IR DMA contexts for the same channel 2009-03-24 20:56:41 +01:00
fw-ohci.c firewire: prevent creation of multiple IR DMA contexts for the same channel 2009-03-24 20:56:41 +01:00
fw-ohci.h firewire: fw-ohci: log regAccessFail events 2008-04-18 17:55:34 +02:00
fw-sbp2.c firewire: remove line breaks before function names 2009-03-24 20:56:40 +01:00
fw-topology.c firewire: remove line breaks before function names 2009-03-24 20:56:40 +01:00
fw-topology.h firewire: remove line breaks before function names 2009-03-24 20:56:40 +01:00
fw-transaction.c firewire: remove line breaks before function names 2009-03-24 20:56:40 +01:00
fw-transaction.h firewire: prevent creation of multiple IR DMA contexts for the same channel 2009-03-24 20:56:41 +01:00
Kconfig firewire: Kconfig help update 2008-08-19 18:47:56 +02:00
Makefile firewire: prefix modules with firewire- instead of fw- 2007-05-27 23:21:01 +02:00