Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5889864ybi; Wed, 12 Jun 2019 10:10:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxr9o7vhSWQXVGG0ldYi6RF5W9yjA6XjjTwbJ1lkMPP8ZnAZZGDPL/e1dzy0uboweIA766N X-Received: by 2002:a63:d70b:: with SMTP id d11mr26099993pgg.178.1560359425108; Wed, 12 Jun 2019 10:10:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560359425; cv=none; d=google.com; s=arc-20160816; b=MggWl04t5yyhN2bZ6R0/iSaACuJ1BXwYxA6rYumqj3Tko5vi/0cozJ8LUs3XlZ5Lse DMFcMKVYgxcHexJwNNtcg9W+jECpUu3OYSq+X2u+AI+xU/3q+IyfmwGSBv0YR+AkyXbE t9XBMRlTdnhBMhid96eZAiI/YbLUN8KJ7Lxnb1LHpNtPcQ1wq9ok1Z+KohrhmQ884hx4 3eq7f2miHejfmol+4svjIUWkDexB6C507DHKDMNhl3BLi5bpnchWKfRpgm0NfskSYPK0 Y5fCZD3SISxwWqO3xm9NwHJv2Bh0QCbrfmYsKWCZ4QM3QY8F7f+7X9wG+tC8bUF2slTU HiPg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=C1DFFnLrYDSrshLM6o9gdJW5Yz5ZuCvU+wv2w9fpjKg=; b=UbD1Xg27DTBfjRPsTndbooWiZCif0tP3D82fNWZbhPmYBwCBuG2f4GLKbfbcKFZVUN X4RJlFNb3JIjOpbVWIx0bZwTVU5cYzCxjoTcriJcoSDADfHOekdBQWNLStolHnBs1mVl FWQqTKXtCzp7q4Lvd7Xyy4fQ1feSWBjninwLVqRtNNk3nXT1Ng0DZBbxVXCBSxpRQ5bl i7K5yf/deJplyEPpIPAdNNRUvT5oQPLz0K/S6v2L4sFa+fmKKE+QV5SjHRh1fkXfd3SX cpNXvhZzFaau4vlh09Vdhtv3CUmzDf8j8PTgccWQ6zIZzgitRcQuNd6kR8HafWhEOYVC sZmQ== 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 z185si300578pfb.109.2019.06.12.10.10.09; Wed, 12 Jun 2019 10:10:25 -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 S2391876AbfFLLzU (ORCPT + 99 others); Wed, 12 Jun 2019 07:55:20 -0400 Received: from foss.arm.com ([217.140.110.172]:51684 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387878AbfFLLzU (ORCPT ); Wed, 12 Jun 2019 07:55:20 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4E6C128; Wed, 12 Jun 2019 04:55:19 -0700 (PDT) Received: from [10.1.196.129] (ostrya.cambridge.arm.com [10.1.196.129]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E30603F246; Wed, 12 Jun 2019 04:57:00 -0700 (PDT) Subject: Re: [PATCH v2 0/4] iommu: Add device fault reporting API To: Joerg Roedel Cc: "alex.williamson@redhat.com" , "jacob.jun.pan@linux.intel.com" , "eric.auger@redhat.com" , "ashok.raj@intel.com" , "yi.l.liu@intel.com" , "robdclark@gmail.com" , "linux-kernel@vger.kernel.org" , "iommu@lists.linux-foundation.org" , Robin Murphy References: <20190603145749.46347-1-jean-philippe.brucker@arm.com> <20190612081944.GB17505@8bytes.org> From: Jean-Philippe Brucker Message-ID: <0f21e1b2-837f-87ba-6cf3-f6490d9e2a57@arm.com> Date: Wed, 12 Jun 2019 12:54:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190612081944.GB17505@8bytes.org> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/06/2019 09:19, Joerg Roedel wrote: > On Mon, Jun 03, 2019 at 03:57:45PM +0100, Jean-Philippe Brucker wrote: >> 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 | 236 ++++++++++++++++++++++++++++++++++++- >> include/linux/device.h | 3 + >> include/linux/iommu.h | 87 ++++++++++++++ >> include/uapi/linux/iommu.h | 153 ++++++++++++++++++++++++ >> 4 files changed, 476 insertions(+), 3 deletions(-) >> create mode 100644 include/uapi/linux/iommu.h > > Applied, thanks. Thanks! As discussed I think we need to add padding into the iommu_fault structure before this reaches mainline, to make the UAPI easier to extend in the future. It's already possible to extend but requires introducing a new ABI version number and support two structures. Adding some padding would only require introducing new flags. If there is no objection I'll send a one-line patch bumping the structure size to 64 bytes (currently 48) Thanks, Jean