Skip to content

amd iommu smart tlb flushing

Joerg Roedel 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/7x86/amd-iommu: Add flush_info to protection domainsarch/x86/include/asm/amd_iommu_types.h arch/x86/kernel/amd_iommu.c+34 -02 replies
2/7x86/amd-iommu: Introduce iommu_update_domain_tlb functionarch/x86/kernel/amd_iommu.c+33 -180 replies
3/7x86/amd-iommu: Move dte udpate flag into flush_info structurearch/x86/include/asm/amd_iommu_types.h arch/x86/kernel/amd_iommu.c+12 -120 replies
4/7x86/amd-iommu: Move functions to get rid of forward declarationsarch/x86/kernel/amd_iommu.c+44 -460 replies
5/7x86/amd-iommu: Add function to commit domain changesarch/x86/kernel/amd_iommu.c+9 -60 replies
6/7x86/amd-iommu: Introduce iommu_update_dma_ops_domain()arch/x86/kernel/amd_iommu.c+21 -240 replies
7/7x86/amd-iommu: Reimplement iommu_flush_tlb_pde using iommu_update_domain_tlbarch/x86/kernel/amd_iommu.c+7 -440 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/7] amd iommu smart tlb flushing

Hi,

this patchset implements a smarter io-tlb flushing strategy for the AMD IOMMU driver. The old behavior was to flush only a single 4kb entry or the whole domain io-tlb. This patchset implements book keeping about the ranges of PTEs changed in the page table and flushes only that ranges when the flush is actually done.

Joerg

Joerg Roedel (7):
x86/amd-iommu: Add flush_info to protection domains x86/amd-iommu: Introduce iommu_update_domain_tlb function x86/amd-iommu: Move dte udpate flag into flush_info structure x86/amd-iommu: Move functions to get rid of forward declarations x86/amd-iommu: Add function to commit domain changes x86/amd-iommu: Introduce iommu_update_dma_ops_domain() x86/amd-iommu: Reimplement iommu_flush_tlb_pde using iommu_update_domain_tlb

 arch/x86/include/asm/amd_iommu_types.h |   13 ++-
 arch/x86/kernel/amd_iommu.c            |  225 ++++++++++++++++----------------
 2 files changed, 124 insertions(+), 114 deletions(-)