diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2023-10-17 15:11:44 -0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2023-12-13 13:09:22 +0000 |
commit | 9b3febc3a3da7fcd81ece10614b7fd6c729ba8b4 (patch) | |
tree | 9c19620996fe726ea86965e4378bc0366cbca319 /scripts/gdb/linux/stackdepot.py | |
parent | e0976331ad114af8e379e18483c346c6c79ca858 (diff) | |
download | linux-9b3febc3a3da7fcd81ece10614b7fd6c729ba8b4.tar.gz linux-9b3febc3a3da7fcd81ece10614b7fd6c729ba8b4.tar.bz2 linux-9b3febc3a3da7fcd81ece10614b7fd6c729ba8b4.zip |
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 <jgg@nvidia.com>
Link: https://lore.kernel.org/r/5-v2-c86cc8c2230e+160bb-smmu_newapi_jgg@nvidia.com
[will: Simplify arm_smmu_domain_alloc_paging() since 'cfg' cannot be NULL]
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/stackdepot.py')
0 files changed, 0 insertions, 0 deletions