Re: [PATCH 00/11] DMA sync errors

David Miller
2010-01-20T22:46:29Z

From: Stephen Hemminger <shemminger@vyatta.com>
Date: Wed, 20 Jan 2010 12:44:59 -0800

> According to the DMA-API.txt
> Synchronise a single contiguous or scatter/gather mapping. All the
> parameters must be the same as those passed into the single mapping
> API.

I think this is unreasonable.

And it's going to kill performance for reception of small packets.

We might as well not do RX copybreak in any of these drivers any more
if we have to DMA sync the whole thing.

I think better to look at the various implementations of DMA APIs,
I bet they all handle this case just fine. And those that don't
are easily fixed. Then the documentation can be updated to match
and we can forget these crazy patches.