iommu/amd: Disable PPR log/interrupt in iommu_disable()
authorVasant Hegde <vasant.hegde@amd.com>
Wed, 28 Jun 2023 05:45:52 +0000 (05:45 +0000)
committerJoerg Roedel <jroedel@suse.de>
Fri, 14 Jul 2023 14:21:41 +0000 (16:21 +0200)
Similar to other logs, disable PPR log/interrupt in
iommu_disable() path.

Reviewed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Link: https://lore.kernel.org/r/20230628054554.6131-2-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/init.c

index 30f09e7..94c91b6 100644 (file)
@@ -483,6 +483,10 @@ static void iommu_disable(struct amd_iommu *iommu)
        iommu_feature_disable(iommu, CONTROL_GALOG_EN);
        iommu_feature_disable(iommu, CONTROL_GAINT_EN);
 
+       /* Disable IOMMU PPR logging */
+       iommu_feature_disable(iommu, CONTROL_PPRLOG_EN);
+       iommu_feature_disable(iommu, CONTROL_PPRINT_EN);
+
        /* Disable IOMMU hardware itself */
        iommu_feature_disable(iommu, CONTROL_IOMMU_EN);