]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu/amd: Always enable GCR3TRPMode when supported.
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Thu, 15 Jan 2026 06:08:07 +0000 (06:08 +0000)
committerJoerg Roedel <joerg.roedel@amd.com>
Sun, 18 Jan 2026 09:56:12 +0000 (10:56 +0100)
commitb2bb0573ddb2dcac7ebcd65708e172ce0a1de754
tree3f7f150db577a6f7ac792e51db6e5cd053770340
parente05698c10d980ac0a0b57ed81ec9353b9e9533c6
iommu/amd: Always enable GCR3TRPMode when supported.

The GCR3TRPMode feature allows the DTE[GCR3TRP] field to be configured
with GPA (instead of SPA). This simplifies the implementation, and is
a pre-requisite for nested translation support.

Therefore, always enable this feature if available.

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/amd/amd_iommu_types.h
drivers/iommu/amd/init.c