Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8439772imu; Thu, 15 Nov 2018 11:34:34 -0800 (PST) X-Google-Smtp-Source: AJdET5dOwcv9gbtHRomWdGL/2d1JlqxjEio/xXaT8UClkK9G5EyACkIaKMjLv1UaO880V/0SDh8+ X-Received: by 2002:a17:902:6185:: with SMTP id u5mr6530930plj.194.1542310474530; Thu, 15 Nov 2018 11:34:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542310474; cv=none; d=google.com; s=arc-20160816; b=DAfViRO7XpDQ9J7haD3MIE7iE/7Q6QjBV+VWQTCG8cwZZBYcJG35UBZJ10zBalg9lV tYmOUh5r+FxXIChOUd+K61zOs1ukGzuaKJ3ZF1PF6Yi+L9AEQFOt7SL2YApZkcNampmg yQ5+wofEjnDLFkb41YcUEQBmh0cPFHaT8ckAisueDAkUKTbnw0pun9Q+krCTDtK/rqLp H+MWmspc3SEn1HxH8KoNr6KaXxDtwgcKToInDw34JtKGLH4jXzWWq8DBswVSC5sJZpD7 fmb021ZnDJZxdBENQ60xzAeytzUSLtBkX7vl3IvwgsU82LnK92kVmsNMYGJ0RpoEWjrk Y+Uw== 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=tzHYZaIRQKETfqUpI36sS6gUYbl6Tm7iUUDonYUzf2Q=; b=D6LtKFc/vISTjQVTbj0k6+Dvk62jAH0uEqzEUggnFQ+KDARiSrEVWiD6evZUjqSZhL QRA2xhRy+Avr+8U5vOeyYHLuSKIAGDOt1Q99tkhBawcMhn/oJoyZXz0cemGw3jbXmNet xz1ozCDzc7QTALgVSF7lLD2rko4H2d/yBGRogix5/aJoeyp/rfU+1l9s02c+F5pYYufA mXHun3DLcAoF3jxdbDAt3ys0Fy06J7vcpUapYrthqdiwr63lHHKTAPyU3XAADWsSy4L/ PvxcMPWBcD/vOm+I0Rd1Dh4HP+Lw79PLTaPMjJh64axDXUXT+w5IOzISNoicc9UCmM// cZ0g== 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 i72-v6si23237112pfj.276.2018.11.15.11.34.19; Thu, 15 Nov 2018 11:34:34 -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 S1727701AbeKPFlO (ORCPT + 99 others); Fri, 16 Nov 2018 00:41:14 -0500 Received: from mga11.intel.com ([192.55.52.93]:5289 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725742AbeKPFlO (ORCPT ); Fri, 16 Nov 2018 00:41:14 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Nov 2018 11:32:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,237,1539673200"; d="scan'208";a="92381520" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by orsmga008.jf.intel.com with SMTP; 15 Nov 2018 11:32:01 -0800 Received: by lahna (sSMTP sendmail emulation); Thu, 15 Nov 2018 21:32:01 +0200 Date: Thu, 15 Nov 2018 21:32:01 +0200 From: Mika Westerberg To: Lukas Wunner Cc: Yehezkel Bernat , lorenzo.pieralisi@arm.com, iommu@lists.linux-foundation.org, joro@8bytes.org, David Woodhouse , baolu.lu@linux.intel.com, ashok.raj@intel.com, Bjorn Helgaas , rjw@rjwysocki.net, jacob.jun.pan@intel.com, Andreas Noever , michael.jamet@intel.com, Christian Kellner , Mario Limonciello , Anthony Wong , linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, LKML Subject: Re: [PATCH 1/4] PCI / ACPI: Identify external PCI devices Message-ID: <20181115193201.GF4179@lahna.fi.intel.com> References: <20181113114527.GA12821@e107981-ln.cambridge.arm.com> <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> <20181115192741.4ugt6usmsemokxle@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181115192741.4ugt6usmsemokxle@wunner.de> 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 Thu, Nov 15, 2018 at 08:27:41PM +0100, Lukas Wunner wrote: > On Thu, Nov 15, 2018 at 09:10:26PM +0200, Mika Westerberg wrote: > > I was thinking we could cover all these with is_external filling them > > based on the _DSD or some other means in the kernel. > > > > We would then deal all such devices as "untrusted" by default. > > Tinfoil hat on, even internal devices could be malicious. > What's the downside of enabling the feature for everything? Mostly performance, I think. That's the main reason we put all non external devices to passthrough IOMMU mode.