Skip to content

Page table handling updates for AMD-IOMMU (AMD-Vi)

Joerg Roedel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14x86/amd-iommu: Make fetch_pte aware of dynamic mapping levelsarch/x86/include/asm/amd_iommu_types.h arch/x86/kernel/amd_iommu.c+22 -110 replies
2/14x86/amd-iommu: Use fetch_pte in iommu_unmap_pagearch/x86/kernel/amd_iommu.c+3 -160 replies
3/14x86/amd-iommu: Use fetch_pte in amd_iommu_iova_to_physarch/x86/kernel/amd_iommu.c+2 -140 replies
4/14x86/amd-iommu: Add a gneric version of amd_iommu_flush_all_devicesarch/x86/kernel/amd_iommu.c+8 -20 replies
5/14x86/amd-iommu: Introduce set_dte_entry functionarch/x86/kernel/amd_iommu.c+17 -100 replies
6/14x86/amd-iommu: Flush domains if address space size was increasedarch/x86/include/asm/amd_iommu_types.h arch/x86/kernel/amd_iommu.c+33 -00 replies
7/14x86/amd-iommu: Introduce increase_address_space functionarch/x86/include/asm/amd_iommu_types.h arch/x86/kernel/amd_iommu.c+31 -00 replies
8/14x86/amd-iommu: Change alloc_pte to support 64 bit address spacearch/x86/kernel/amd_iommu.c+20 -240 replies
9/14x86/amd-iommu: Remove last usages of IOMMU_PTE_L0_INDEXarch/x86/kernel/amd_iommu.c+2 -20 replies
10/14x86/amd-iommu: Remove bus_addr check in iommu_map_pagearch/x86/kernel/amd_iommu.c+1 -20 replies
11/14x86/amd-iommu: Use 2-level page tables for dma_ops domainsarch/x86/kernel/amd_iommu.c+1 -10 replies
12/14x86/amd-iommu: Remove old page table handling macrosarch/x86/include/asm/amd_iommu_types.h+0 -190 replies
13/14x86/amd-iommu: Support higher level PTEs in iommu_page_unmaparch/x86/include/asm/amd_iommu_types.h arch/x86/kernel/amd_iommu.c+14 -80 replies
14/14x86/amd-iommu: Change iommu_map_page to support multiple page sizesarch/x86/include/asm/amd_iommu_types.h arch/x86/kernel/amd_iommu.c+26 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/14] Page table handling updates for AMD-IOMMU (AMD-Vi)

Hi,

this series of patches enhance the page table handling code for AMD-IOMMU (AMD-Vi). With these patches the page table handling code is able to map a full 64 bit device address space. The old limit was a 39 bit address space.
This series also contains initial patches for upcoming large page support in the AMD-Vi driver. Full large page support requires changes to the IOMMU-API which are not part of this patch set.

Joerg

Diffstat:

 arch/x86/include/asm/amd_iommu_types.h |   38 +++---
 arch/x86/kernel/amd_iommu.c            |  242 ++++++++++++++++++++------------
 2 files changed, 170 insertions(+), 110 deletions(-)

Shortlog:

Joerg Roedel (14):
x86/amd-iommu: Make fetch_pte aware of dynamic mapping levels x86/amd-iommu: Use fetch_pte in iommu_unmap_page x86/amd-iommu: Use fetch_pte in amd_iommu_iova_to_phys x86/amd-iommu: Add a gneric version of amd_iommu_flush_all_devices x86/amd-iommu: Introduce set_dte_entry function x86/amd-iommu: Flush domains if address space size was increased x86/amd-iommu: Introduce increase_address_space function x86/amd-iommu: Change alloc_pte to support 64 bit address space x86/amd-iommu: Remove last usages of IOMMU_PTE_L0_INDEX x86/amd-iommu: Remove bus_addr check in iommu_map_page x86/amd-iommu: Use 2-level page tables for dma_ops domains x86/amd-iommu: Remove old page table handling macros x86/amd-iommu: Support higher level PTEs in iommu_page_unmap x86/amd-iommu: Change iommu_map_page to support multiple page sizes