linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] iommu/amd: Support for HATdis and HATS features
@ 2025-04-23  6:50 Ankit Soni
  2025-04-23  6:50 ` [PATCH 1/2] iommu/amd: Add HATDis feature support Ankit Soni
  2025-04-23  6:50 ` [PATCH 2/2] iommu/amd: Add efr[HATS] max v1 page table level Ankit Soni
  0 siblings, 2 replies; 17+ messages in thread
From: Ankit Soni @ 2025-04-23  6:50 UTC (permalink / raw)
  To: iommu; +Cc: suravee.suthikulpanit, joro, will, robin.murphy, linux-kernel

This series comprises two features:

HATDis: When host address translation is not supported by the IOMMU,
the IVHD->attr[HATDis] bit is set. For instance, QEMU emulated vIOMMU
does not support dma tranlation for VFIO passthrough device.
Support has been added to check this bit and switch to guest page table 
mode, if supported. This feature is useful for cases where only interrupt
remapping is required.

EFR[HATS]: These bits indicate the maximum level supported for host page table
by the IOMMU. Modifications have been made to adjust the maximum host page table
level, starting with level 4. If these bits are set to 11b, the driver will
attempt to use the guest page table.

If guest page table mode is not supported, the driver will fail to probe
devices for DMA translations.
The interrupt remapping will continue to be supported.

Ankit Soni (2):
  iommu/amd: Add HATDis feature support
  iommu/amd: Add efr[HATS] max v1 page table level

 drivers/iommu/amd/amd_iommu.h       |  2 ++
 drivers/iommu/amd/amd_iommu_types.h |  7 +++++-
 drivers/iommu/amd/init.c            | 39 +++++++++++++++++++++++++++--
 drivers/iommu/amd/io_pgtable.c      |  4 +--
 drivers/iommu/amd/iommu.c           | 15 ++++++++++-
 5 files changed, 61 insertions(+), 6 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2025-05-30  4:32 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-23  6:50 [PATCH 0/2] iommu/amd: Support for HATdis and HATS features Ankit Soni
2025-04-23  6:50 ` [PATCH 1/2] iommu/amd: Add HATDis feature support Ankit Soni
2025-04-24 12:19   ` Joao Martins
2025-04-25 16:25     ` Ankit Soni
2025-04-30 11:41       ` Joao Martins
2025-05-06  5:12         ` Ankit Soni
2025-05-08 17:03           ` Joao Martins
2025-05-12  6:30             ` Ankit Soni
2025-05-28 12:19               ` Vasant Hegde
2025-05-30  4:32                 ` Ankit Soni
2025-04-30 11:52     ` Vasant Hegde
2025-04-30 11:35   ` Vasant Hegde
2025-05-05  6:30     ` Ankit Soni
2025-04-23  6:50 ` [PATCH 2/2] iommu/amd: Add efr[HATS] max v1 page table level Ankit Soni
2025-04-30 11:57   ` Vasant Hegde
2025-05-06 15:27     ` Jason Gunthorpe
2025-05-07  6:24       ` Vasant Hegde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).