diff options
author | Robin Murphy <[email protected]> | 2017-03-30 17:56:30 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2017-04-06 16:06:43 +0100 |
commit | 452107c79035c6654b963e83c4862d9faa195af4 (patch) | |
tree | 0370a501b31ddb7bb3b2e07949c84789ab87ac0d /scripts/gdb/linux/proc.py | |
parent | 280b683ceaceb7508dc1e9c7e148ea1dcdf36543 (diff) |
iommu/arm-smmu: Tidy up context bank indexing
ARM_AMMU_CB() is calculated relative to ARM_SMMU_CB_BASE(), but the
latter is never of use on its own, and what we end up with is the same
ARM_SMMU_CB_BASE() + ARM_AMMU_CB() expression being duplicated at every
callsite. Folding the two together gives us a self-contained context
bank accessor which is much more pleasant to work with.
Secondly, we might as well simplify CB_BASE itself at the same time.
We use the address space size for its own sake precisely once, at probe
time, and every other usage is to dynamically calculate CB_BASE over
and over and over again. Let's flip things around so that we just
maintain the CB_BASE address directly.
Reviewed-by: Jordan Crouse <[email protected]>
Signed-off-by: Robin Murphy <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions