]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
amd/iommu: Preserve domain ids inside the kdump kernel
authorSairaj Kodilkar <sarunkod@amd.com>
Fri, 21 Nov 2025 09:11:15 +0000 (14:41 +0530)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 19 Dec 2025 10:23:48 +0000 (11:23 +0100)
commitc2e8dc1222c2136e714d5d972dce7e64924e4ed8
treebac8a4a843c2dab1a6e494b3fe20f5f6b02d628e
parent7a089c5d35aa307147e78c5cbeeb1352b92790b1
amd/iommu: Preserve domain ids inside the kdump kernel

Currently AMD IOMMU driver does not reserve domain ids programmed in the
DTE while reusing the device table inside kdump kernel. This can cause
reallocation of these domain ids for newer domains that are created by
the kdump kernel, which can lead to potential IO_PAGE_FAULTs

Hence reserve these ids inside pdom_ids.

Fixes: 38e5f33ee359 ("iommu/amd: Reuse device table for kdump")
Signed-off-by: Sairaj Kodilkar <sarunkod@amd.com>
Reported-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/amd/init.c