Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2029235imu; Fri, 23 Nov 2018 03:46:23 -0800 (PST) X-Google-Smtp-Source: AFSGD/UN2v5cs2am1YqatqHvUwLvGT5c8YwYeqP3SoqH49gXujVZ/uXEsL9lsZ9sSH+gqt6yp9Wb X-Received: by 2002:a63:6ecf:: with SMTP id j198mr13975469pgc.3.1542973583029; Fri, 23 Nov 2018 03:46:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542973583; cv=none; d=google.com; s=arc-20160816; b=SMVIFO1+VR9+9Si2Re8y4Cx1HQrARHxFZG68IK0wT/SNZp3fc/TvZkivFwl5qIWj3U S6ecyrGqEa6XaWsPYRtfRJuNECWi6nlQbUKFHma7XhZh+dAm0JS7Tx4/JlA4TgQMIh+E XeeZhtrMor0V4wJXT0GnLUjYmU8rpcduJspm6hLcOgEdYe4vzhKlFgBsa7sCfxYHauhW m45h/uBWltf3LhYFgjHtV7elhuaKiMZYSMsdmMT386M/CNwH7TM26C+6wiKSa5q991kO thaBlnEvjPSM6yIQvsd2oVimgyUVJbg9VXP/JnSSVkvzoGLldQReYMJSh6cKGR7QdKPS MbIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=koame+eXPUr/mJyKsmGdUd/rDotHOoNk18tkvmD9OE4=; b=lu9flTCgNvVyf78N0uoiSltmMW9cyhMsjnjHXk8nxpiw/FGpRu9kzgYAFQnPtetFYv XeXD4/SYDsjVIhqwNHLWUbxAmMCJMM7CkEahKMt2yiyXte+OrQWcUjwRpEvq4r+OIn3c 3/EQW2Ymq8pprZsvOLpqriS8hw/b2V7scvTG3Ws4rhywc5XNZnnsNE/0jSdMa2xj1T0p m71Bsn3LbFRqDAU7NmTPD6Q1tP0Cdv6koe5rqLC0UrUxtEvoMrKd8CzLThcLZwMdXq2F +cUAUQzM8l2UKRLcQmJd+XMhelTBY8/I9XysJqghy5/4+kLSjbwABWQXiY/MXZ9fAxR7 n+ig== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h91si17280229pld.411.2018.11.23.03.46.06; Fri, 23 Nov 2018 03:46:22 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394417AbeKVV1j (ORCPT + 99 others); Thu, 22 Nov 2018 16:27:39 -0500 Received: from mga09.intel.com ([134.134.136.24]:2144 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732079AbeKVV1i (ORCPT ); Thu, 22 Nov 2018 16:27:38 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Nov 2018 02:48:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,265,1539673200"; d="scan'208";a="87872248" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by fmsmga007.fm.intel.com with SMTP; 22 Nov 2018 02:48:41 -0800 Received: by lahna (sSMTP sendmail emulation); Thu, 22 Nov 2018 12:48:40 +0200 Date: Thu, 22 Nov 2018 12:48:40 +0200 From: Mika Westerberg To: Christoph Hellwig Cc: 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: <20181122104840.GO4179@lahna.fi.intel.com> References: <20181115102239.GU2500@lahna.fi.intel.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181116093210.GK4179@lahna.fi.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 16, 2018 at 11:32:10AM +0200, Mika Westerberg wrote: > On Fri, Nov 16, 2018 at 01:18:04AM -0800, Christoph Hellwig wrote: > > On Thu, Nov 15, 2018 at 09:10:26PM +0200, Mika Westerberg wrote: > > > FireWire is kind of different but there are connectors such as > > > ExpressCard and NVMe (over U.2 connector) which carry PCIe and are > > > relatively easy to access without need for a screwdriver. AFAIK some > > > eGPUs are also using some other proprietary (non-TBT) connector that > > > carries PCIe. > > > > U.2 is a data center internal form factor with hot plug capability. If > > you enable an iommu for that by default you will make a lot of people > > very unhappy. > > Well, it needs the other bit in ACPI DMAR table to be enabled by default > so I don't think anyone in data center domain will notice ;-) > > > More importantly NVMe is now used for the current/next generation > > Compact Flash and SD cards, which contain full PCIe gen 3 links. > > OK, thanks for the information - I did not know that. I guess those > belong to the "external" category as well. 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.