Skip to content

Commit 31be5b5

Browse files
aljimenezbmehmetb0
authored andcommitted
iommu/amd: Remove unused amd_iommu_domain_update()
BugLink: https://bugs.launchpad.net/bugs/2103829 [ Upstream commit 1a684b0 ] All the callers have been removed by the below commit, remove the implementation and prototypes. Fixes: 322d889 ("iommu/amd: Remove amd_iommu_domain_update() from page table freeing") Reviewed-by: Vasant Hegde <vasant.hegde@amd.com> Signed-off-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/1-v2-9776c53c2966+1c7-amd_paging_flags_jgg@nvidia.com Signed-off-by: Joerg Roedel <jroedel@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org> [nwager: context change due to missing commit: 89ffb2c ("iommu/amd: Make amd_iommu_dev_update_dte() static")] Signed-off-by: Noah Wager <noah.wager@canonical.com> Signed-off-by: Mehmet Basaran <mehmet.basaran@canonical.com>
1 parent 6d66f35 commit 31be5b5

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

drivers/iommu/amd/amd_iommu.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ int amd_iommu_complete_ppr(struct device *dev, u32 pasid, int status, int tag);
8686
*/
8787
void amd_iommu_flush_all_caches(struct amd_iommu *iommu);
8888
void amd_iommu_update_and_flush_device_table(struct protection_domain *domain);
89-
void amd_iommu_domain_update(struct protection_domain *domain);
9089
void amd_iommu_dev_update_dte(struct iommu_dev_data *dev_data, bool set);
9190
void amd_iommu_domain_flush_complete(struct protection_domain *domain);
9291
void amd_iommu_domain_flush_pages(struct protection_domain *domain,

drivers/iommu/amd/iommu.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,15 +1613,6 @@ void amd_iommu_update_and_flush_device_table(struct protection_domain *domain)
16131613
domain_flush_devices(domain);
16141614
}
16151615

1616-
void amd_iommu_domain_update(struct protection_domain *domain)
1617-
{
1618-
/* Update device table */
1619-
amd_iommu_update_and_flush_device_table(domain);
1620-
1621-
/* Flush domain TLB(s) and wait for completion */
1622-
amd_iommu_domain_flush_all(domain);
1623-
}
1624-
16251616
int amd_iommu_complete_ppr(struct device *dev, u32 pasid, int status, int tag)
16261617
{
16271618
struct iommu_dev_data *dev_data;

0 commit comments

Comments
 (0)