]> git.ipfire.org Git - thirdparty/linux.git/commit
iommu/amd: Pass last in through to build_inv_address()
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 27 Mar 2026 15:23:56 +0000 (12:23 -0300)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 12 Jun 2026 07:18:59 +0000 (09:18 +0200)
commit2e43a291d7a79059ae0cc02be3d3931ae3dad242
tree9488838920bc79b4ed4799484b6f0eec019150a9
parent144c05d88c7f459c22abafe891ee149692f29734
iommu/amd: Pass last in through to build_inv_address()

This is the trivial call chain below amd_iommu_domain_flush_pages().

Cases that are doing a full invalidate will pass a last of U64_MAX.

This avoids converting between size and last, and type confusion with
size_t, unsigned long and u64 all being used in different places along
the driver's invalidation path. Consistently use u64 in the internals.

Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Tested-by: Dheeraj Kumar Srivastava <dheerajkumar.srivastava@amd.com>
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/amd/amd_iommu.h
drivers/iommu/amd/iommu.c
drivers/iommu/amd/pasid.c