Commit de111f6
iommu/amd: Enable Guest Translation after reading IOMMU feature register
Commit 8e01797 ("iommu/amd: Enable Guest Translation before
registering devices") moved IOMMU Guest Translation (GT) enablement to
early init path. It does feature check based on Global EFR value (got from
ACPI IVRS table). Later it adjusts EFR value based on IOMMU feature
register (late_iommu_features_init()).
It seems in some systems BIOS doesn't set gloabl EFR value properly.
This is causing mismatch. Hence move IOMMU GT enablement after
late_iommu_features_init() so that it does check based on IOMMU EFR
value.
Fixes: 8e01797 ("iommu/amd: Enable Guest Translation before registering devices")
Reported-by: Klara Modin <[email protected]>
Closes: https://lore.kernel.org/linux-iommu/[email protected]/
Signed-off-by: Vasant Hegde <[email protected]>
Tested-by: Klara Modin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>1 parent bbe1e78 commit de111f6
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2046 | 2046 | | |
2047 | 2047 | | |
2048 | 2048 | | |
| 2049 | + | |
| 2050 | + | |
2049 | 2051 | | |
2050 | 2052 | | |
2051 | 2053 | | |
| |||
2732 | 2734 | | |
2733 | 2735 | | |
2734 | 2736 | | |
2735 | | - | |
2736 | 2737 | | |
2737 | 2738 | | |
2738 | 2739 | | |
| |||
2789 | 2790 | | |
2790 | 2791 | | |
2791 | 2792 | | |
2792 | | - | |
2793 | 2793 | | |
2794 | 2794 | | |
2795 | 2795 | | |
| |||
0 commit comments