]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Globally detect SNP support
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Wed, 13 Jul 2022 22:56:47 +0000 (17:56 -0500)
committerJoerg Roedel <jroedel@suse.de>
Fri, 15 Jul 2022 08:41:03 +0000 (10:41 +0200)
commit87d6e42dcd8444e26a140d2ec00e777b1ce27817
tree3e31dcfc1abfb1f686ce8b290f74e2ccc71f6dc7
parent194177b5cc681fea7ba2959c0d0a00342974e2b9
iommu/amd: Globally detect SNP support

Modify existing SNP feature check to use the helper function
check_feature_on_all_iommus() to ensure consistency among all IOMMUs.
Also report IOMMU SNP support information for each IOMMU.

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Link: https://lore.kernel.org/r/20220713225651.20758-6-suravee.suthikulpanit@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/init.c