diff options
author | Jason Gunthorpe <[email protected]> | 2023-10-17 15:11:44 -0300 |
---|---|---|
committer | Will Deacon <[email protected]> | 2023-12-13 13:09:22 +0000 |
commit | 9b3febc3a3da7fcd81ece10614b7fd6c729ba8b4 (patch) | |
tree | 9c19620996fe726ea86965e4378bc0366cbca319 /scripts/gdb/linux/utils.py | |
parent | e0976331ad114af8e379e18483c346c6c79ca858 (diff) |
iommu/arm-smmu: Convert to domain_alloc_paging()
Now that the BLOCKED and IDENTITY behaviors are managed with their own
domains change to the domain_alloc_paging() op.
The check for using_legacy_binding is now redundant,
arm_smmu_def_domain_type() always returns IOMMU_DOMAIN_IDENTITY for this
mode, so the core code will never attempt to create a DMA domain in the
first place.
Since commit a4fdd9762272 ("iommu: Use flush queue capability") the core
code only passes in IDENTITY/BLOCKED/UNMANAGED/DMA domain types. It will
not pass in IDENTITY or BLOCKED if the global statics exist, so the test
for DMA is also redundant now too.
Call arm_smmu_init_domain_context() early if a dev is available.
Signed-off-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[will: Simplify arm_smmu_domain_alloc_paging() since 'cfg' cannot be NULL]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions