iommu/arm-smmu: Refine check for proper size of mapped region
There is already a check to print a warning if the size of SMMU address space (calculated from SMMU register values) is greater than the size of the mapped memory region (e.g. passed via DT to the driver). Adapt this check to print also a warning in case the mapped region is larger than the SMMU address space. Such a mismatch could be intentional (to fix wrong register values). If its not intentional (e.g. due to wrong DT information) this will very likely cause a malfunction of the driver as SMMU_CB_BASE is derived from the size of the mapped region. The warning helps to identify the root cause in this case. Change-Id: Ife51929a44dca8fd8a33550fbc38faa8c40f77a2 Signed-off-by:Andreas Herrmann <andreas.herrmann@calxeda.com> Signed-off-by:
Will Deacon <will.deacon@arm.com> Git-commit: c55af7f719cbb0f0b28f42b3f98f662278f063c2 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