diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2024-02-26 20:07:17 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-02-29 18:12:22 +0300 |
commit | 65547275d76965c3106fbcd4a9244242eb88224c (patch) | |
tree | a0bf8c5eb46bbcb94af908467c5b451ab7e95e5a /tools/perf/scripts/python/stackcollapse.py | |
parent | 9f7c68911579bc15c57d227d021ccd253da2b635 (diff) | |
download | linux-65547275d76965c3106fbcd4a9244242eb88224c.tar.xz |
iommu/arm-smmu-v3: Compute the STE only once for each master
Currently arm_smmu_install_ste_for_dev() iterates over every SID and
computes from scratch an identical STE. Every SID should have the same STE
contents. Turn this inside out so that the STE is supplied by the caller
and arm_smmu_install_ste_for_dev() simply installs it to every SID.
This is possible now that the STE generation does not inform what sequence
should be used to program it.
This allows splitting the STE calculation up according to the call site,
which following patches will make use of, and removes the confusing NULL
domain special case that only supported arm_smmu_detach_dev().
Reviewed-by: Michael Shavit <mshavit@google.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Mostafa Saleh <smostafa@google.com>
Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Tested-by: Moritz Fischer <moritzf@google.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/6-v6-96275f25c39d+2d4-smmuv3_newapi_p1_jgg@nvidia.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions