]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/amd: Do not try copy old DTE resume path
authorVasant Hegde <vasant.hegde@amd.com>
Wed, 16 Oct 2024 08:49:58 +0000 (08:49 +0000)
committerJoerg Roedel <jroedel@suse.de>
Tue, 29 Oct 2024 08:47:02 +0000 (09:47 +0100)
commit3f6eeada6930056c38f20964120ac402cf0030b9
tree4b4c7a4b88b4ee4bd5530b69b1773f49acb6c0a5
parent5ce73c524f5fb5abd7b1bfed0115474b4fb437b4
iommu/amd: Do not try copy old DTE resume path

In suspend/resume path, no need to copy old DTE (early_enable_iommus()).
Just need to reload IOMMU hardware.

This is the side effect of commit 3ac3e5ee5ed5 ("iommu/amd: Copy old
trans table from old kernel") which changed early_enable_iommus() but
missed to fix enable_iommus().

Resume path continue to work as 'amd_iommu_pre_enabled' is set to false
and copy_device_table() will fail. It will just re-loaded IOMMU. Hence I
think we don't need to backport this to stable tree.

Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/20241016084958.99727-1-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/init.c