]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu/amd: Refactor persistent DTE bits programming into amd_iommu_make_clear_dte()
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Thu, 15 Jan 2026 06:08:12 +0000 (06:08 +0000)
committerJoerg Roedel <joerg.roedel@amd.com>
Sun, 18 Jan 2026 09:56:14 +0000 (10:56 +0100)
commit4e1b09d90bdfc79b2a024121a1f3b5e41c80de81
treef2f5a341cc9600f430f3830bc1a3559099efdb79
parent757d2b1fdf5b7d6eead5963a49b5780617987ab8
iommu/amd: Refactor persistent DTE bits programming into amd_iommu_make_clear_dte()

To help avoid duplicate logic when programing DTE for nested translation.

Note that this commit changes behavior of when the IOMMU driver is
switching domain during attach and the blocking domain, where DTE bit
fields for interrupt pass-through (i.e. Lint0, Lint1, NMI, INIT, ExtInt)
and System management message could be affected. These DTE bits are
specified in the IVRS table for specific devices, and should be persistent.

Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
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.h
drivers/iommu/amd/iommu.c