Skip to content

Commit

Permalink
sh: fix DMA driver's descriptor chaining and cookie assignment
Browse files Browse the repository at this point in the history
The SH DMA driver wrongly assigns negative cookies to transfer descriptors,
also, its chaining of partial descriptors is broken. The latter problem is
usually invisible, because maximum transfer size per chunk is 16M, but if you
artificially set this limit lower, the driver fails. Since cookies are also
used in chunk management, both these problems are fixed in one patch. As side
effects a possible memory leak, when descriptors are prepared, but not
submitted, and multiple races have also been fixed.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Acked-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
  • Loading branch information
Guennadi Liakhovetski authored and Dan Williams committed Dec 17, 2009
1 parent 4297a46 commit 3542a11
Show file tree
Hide file tree
Showing 2 changed files with 213 additions and 120 deletions.
Loading

0 comments on commit 3542a11

Please sign in to comment.