diff options
| author | Sairaj Kodilkar <[email protected]> | 2025-03-17 05:50:20 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2025-05-02 06:38:09 +0000 |
| commit | 94a9921e2c25eedcf95b00cedbd065579406655a (patch) | |
| tree | eb0cbf36fbe367c8557f388ea5bffecd0d23e8f0 /drivers/iommu/amd/init.c | |
| parent | iommu/amd: Ensure GA log notifier callbacks finish running before module unload (diff) | |
| download | kernel-94a9921e2c25eedcf95b00cedbd065579406655a.tar.gz kernel-94a9921e2c25eedcf95b00cedbd065579406655a.zip | |
iommu/amd: Add support for HTRangeIgnore feature
AMD IOMMU reserves the address range 0xfd00000000-0xffffffffff for
the hypertransport protocol (HT) and has special meaning. Hence devices
cannot use this address range for the DMA. However on some AMD platforms
this HT range is shifted to the very top of the address space and new
feature bit `HTRangeIgnore` is introduced. When this feature bit is on,
IOMMU treats the GPA access to the legacy HT range as regular GPA access.
Signed-off-by: Sairaj Kodilkar <[email protected]>
Reviewed-by: Vasant Hegde <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/iommu/amd/init.c')
| -rw-r--r-- | drivers/iommu/amd/init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/iommu/amd/init.c b/drivers/iommu/amd/init.c index dd9e26b7b718..acf8941e1ed3 100644 --- a/drivers/iommu/amd/init.c +++ b/drivers/iommu/amd/init.c @@ -256,6 +256,11 @@ int amd_iommu_get_num_iommus(void) return amd_iommus_present; } +bool amd_iommu_ht_range_ignore(void) +{ + return check_feature2(FEATURE_HT_RANGE_IGNORE); +} + /* * Iterate through all the IOMMUs to get common EFR * masks among all IOMMUs and warn if found inconsistency. |
