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

Skip to content
Commit 8b27d233 authored by Isaac J. Manjarres's avatar Isaac J. Manjarres
Browse files

iommu/arm-smmu: Fix SMR mask extraction for bootloader programmed SMRs



When extracting the mask for an SMR that was programmed by the
bootloader, the SMR.valid field is also extracted and is treated
as part of the mask. This causes issues when removing an SMMU
master, as removing the master involves constructing an SMR
entry with the mask and SID without the valid bit set and writing
that value to the SMR. However, since the valid bit was part of
the mask, the SMR will still be valid.

Instead, remove the valid bit from the raw SMR value that is used
for extracting the SMR mask.

Change-Id: Iccada2c474b196200ae1b56eb9faa9cb026f5ef1
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent b482a807
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