[PATCH RFC 11/19] iommu/amd: Print access/dirty bits if supported

Joao Martins
2022-04-28T21:12:14Z

Print the feature, much like other kernel-supported features.

One can still probe its actual hw support via sysfs, regardless
of what the kernel does.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
---
drivers/iommu/amd/init.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/drivers/iommu/amd/init.c b/drivers/iommu/amd/init.c
index 27f2cf61d0c6..c410d127eb58 100644
--- a/drivers/iommu/amd/init.c
+++ b/drivers/iommu/amd/init.c
@@ -1936,6 +1936,10 @@ static void print_iommu_info(void)

if (iommu->features & FEATURE_GAM_VAPIC)
pr_cont(" GA_vAPIC");
+ if (iommu->features & FEATURE_HASUP)
+ pr_cont(" HASup");
+ if (iommu->features & FEATURE_HDSUP)
+ pr_cont(" HDSup");

pr_cont("\n");
}
--
2.17.2