diff options
author | 2023-09-22 23:55:23 +0900 | |
---|---|---|
committer | 2023-09-25 11:37:19 +0200 | |
commit | c7bd8a1f45bada7725d11266df7fd5cb549b3098 (patch) | |
tree | c630d205dc82bd1f09fe6b387982b05d9c92aeea /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'arm-smmu-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/will/linux into iommu/fixes (diff) | |
download | wireguard-linux-c7bd8a1f45bada7725d11266df7fd5cb549b3098.tar.xz wireguard-linux-c7bd8a1f45bada7725d11266df7fd5cb549b3098.zip |
iommu/apple-dart: Handle DMA_FQ domains in attach_dev()
Commit a4fdd9762272 ("iommu: Use flush queue capability") hid the
IOMMU_DOMAIN_DMA_FQ domain type from domain allocation. A check was
introduced in iommu_dma_init_domain() to fall back if not supported, but
this check runs too late: by that point, devices have been attached to
the IOMMU, and apple-dart's attach_dev() callback does not expect
IOMMU_DOMAIN_DMA_FQ domains.
Change the logic so the IOMMU_DOMAIN_DMA codepath is the default,
instead of explicitly enumerating all types.
Fixes an apple-dart regression in v6.5.
Cc: regressions@lists.linux.dev
Cc: stable@vger.kernel.org
Suggested-by: Robin Murphy <robin.murphy@arm.com>
Fixes: a4fdd9762272 ("iommu: Use flush queue capability")
Signed-off-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Neal Gompa <neal@gompa.dev>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20230922-iommu-type-regression-v2-1-689b2ba9b673@marcan.st
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions