diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-01-21 18:51:53 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-01-21 18:51:53 +0900 |
commit | 0609697eab9775564845d4c94f9e3780fb791ffd (patch) | |
tree | 0acb503e18c4a807d2a5d9a2417ecd3c292a7026 /kernel/lockdep.c | |
parent | cdf57cab27aef72f13a19c86858c6cac9951dc24 (diff) |
dma-coherent: Restore dma_alloc_from_coherent() large alloc fall back policy.
When doing large allocations (larger than the per-device coherent area)
the generic memory allocators are silently fallen back on regardless of
consideration for the per-device constraints.
In the DMA_MEMORY_EXCLUSIVE case falling back on generic memory is not
an option, as it tends not to be addressable by the DMA hardware in
question. This issue showed up with the 8139too breakage on the
Dreamcast, where non-addressable buffers were silently allocated due to
the size mismatch calculation -- while it should have simply errored out
upon being unable to satisfy the allocation with the given device
constraints.
This restores fall back behaviour to what it was before the oversized
request change caused multiple regressions.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'kernel/lockdep.c')
0 files changed, 0 insertions, 0 deletions