diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2024-02-26 20:07:21 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-02-29 18:12:22 +0300 |
commit | 1b50017d39f650d78a0066734d6fe05920a8c9e8 (patch) | |
tree | 913f84b3833889451c9a83297b20702d5b111a05 /tools/perf/scripts/python/stackcollapse.py | |
parent | d550ddc5b789f258cb5ce3bfe74af6d5383589b5 (diff) | |
download | linux-1b50017d39f650d78a0066734d6fe05920a8c9e8.tar.xz |
iommu/arm-smmu-v3: Remove arm_smmu_master->domain
Introducing global statics which are of type struct iommu_domain, not
struct arm_smmu_domain makes it difficult to retain
arm_smmu_master->domain, as it can no longer point to an IDENTITY or
BLOCKED domain.
The only place that uses the value is arm_smmu_detach_dev(). Change things
to work like other drivers and call iommu_get_domain_for_dev() to obtain
the current domain.
The master->domain is subtly protecting the master->domain_head against
being unused as only PAGING domains will set master->domain and only
paging domains use the master->domain_head. To make it simple keep the
master->domain_head initialized so that the list_del() logic just does
nothing for attached non-PAGING domains.
Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Tested-by: Moritz Fischer <moritzf@google.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Mostafa Saleh <smostafa@google.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/10-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