]> Gentwo Git Trees - linux/.git/commit
iommupt: Add iova_to_phys op
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 4 Nov 2025 18:30:03 +0000 (14:30 -0400)
committerJoerg Roedel <joerg.roedel@amd.com>
Wed, 5 Nov 2025 08:07:09 +0000 (09:07 +0100)
commit9d4c274cd7d5e1b6b9e116e155f16bcd208237d8
treebb1fcfb0e770affdc884eadc1381c8d83ec59574
parent879ced2bab1ba95e98fac56c9503791183bc7cbb
iommupt: Add iova_to_phys op

iova_to_phys is a performance path for the DMA API and iommufd, implement
it using an unrolled get_user_pages() like function waterfall scheme.

The implementation itself is fairly trivial.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: Samiullah Khawaja <skhawaja@google.com>
Tested-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Tested-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/generic_pt/iommu_pt.h
include/linux/generic_pt/iommu.h