diff options
author | Will Deacon <will.deacon@arm.com> | 2014-07-23 13:20:43 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2014-09-02 10:04:43 +0100 |
commit | 4d09d99d543ec28b2280a1f62382697f47ea6366 (patch) | |
tree | 99a52a879b40a417e07f022d2b1019bd2dd4b91d /init/version.c | |
parent | 70c9a7db93a152e975c4158b944c6b50579415c2 (diff) | |
download | talos-obmc-linux-4d09d99d543ec28b2280a1f62382697f47ea6366.tar.gz talos-obmc-linux-4d09d99d543ec28b2280a1f62382697f47ea6366.zip |
iommu/arm-smmu: fix corner cases in address size calculations
Working out the usable address sizes for the SMMU is surprisingly tricky.
We must take into account both the limitations of the hardware for VA,
IPA and PA sizes but also any restrictions imposed by the Linux page
table code, particularly when dealing with nested translation (where the
IPA size is limited by the input address size at stage-2).
This patch fixes a few corner cases in our address size handling so that
we correctly deal with 40-bit addresses in TTBCR2 and restrict the IPA
size differently depending on whether or not we have support for nested
translation.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'init/version.c')
0 files changed, 0 insertions, 0 deletions