iommu/arm-smmu: fix pud/pmd entry fill sequence
The ARM SMMU driver's population of puds and pmds is broken, since we iterate over the next level of table repeatedly setting the current level descriptor to point at the pmd being initialised. This is clearly wrong when dealing with multiple pmds/puds. This patch fixes the problem by moving the pud/pmd population out of the loop and instead performing it when we allocate the next level (like we correctly do for ptes already). The starting address for the next level is then calculated prior to entering the loop. Change-Id: I93eb9edadb7894806e68a804459b79dd471df1d5 Cc: <stable@vger.kernel.org> Signed-off-by:Yifan Zhang <zhangyf@marvell.com> Signed-off-by:
Will Deacon <will.deacon@arm.com> Git-commit: 97a644208d1a08b7104d1fe2ace8cef011222711 Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Signed-off-by:
Mitchel Humpherys <mitchelh@codeaurora.org>
Loading
Please register or sign in to comment