diff options
author | Jason Gunthorpe <[email protected]> | 2024-04-30 14:21:34 -0300 |
---|---|---|
committer | Will Deacon <[email protected]> | 2024-05-01 15:33:52 +0100 |
commit | 78a5fbe8395b365d58142ff9b7a6aeb556481a1f (patch) | |
tree | bc8de03e19e04acc4d85c111c34e4ccf47ae3d0b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | de31c355541286aa4c938c982dfcafbf062fcb93 (diff) |
iommu/arm-smmu-v3: Make CD programming use arm_smmu_write_entry()
CD table entries and STE's have the same essential programming sequence,
just with different types. Use the new ops indirection to link CD
programming to the common writer.
In a few more patches all CD writers will call an appropriate make
function and then directly call arm_smmu_write_cd_entry().
arm_smmu_write_ctx_desc() will be removed.
Until then lightly tweak arm_smmu_write_ctx_desc() to also use the new
programmer by using the same logic as right now to build the target CD on
the stack, sanitizing it to meet the used rules, and then using the
writer.
Sanitizing is necessary because the writer expects that the currently
programmed CD follows the used rules. Next patches add new make functions
and new direct calls to arm_smmu_write_cd_entry() which will require this.
Signed-off-by: Michael Shavit <[email protected]>
Tested-by: Nicolin Chen <[email protected]>
Tested-by: Shameer Kolothum <[email protected]>
Reviewed-by: Moritz Fischer <[email protected]>
Reviewed-by: Nicolin Chen <[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