iommu/arm-smmu: fix bug in pmd construction
authorMitchel Humpherys <mitchelh@codeaurora.org>
Fri, 19 Sep 2014 21:58:42 +0000 (22:58 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 22 Sep 2014 10:13:01 +0000 (11:13 +0100)
commitccd359f219bee914501a8892b148e2a1315066d3
treec58d1f704f9bb13d6f08a2e6b73f9fda8afca63d
parentd3aba0460a2e13b49892f7a12237f82658c44257
iommu/arm-smmu: fix bug in pmd construction

We are using the same pfn for every pte we create while constructing the
pmd. Fix this by actually updating the pfn on each iteration of the pmd
construction loop.

It's not clear if we can actually hit this bug right now since iommu_map
splits up the calls to .map based on the page size, so we only ever seem to
iterate this loop once. However, things might change in the future that
might cause us to hit this.

Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c