]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iommu/amd: Fix argument order in amd_iommu_dev_flush_pasid_all()
authorEliav Bar-ilan <eliavb@nvidia.com>
Tue, 10 Sep 2024 19:44:16 +0000 (16:44 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:33:26 +0000 (16:33 +0200)
commit92e53443dc63d193c64b81516686b7afed6f80ca
tree3d4825a0200b29b0264d16bed376651e2a7c7bfa
parenteab78824687cb1a134984c4e8b272809ea127a9b
iommu/amd: Fix argument order in amd_iommu_dev_flush_pasid_all()

commit 8386207f37e98453e1de3f51e50eeeea089103f9 upstream.

An incorrect argument order calling amd_iommu_dev_flush_pasid_pages()
causes improper flushing of the IOMMU, leaving the old value of GCR3 from
a previous process attached to the same PASID.

The function has the signature:

void amd_iommu_dev_flush_pasid_pages(struct iommu_dev_data *dev_data,
     ioasid_t pasid, u64 address, size_t size)

Correct the argument order.

Cc: stable@vger.kernel.org
Fixes: 474bf01ed9f0 ("iommu/amd: Add support for device based TLB invalidation")
Signed-off-by: Eliav Bar-ilan <eliavb@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/0-v1-fc6bc37d8208+250b-amd_pasid_flush_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/amd/iommu.c