iommu/amd: Add support for HTRangeIgnore feature
authorSairaj Kodilkar <sarunkod@amd.com>
Mon, 17 Mar 2025 05:50:20 +0000 (11:20 +0530)
committerJoerg Roedel <jroedel@suse.de>
Fri, 2 May 2025 06:38:09 +0000 (08:38 +0200)
commit94a9921e2c25eedcf95b00cedbd065579406655a
treeeb0cbf36fbe367c8557f388ea5bffecd0d23e8f0
parent94c721ea03c7078163f41dbaa101ac721ddac329
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 <sarunkod@amd.com>
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/20250317055020.25214-1-sarunkod@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu.h
drivers/iommu/amd/amd_iommu_types.h
drivers/iommu/amd/init.c
drivers/iommu/amd/iommu.c