[PATCH v5 01/25] iommu: Add iommu_ops->identity_domain
Baolu Lu
baolu.lu at linux.intel.com
Tue Jul 25 23:11:04 PDT 2023
On 2023/7/25 1:21, Jason Gunthorpe wrote:
> This allows a driver to set a global static to an IDENTITY domain and
> the core code will automatically use it whenever an IDENTITY domain
> is requested.
>
> By making it always available it means the IDENTITY can be used in error
> handling paths to force the iommu driver into a known state. Devices
> implementing global static identity domains should avoid failing their
> attach_dev ops.
>
> Convert rockchip to use the new mechanism.
>
> Tested-by: Steven Price<steven.price at arm.com>
> Tested-by: Marek Szyprowski<m.szyprowski at samsung.com>
> Tested-by: Nicolin Chen<nicolinc at nvidia.com>
> Signed-off-by: Jason Gunthorpe<jgg at nvidia.com>
> ---
> drivers/iommu/iommu.c | 3 +++
> drivers/iommu/rockchip-iommu.c | 9 +--------
> include/linux/iommu.h | 3 +++
> 3 files changed, 7 insertions(+), 8 deletions(-)
I will later convert the VT-d driver to use iommu_ops->identity_domain.
Reviewed-by: Lu Baolu <baolu.lu at linux.intel.com>
More information about the Linux-mediatek
mailing list