Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4266431pxb; Tue, 25 Jan 2022 07:01:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwgx7wmE1dOUYK2u+D9qSYjEcZOLg8t9ITR6brSJLBwVcT86ftiEZKGWkcIwEU/Un8NCys X-Received: by 2002:a50:cb8b:: with SMTP id k11mr10407004edi.183.1643122917525; Tue, 25 Jan 2022 07:01:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643122917; cv=none; d=google.com; s=arc-20160816; b=wPfKDb77r0AX3QRL0NPqWG8whCDaN7fJOzakR+bhqqhnzLLp728AbS/xHtx2Hp+8+/ uauv6pEl8oF8TdJgYSYt39kxMqml8k5RRQBzryjrXjC0OMIrPHs8prAmpyRrPb1aKbt0 e1Z9jZ7AgWkMATf4j/Gop4JA+fiziaCWzyd4sKctkwm4MwB6FJz8zoWf4Qjzd0bgJHaC XURBX5JzgZaNTSD1V8TBuALmeReZ4znNTkVZYqhcNUIpnNEC5B1/N3x01Qe49x0hheKH 1jfPEYUWQbJ7UW/C9gA4RUf/EKb7GHqoszLqhuCnJBjfjmh9Dniv4Vug/q8GuecxpLen fSog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=0PBLonPzkVXQ3msu6TN5GFgikQykpCdR7dh8lKlff4U=; b=lnJZXcY2N0iFbJkr2G2BpYW/PRbPKdKdFfg3Rudx70fuqpVuq9St7ctpvtLYWYaGlk YJK6pDBAnBlxa23hRZgb7Hs4fS9gVd+CCzcmwGhCj80caJz/60h3674d6Nx4xp6doSmy oqs57mKRsrOOcluQ6LdHpSRsOcRnRktezCpVp7va1+5Yj8Edhun+nFuDCBcENpYmCQmM 3CTtCMyDW45Zs4rBfkNCIVNEUzcbzi0NgCoZxFBhOEh2i3AMaoHz12K+ktj1qvg4VWB9 oiV6v6uaW5q2BpnHlxXrBg4f7FH4QzqWVeppbmGhE5qASFBNokczPcNRvcakBHW7TQkX YBlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CkFQR20l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 1si3326580ejb.217.2022.01.25.07.01.28; Tue, 25 Jan 2022 07:01:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CkFQR20l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380111AbiAYLBU (ORCPT + 99 others); Tue, 25 Jan 2022 06:01:20 -0500 Received: from mga17.intel.com ([192.55.52.151]:30554 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379968AbiAYK7D (ORCPT ); Tue, 25 Jan 2022 05:59:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643108343; x=1674644343; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=SYDGkXed9Zpe3q3nrJrWXDYeh3RYZIJ5yQozPlmXdts=; b=CkFQR20liFfzU4JzRkZyKtkEhEUsxhe2zgIayeii8uQaa7/5IuIYYHw/ JTTud31uXukQQrLThCWfPAeI/nJAJXcuLNR0MfhKmbeBk9emoaVc4byGw uBuog6/VgMax43fJjzWlFtaBwcdjSiuGEKHgLDQlkkG4fhalIpfGZq8Hh rZUktTwC79zI+ej7GegxYFsP7Frp+S+RNwspMJfc/oXeB/8XnilXEW73n Ta9AWkOlmJgNJwRi/0O7NvnUVZQEtpDHC84O79BOkbe3F9gWpbLTulyjo exttbBIIJ+/HOzWqV2B50UfhGKeo7F8/2xY7SEFp2RhNr/rJVt5MbT6dc A==; X-IronPort-AV: E=McAfee;i="6200,9189,10237"; a="226947058" X-IronPort-AV: E=Sophos;i="5.88,314,1635231600"; d="scan'208";a="226947058" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2022 02:59:00 -0800 X-IronPort-AV: E=Sophos;i="5.88,314,1635231600"; d="scan'208";a="562997636" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.162]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2022 02:58:55 -0800 Received: by lahna (sSMTP sendmail emulation); Tue, 25 Jan 2022 12:58:52 +0200 Date: Tue, 25 Jan 2022 12:58:52 +0200 From: Mika Westerberg To: Bjorn Helgaas Cc: Rajat Jain , "Rafael J. Wysocki" , Len Brown , Bjorn Helgaas , linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, rajatxjain@gmail.com, dtor@google.com, jsbarnes@google.com, Greg Kroah-Hartman , Jean-Philippe Brucker , Pavel Machek , Oliver O'Halloran , Joerg Roedel Subject: Re: [PATCH] PCI: ACPI: Allow internal devices to be marked as untrusted Message-ID: References: <20220120000409.2706549-1-rajatja@google.com> <20220121214117.GA1154852@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 24, 2022 at 08:27:17AM +0200, Mika Westerberg wrote: > > > This patch introduces a new "UntrustedDevice" property that can be used > > > by the firmware to mark any device as untrusted. > > I think this new property should be documented somewhere too (also > explain when to use it instead of ExternalFacingPort). If not in the > next ACPI spec or some supplemental doc then perhaps in the DT bindings > under Documentation/devicetree/bindings. Actually Microsoft has similar already: https://docs.microsoft.com/en-us/windows-hardware/drivers/pci/dsd-for-pcie-root-ports#identifying-internal-pcie-ports-accessible-to-users-and-requiring-dma-protection I think we should use that too here.