Skip to content

Improved fault handling for AMD-IOMMU (AMD-Vi)

Joerg Roedel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8x86/amd-iommu: Dump fault entry on DTE errorarch/x86/kernel/amd_iommu.c+10 -00 replies
2/8x86/amd-iommu: Dump illegal command on ILLEGAL_COMMAND_ERRORarch/x86/kernel/amd_iommu.c+10 -00 replies
3/8x86/amd-iommu: Introduce function for iommu-local domain flusharch/x86/kernel/amd_iommu.c+33 -160 replies
4/8x86/amd-iommu: Add function to flush all DTEs on one IOMMUarch/x86/kernel/amd_iommu.c+13 -00 replies
5/8x86/amd-iommu: Add reset function for command buffersarch/x86/include/asm/amd_iommu_types.h arch/x86/kernel/amd_iommu_init.c+18 -50 replies
6/8x86/amd-iommu: Reset command buffer on ILLEGAL_COMMAND_ERRORarch/x86/kernel/amd_iommu.c+13 -20 replies
7/8x86/amd-iommu: Panic if IOMMU command buffer reset failsarch/x86/include/asm/amd_iommu_types.h arch/x86/kernel/amd_iommu.c+10 -00 replies
8/8x86/amd-iommu: Reset command buffer if wait loop failsarch/x86/kernel/amd_iommu.c+5 -20 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/8] Improved fault handling for AMD-IOMMU (AMD-Vi)

Hi,

this series of patches implements improved fault handling in the AMD-IOMMU (AMD-Vi) driver. The debug output is more verbose for some errors. With these patches the driver also tries to recover from IOMMU command handling errors instead of just do a panic.

Joerg

Diffstat:

 arch/x86/include/asm/amd_iommu_types.h |    6 ++
 arch/x86/kernel/amd_iommu.c            |  109 ++++++++++++++++++++++++++------
 arch/x86/kernel/amd_iommu_init.c       |   20 +++++--
 3 files changed, 111 insertions(+), 24 deletions(-)

Shortlog:

Joerg Roedel (8):
x86/amd-iommu: Dump fault entry on DTE error x86/amd-iommu: Dump illegal command on ILLEGAL_COMMAND_ERROR x86/amd-iommu: Introduce function for iommu-local domain flush x86/amd-iommu: Add function to flush all DTEs on one IOMMU x86/amd-iommu: Add reset function for command buffers x86/amd-iommu: Reset command buffer on ILLEGAL_COMMAND_ERROR x86/amd-iommu: Panic if IOMMU command buffer reset fails x86/amd-iommu: Reset command buffer if wait loop fails