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

Commit 402575ce authored by Mitchel Humpherys's avatar Mitchel Humpherys Committed by Neeti Desai
Browse files

iommu/arm-smmu: Make arm_smmu_unprepare_pgtable atomic



Currently, arm_smmu_unprepare_pgtable makes a hypervisor call to
unassign the memory being freed up.  However, this is a sleeping call
and arm_smmu_unprepare_pgtable can be called from atomic context.  Fix
this by making arm_smmu_unprepare_pgtable atomic in a similar manner to
arm_smmu_prepare_pgtable (put the addresses to be unprepared on a list
and unprepare them at the end of unmap).

Change-Id: Ifba40ca3ceb4aaf328a1a570e0ee6c39088075ba
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent cdcb5b53
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