Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp2086949ybm; Thu, 23 May 2019 11:09:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzopuQX87eF0j8S9qXXdd73q0P+f7uvTfD4lylVe7EDZH4anaK9Qo5TqlUSP+HWMwBj2Z9x X-Received: by 2002:a17:902:2ae6:: with SMTP id j93mr77552287plb.130.1558634983290; Thu, 23 May 2019 11:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558634983; cv=none; d=google.com; s=arc-20160816; b=yvnFTv17zRAw02u01RM1ZMOakTgQg8NYl5pZOHN9U6z1+SyldPoaOfqWkIJhNrc23V SbTvhW5mf0LzeFSolxIgrClHehLwLm+x/bwcMPN2WqSCITW76OwyM7aOqhRtuRRHgsuU zaMu6bCyNTFOxzYpL/mL590nGH4DymNbZb031EBmmC9tf7msAKbwekhI/JCtLV2laX9U bTSSpFkBy1flPE10/ASFv/xNlx5gI96PdyZBEH86Dpx2y5c5CupXtiV6TRKw0TqYHJXp t3X8JYBCJ5QLcxn732NKqGgpca4wskfiON0phzQwtpxMcizKTlO/rkqGwp9gcLZf0Wvn eTAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=/4ndirSFoClv7KnoO/qNvES7wW6BMiWTlkKl724pvT8=; b=Q8uXsIcOfV4HroGAKArBrEnVDdm2ueTM99krFqm5AZm2vMaCZR9T5yiaaeMJgqqz3I OaMG/GbVmWwFaL6C1DvkQADZMDMesEqrCySutcP8oGQlZ66v0Zjkyxm4tMvZ3BDIswcS ymRj/up4tMjNbjM+eDms33ggnsi78En536ioGmYvm6NcsLfBw284JEOp0fzOegpJhqTh lrjgACjypS3SGZm6wIWyKz09UnWrquBDEQiv5J4/3Qp8JiQYAeMynO6ksCGJ94btfjhq 4W75PLIE/NjrsaRc7uKdHwrwInHu7cRe1p83VNo6ya6uGV+3cvya2q+mpcLQPJ1qN79D 2T9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9si272114plm.47.2019.05.23.11.09.28; Thu, 23 May 2019 11:09:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731438AbfEWSHE (ORCPT + 99 others); Thu, 23 May 2019 14:07:04 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:52070 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731093AbfEWSHE (ORCPT ); Thu, 23 May 2019 14:07:04 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B8924374; Thu, 23 May 2019 11:07:03 -0700 (PDT) Received: from ostrya.cambridge.arm.com (ostrya.cambridge.arm.com [10.1.196.129]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1AC1A3F5AF; Thu, 23 May 2019 11:07:01 -0700 (PDT) From: Jean-Philippe Brucker To: joro@8bytes.org, alex.williamson@redhat.com Cc: jacob.jun.pan@linux.intel.com, eric.auger@redhat.com, ashok.raj@intel.com, yi.l.liu@linux.intel.com, robdclark@gmail.com, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org Subject: [PATCH 0/4] iommu: Add device fault reporting API Date: Thu, 23 May 2019 19:06:09 +0100 Message-Id: <20190523180613.55049-1-jean-philippe.brucker@arm.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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@redhat.com/ [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@linux.intel.com/ 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