On Tue, Feb 03, 2004 at 10:21:27AM +0000, Richard Curnow wrote:
> Hi Greg,
> 
> Below is a fix for a bounce-buffer handling problem in 2.4.  The problem
> is where no actual DMA by the card occurs, and the result of the
> operation is inserted straight into the original buffer by software.
> When bounce-buffers are being used, the memcpy inside pci_unmap_single
> copies the uninitialized junk from the DMA buffer over the original
> buffer, destroying the result that had been set up there.
> 
> (The problem showed up on an sh prototyping/development board where the
> PCI controller (V320USC) doesn't have any access to the CPU main memory,
> only to a small separate shared block of RAM that's there specifically
> to provide DMA bounce buffers.)
> 
> The patch has been tested by me on sh64 and on that sh platform, and by
> David on x86.
> 
> Can you consider including it please?

Applied, thanks.

greg k-h


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to