diff options
author | Joerg Roedel <jroedel@suse.de> | 2024-04-26 13:54:13 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2024-04-26 13:54:13 +0300 |
commit | 5dc72c8a146ddcfc568265c8088e90d8e996d340 (patch) | |
tree | 0ec46a798323b9c64f896f71493b7d801b92e458 /drivers/iommu/amd/ppr.c | |
parent | a4eecd720546527d9c3091231b531e8ca18ba718 (diff) | |
parent | 212c5c078d83d780cf2873ca931df135771e8bb7 (diff) | |
download | linux-5dc72c8a146ddcfc568265c8088e90d8e996d340.tar.xz |
Merge branch 'memory-observability' into x86/amd
Diffstat (limited to 'drivers/iommu/amd/ppr.c')
-rw-r--r-- | drivers/iommu/amd/ppr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/iommu/amd/ppr.c b/drivers/iommu/amd/ppr.c index 0463daa2d46b..091423bb8aac 100644 --- a/drivers/iommu/amd/ppr.c +++ b/drivers/iommu/amd/ppr.c @@ -15,6 +15,8 @@ #include "amd_iommu.h" #include "amd_iommu_types.h" +#include "../iommu-pages.h" + int __init amd_iommu_alloc_ppr_log(struct amd_iommu *iommu) { iommu->ppr_log = iommu_alloc_4k_pages(iommu, GFP_KERNEL | __GFP_ZERO, @@ -46,7 +48,7 @@ void amd_iommu_enable_ppr_log(struct amd_iommu *iommu) void __init amd_iommu_free_ppr_log(struct amd_iommu *iommu) { - free_pages((unsigned long)iommu->ppr_log, get_order(PPR_LOG_SIZE)); + iommu_free_pages(iommu->ppr_log, get_order(PPR_LOG_SIZE)); } /* |