All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] iommu/amd: Fix IOMMUv2 devices when SME is active
@ 2020-08-24 10:54 ` Joerg Roedel
  0 siblings, 0 replies; 37+ messages in thread
From: Joerg Roedel @ 2020-08-24 10:54 UTC (permalink / raw)
  To: iommu; +Cc: Tom Lendacky, jroedel, linux-kernel, Alexander.Deucher

From: Joerg Roedel <jroedel@suse.de>

Hi,

Some IOMMUv2 capable devices do not work correctly when SME is
active, because their DMA mask does not include the encryption bit, so
that they can not DMA to encrypted memory directly.

The IOMMU can jump in here, but the AMD IOMMU driver puts IOMMUv2
capable devices into an identity mapped domain. Fix that by not
forcing an identity mapped domain on devices when SME is active and
forbid using their IOMMUv2 functionality.

Please review.

Thanks,

	Joerg

Joerg Roedel (2):
  iommu/amd: Do not force direct mapping when SME is active
  iommu/amd: Do not use IOMMUv2 functionality when SME is active

 drivers/iommu/amd/iommu.c    | 7 ++++++-
 drivers/iommu/amd/iommu_v2.c | 7 +++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

-- 
2.28.0

_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2020-09-08  3:38 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-24 10:54 [PATCH 0/2] iommu/amd: Fix IOMMUv2 devices when SME is active Joerg Roedel
2020-08-24 10:54 ` Joerg Roedel
2020-08-24 10:54 ` [PATCH 1/2] iommu/amd: Do not force direct mapping " Joerg Roedel
2020-08-24 10:54   ` Joerg Roedel
2020-08-26 14:23   ` Deucher, Alexander
2020-08-26 14:23     ` Deucher, Alexander
2020-08-24 10:54 ` [PATCH 2/2] iommu/amd: Do not use IOMMUv2 functionality " Joerg Roedel
2020-08-24 10:54   ` Joerg Roedel
2020-08-26 14:20   ` Deucher, Alexander
2020-08-26 14:20     ` Deucher, Alexander
2020-08-26 14:14 ` [PATCH 0/2] iommu/amd: Fix IOMMUv2 devices " Deucher, Alexander
2020-08-26 15:22   ` Felix Kuehling
2020-08-26 15:22     ` Felix Kuehling
2020-08-26 15:25     ` Deucher, Alexander
2020-08-26 15:25       ` Deucher, Alexander
2020-08-28 13:46       ` jroedel
2020-08-28 13:46         ` jroedel
2020-08-28 13:54         ` Felix Kuehling
2020-08-28 13:54           ` Felix Kuehling
2020-08-28 15:11           ` Deucher, Alexander
2020-08-28 15:11             ` Deucher, Alexander
2020-08-28 15:29             ` jroedel
2020-08-28 15:29               ` jroedel
2020-08-28 15:47               ` Deucher, Alexander
2020-08-28 15:47                 ` Deucher, Alexander
2020-09-04 10:05                 ` Joerg Roedel
2020-09-04 10:05                   ` Joerg Roedel
2020-09-06 16:08                   ` Deucher, Alexander
2020-09-06 16:08                     ` Deucher, Alexander
2020-09-07 10:44                     ` Joerg Roedel
2020-09-07 10:44                       ` Joerg Roedel
2020-09-07 11:10                       ` Christian König
2020-09-07 11:10                         ` Christian König
2020-09-08  3:38                     ` Felix Kuehling
2020-09-08  3:38                       ` Felix Kuehling
2020-08-28 15:27           ` jroedel
2020-08-28 15:27             ` jroedel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.