[PATCH 0/4] iommu: Add device fault reporting API

From: Jean-Philippe Brucker
Date: Thu May 23 2019 - 14:09:58 EST


Allow device drivers and VFIO to get notifications on IOMMU translation
fault, and to handle recoverable faults (PCI PRI). These four patches
are relatively mature since they are required by three different series,
and have been under discussion for a while:

* Nested translation support for SMMUv3 [1].
* vSVA for VT-d [2].
* My generic host SVA implementation.

I reworked patch 4 according to previous discussions, and moved the page
response structure to UAPI. For the other patches I only fixed comments
and whitespaces. Please have a look and see if it works for you.

[1] [PATCH v7 00/23] SMMUv3 Nested Stage Setup
https://lore.kernel.org/lkml/20190408121911.24103-1-eric.auger@xxxxxxxxxx/
[2] [PATCH v3 00/16] Shared virtual address IOMMU and VT-d support
https://lore.kernel.org/lkml/1556922737-76313-1-git-send-email-jacob.jun.pan@xxxxxxxxxxxxxxx/

Jacob Pan (3):
driver core: Add per device iommu param
iommu: Introduce device fault data
iommu: Introduce device fault report API

Jean-Philippe Brucker (1):
iommu: Add recoverable fault reporting

drivers/iommu/iommu.c | 218 +++++++++++++++++++++++++++++++++++++
include/linux/device.h | 3 +
include/linux/iommu.h | 91 ++++++++++++++++
include/uapi/linux/iommu.h | 152 ++++++++++++++++++++++++++
4 files changed, 464 insertions(+)
create mode 100644 include/uapi/linux/iommu.h

--
2.21.0