Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2030952imu; Fri, 23 Nov 2018 03:48:02 -0800 (PST) X-Google-Smtp-Source: AJdET5chjPFlKjEveo+Z3rOvTzgZ+43Hse3rGA4kTWGiCTlUOW2kOu7wDistg5/wHgFrek+z2MXu X-Received: by 2002:a62:75d1:: with SMTP id q200mr15583954pfc.254.1542973682340; Fri, 23 Nov 2018 03:48:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542973682; cv=none; d=google.com; s=arc-20160816; b=v7bk+kM5JUmrBSdRYjkH3YdcH+5hWCEXwSJgRnvneTNqWSsSihE9jPkS/m2ES/riPM BOo/Dd+PPoCwQXu8eqnDx/BzPpyP6UBXRKy8lDSSw8e5jYFuaM1kxLhyy6HmODR+ryER wyiJqYy1VblQ8wU1Grz8F9tudSZb4gzY4nMbFUOPmjQYH8IYZcy6Dm8DPyQGrJAHpXE0 8vyVDZq/Ip1UZvzFEn/Pxrpd4FOX1Jyw33FosvckrGJQqN865pg0asf3gXWKthfQQfUf nbmRH2CSNzQyVgBGUVOyaB+vki3m7QDknEN7r4hSZWwFMCbXSjB13H3blZRIta6gvlgu +fIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZVnWTO+qw6F2MgkYBdFjeCSWw89UYShXKa+UuGP9SlE=; b=DNsXDPnpplLxKFOpL030K7kMI2mRz/RK88heyWeI2c4pIAi+exXEFnntKQDCE1SRf1 4EZV2SlBxeGR2hOORhUiue1S2F+4GqL3loaspddOpM2YJ4W5pNBIs//lmBjBkI/dlHOR dFsT6g6xWHpBqeZ1qEwNuFSFOq0i3byPwUeb6LOyAYwOD5qzm+QfRyldwrMpKoo0fUPl auBlQ9/S0r7VruB/RVBZub7E+C4LkIOZyWCmJdTNmHlDEei6OBYEq0qY5uo2RU715HKg gaZDIKJjGSU/qbQipVf2DF0bdMg6ac+G+5VHaNdiDY1QmseMmTK+3YlbXZGLPnfmf1gh hamg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JrwU76sa; 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 w67si38447426pgw.84.2018.11.23.03.47.42; Fri, 23 Nov 2018 03:48:02 -0800 (PST) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JrwU76sa; 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 S2405460AbeKVVio (ORCPT + 99 others); Thu, 22 Nov 2018 16:38:44 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:45246 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405240AbeKVVin (ORCPT ); Thu, 22 Nov 2018 16:38:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZVnWTO+qw6F2MgkYBdFjeCSWw89UYShXKa+UuGP9SlE=; b=JrwU76sa/wAvADJAG4y4+xH5Q bYpzcAEExfMlUPocQyzr+6nnRIPrH2INFIxtqywV/J8XXTTfDBUcMNqlL7EB+pDrxyhfh9LWhNUkA F8gW9olDZee2Wx6kQrINbNJVlGwd/VlUZdGG06rIgwfoOt52QsSE34KqFg+hRfbV0dk/jRZU7aH14 DlZUpkxUQoAGdTgcLqQ4ioNCwgdftLIPblULYm+CFHUX5N3LNdfiqmdJCJ9INsJKYad+qQPQAtaSL dZqA8O1UIdShi8LMGa3uumP3wLe0+yIKDt131sl0zUySgTtEvFwKVOXbjPscUczqt62IjiMyRDprd vFfh1if7Q==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPmhq-0003V5-BO; Thu, 22 Nov 2018 10:59:34 +0000 Date: Thu, 22 Nov 2018 02:59:34 -0800 From: Christoph Hellwig To: Mika Westerberg Cc: Christoph Hellwig , Yehezkel Bernat , ashok.raj@intel.com, Mario Limonciello , michael.jamet@intel.com, Christian Kellner , rjw@rjwysocki.net, Anthony Wong , LKML , Andreas Noever , iommu@lists.linux-foundation.org, lukas@wunner.de, jacob.jun.pan@intel.com, linux-pci@vger.kernel.org, Bjorn Helgaas , linux-acpi@vger.kernel.org, David Woodhouse Subject: Re: [PATCH 1/4] PCI / ACPI: Identify external PCI devices Message-ID: <20181122105934.GA13325@infradead.org> References: <20181115111356.GA599@e107981-ln.cambridge.arm.com> <20181115113737.GW2500@lahna.fi.intel.com> <20181115120736.pscly6zwd3k2tvd2@wunner.de> <20181115121627.GA2500@lahna.fi.intel.com> <20181115174608.GA17691@e107981-ln.cambridge.arm.com> <20181115191026.GE4179@lahna.fi.intel.com> <20181116091804.GA4548@infradead.org> <20181116093210.GK4179@lahna.fi.intel.com> <20181122104840.GO4179@lahna.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181122104840.GO4179@lahna.fi.intel.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 22, 2018 at 12:48:40PM +0200, Mika Westerberg wrote: > We had an internal discussion regarding this and it was suggested that > the new flag is called "is_untrusted" instead of "is_external". This > covers Thunderbolt devices currently but can be extend to any other PCIe > device such as "SD express" ones. When IOMMU is turned on it will then > make sure devices with "is_untrusted" set are always using full IOMMU > protection. > > Any comments, objections? I was going to send v2 with this change > included. Sounds good to me as long as it goes along with a nice fat comment explaining it.