diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2012-06-21 11:48:11 +0200 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2012-06-25 10:18:52 +0200 |
commit | 593f47355467b9ef44293698817e2bdb347e2d11 (patch) | |
tree | 2e90c04ac19f11cf8b94c92058d4a0ac0e00401d /.mailmap | |
parent | 6b16351acbd415e66ba16bf7d473ece1574cf0bc (diff) | |
download | linux-3.10-593f47355467b9ef44293698817e2bdb347e2d11.tar.gz linux-3.10-593f47355467b9ef44293698817e2bdb347e2d11.tar.bz2 linux-3.10-593f47355467b9ef44293698817e2bdb347e2d11.zip |
ARM: dma-mapping: fix buffer chunk allocation order
IOMMU-aware dma_alloc_attrs() implementation allocates buffers in
power-of-two chunks to improve performance and take advantage of large
page mappings provided by some IOMMU hardware. However current code, due
to a subtle bug, allocated those chunks in the smallest-to-largest
order, what completely killed all the advantages of using larger than
page chunks. If a 4KiB chunk has been mapped as a first chunk, the
consecutive chunks are not aligned correctly to the power-of-two which
match their size and IOMMU drivers were not able to use internal
mappings of size other than the 4KiB (largest common denominator of
alignment and chunk size).
This patch fixes this issue by changing to the correct largest-to-smallest
chunk size allocation sequence.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions