diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2023-09-13 16:43:40 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2023-09-25 12:40:56 +0300 |
commit | 90057dc095dca023ad3e8cd5a129f392b543fb9e (patch) | |
tree | d52da514086cdc0e8a66cf85079a3e316b8dd7a2 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | c462944901319cb52ec0d0382dcea64f4f6f70e8 (diff) | |
download | linux-90057dc095dca023ad3e8cd5a129f392b543fb9e.tar.xz |
iommu/mtk_iommu_v1: Implement an IDENTITY domain
What mtk does during mtk_iommu_v1_set_platform_dma() is actually putting
the iommu into identity mode. Make this available as a proper IDENTITY
domain.
The mtk_iommu_v1_def_domain_type() from
commit 8bbe13f52cb7 ("iommu/mediatek-v1: Add def_domain_type") explains
this was needed to allow probe_finalize() to be called, but now the
IDENTITY domain will do the same job so change the returned
def_domain_type.
mkt_v1 is the only driver that returns IOMMU_DOMAIN_UNMANAGED from
def_domain_type(). This allows the next patch to enforce an IDENTITY
domain policy for this driver.
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/7-v8-81230027b2fa+9d-iommu_all_defdom_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions