Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2f9692d3 authored by Yifan Zhang's avatar Yifan Zhang Committed by Mitchel Humpherys
Browse files

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: default avatarYifan Zhang <zhangyf@marvell.com>
Signed-off-by: default avatarWill 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: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent 2456fd28
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment