Skip to content

iommu/amd: Always allow to map huge pages

Joerg Roedel kvm linux-iommu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7iommu/amd: Collect page-table pages in freelistdrivers/iommu/amd_iommu.c+83 -610 replies
2/7iommu/amd: Introduce free_sub_pt() functiondrivers/iommu/amd_iommu.c+13 -50 replies
3/7iommu/amd: Ignore page-mode 7 in free_sub_pt()drivers/iommu/amd_iommu.c drivers/iommu/amd_iommu_types.h+5 -00 replies
4/7iommu/amd: Allow downgrading page-sizes in alloc_pte()drivers/iommu/amd_iommu.c+9 -30 replies
5/7iommu/amd: Restart loop if cmpxchg64 succeeded in alloc_pte()drivers/iommu/amd_iommu.c+5 -60 replies
6/7iommu/amd: Allow to upgrade page-sizedrivers/iommu/amd_iommu.c+27 -20 replies
7/7vfio/type1: Remove map_try_harder() code pathdrivers/vfio/vfio_iommu_type1.c+2 -312 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchAlex Williamson
1/7
2/7
3/7
4/7
5/7
6/7
7/7A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] iommu/amd: Always allow to map huge pages

Hi,

the AMD IOMMU driver had an issue for a long time where it didn't allow to map a huge-page when smaller mappings existed at that address range before. The VFIO driver even had a workaround for that behavior.

These patches fix the issue and remove the workaround from the VFIO driver.

Please review.

Thanks,

Joerg

Joerg Roedel (7):
iommu/amd: Collect page-table pages in freelist iommu/amd: Introduce free_sub_pt() function iommu/amd: Ignore page-mode 7 in free_sub_pt() iommu/amd: Allow downgrading page-sizes in alloc_pte() iommu/amd: Restart loop if cmpxchg64 succeeded in alloc_pte() iommu/amd: Allow to upgrade page-size
vfio/type1: Remove map_try_harder() code path

 drivers/iommu/amd_iommu.c       | 204 +++++++++++++++++++++-----------
 drivers/iommu/amd_iommu_types.h |   1 +
 drivers/vfio/vfio_iommu_type1.c |  33 +-----
 3 files changed, 137 insertions(+), 101 deletions(-)
Signature · 1 line
2.17.1