firewire: fw-ohci: use dma_alloc_coherent for ar_buffer
commitbde1709aaa98f5004ab1580842c422be18eb4bc3
authorJarod Wilson <jwilson@redhat.com>
Wed, 12 Mar 2008 21:43:26 +0000 (12 17:43 -0400)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 13 Mar 2008 23:57:00 +0000 (14 00:57 +0100)
tree9c7a3241d88574680911a48e81ce8d6ad252e559
parent6e45ef4c7aeefbf97df748866cd1b24f73b86160
firewire: fw-ohci: use dma_alloc_coherent for ar_buffer

Currently, we do nothing to guarantee we have a consistent DMA buffer for
asynchronous receive packets. Rather than doing several sync's following a
dma_map_single() to get consistent buffers, just switch to using
dma_alloc_coherent().

Resolves constant buffer failures on my own x86_64 laptop w/4GB of RAM and
likely to fix a number of other failures witnessed on x86_64 systems with
4GB of RAM or more.

Signed-off-by: Jarod Wilson <jwilson@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-ohci.c