]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
ARM: mm: dma-mapping: Separate gap-page from num-pf-page
authorSri Krishna chowdary <schowdary@nvidia.com>
Tue, 6 Jan 2015 17:23:13 +0000 (22:53 +0530)
committerSri Krishna Chowdary <schowdary@nvidia.com>
Fri, 16 Jan 2015 05:16:35 +0000 (21:16 -0800)
commitd604417f18e5e603807c3b45c2cee2f4337f5afa
tree4749f469837601c9e18dcfee2b55892bd68745d3
parent5a47135b0a10d5dcdac2a310653d7b6d9cc795a9
ARM: mm: dma-mapping: Separate gap-page from num-pf-page

A mapping can have gap-page and num-pf-page mentioned separately.
However, the current code adds a prefetch page for iommu mapping
if gap-page is 1 even though num-pf-page is 0. This is wrong and
prefetch page should not be mapped. Fixing it with this change.

Bug 200070960

Change-Id: I76fccbf9feb34d1dfd284d4ac48565dd21257864
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/669775
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
GVS: Gerrit_Virtual_Submit
arch/arm/mm/dma-mapping.c
arch/arm64/mm/dma-mapping.c