diff options
author | Jason Gunthorpe <[email protected]> | 2024-02-26 13:07:17 -0400 |
---|---|---|
committer | Will Deacon <[email protected]> | 2024-02-29 15:12:22 +0000 |
commit | 65547275d76965c3106fbcd4a9244242eb88224c (patch) | |
tree | a0bf8c5eb46bbcb94af908467c5b451ab7e95e5a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9f7c68911579bc15c57d227d021ccd253da2b635 (diff) |
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 <[email protected]>
Reviewed-by: Nicolin Chen <[email protected]>
Reviewed-by: Mostafa Saleh <[email protected]>
Tested-by: Shameer Kolothum <[email protected]>
Tested-by: Nicolin Chen <[email protected]>
Tested-by: Moritz Fischer <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions