]> git.ipfire.org Git - thirdparty/linux.git/commit
iommu: Add device ATS supported capability
authorShameer Kolothum <skolothumtho@nvidia.com>
Tue, 17 Mar 2026 11:16:02 +0000 (11:16 +0000)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 17 Mar 2026 13:05:05 +0000 (14:05 +0100)
commita82efb8747d1b8a7c0a377dc79c2aac204eae788
tree46f63527866bb33f32162815abe249111cc7d2f6
parentd6c65b0fd6218bd21ed0be7a8d3218e8f6dc91de
iommu: Add device ATS supported capability

PCIe ATS may be disabled by platform firmware, root complex limitations,
or kernel policy even when a device advertises the ATS capability in its
PCI configuration space.

Add a new IOMMU_CAP_PCI_ATS_SUPPORTED capability to allow IOMMU drivers
to report the effective ATS decision for a device.

When this capability is true for a device, ATS may be enabled for that
device, but it does not imply that ATS is currently enabled.

A subsequent patch will extend iommufd to expose the effective ATS
status to userspace.

Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Shameer Kolothum <skolothumtho@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/amd/iommu.c
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
drivers/iommu/intel/iommu.c
include/linux/iommu.h