iommu/amd: Remove unused amd_io_pgtable.pt_root variable
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Thu, 21 Sep 2023 09:21:34 +0000 (09:21 +0000)
committerJoerg Roedel <jroedel@suse.de>
Mon, 25 Sep 2023 10:38:59 +0000 (12:38 +0200)
It has been no longer used since the commit 6eedb59c18a3 ("iommu/amd:
Remove amd_iommu_domain_get_pgtable").

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Link: https://lore.kernel.org/r/20230921092147.5930-2-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu.h
drivers/iommu/amd/amd_iommu_types.h

index e2857109e966015e94efb919f28723c8ed151fa4..c5090e00b3aa73c98c91109cce7f249d288c63d6 100644 (file)
@@ -105,7 +105,6 @@ static inline void *iommu_phys_to_virt(unsigned long paddr)
 static inline
 void amd_iommu_domain_set_pt_root(struct protection_domain *domain, u64 root)
 {
-       atomic64_set(&domain->iop.pt_root, root);
        domain->iop.root = (u64 *)(root & PAGE_MASK);
        domain->iop.mode = root & 7; /* lowest 3 bits encode pgtable mode */
 }
index 7dc30c2b56b302d8bd3cd129f410610d536059e6..081d8d0f29d520d409f108b8a7131d6ba893a576 100644 (file)
@@ -544,7 +544,6 @@ struct amd_io_pgtable {
        struct io_pgtable       iop;
        int                     mode;
        u64                     *root;
-       atomic64_t              pt_root;        /* pgtable root and pgtable mode */
        u64                     *pgd;           /* v2 pgtable pgd pointer */
 };