Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4530339pxb; Tue, 25 Jan 2022 12:23:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJwv9P9yKXWPFuhHLJjshCC8FVxbGizR6oRkYvCqe2kOmJLI7k7I0PWbtlfcCXtbmn2Zv93C X-Received: by 2002:a17:902:7617:b0:149:9c02:f260 with SMTP id k23-20020a170902761700b001499c02f260mr20195175pll.30.1643142227067; Tue, 25 Jan 2022 12:23:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643142227; cv=none; d=google.com; s=arc-20160816; b=QR3OLxttWDthh2z4snp8mwstUWwpSi0EPEXpzLHp4vvpApQ0p1r3OesDUFD61X9Zso GH3riMLmlx7s2uqq02jiME/49J6W+HL0aAEJQO+tjZrhMcP2b2diUPAaKH2dbGncxrqp R6xiqbptw9/MOgc4dinChYAtgSsKeRaxz2yXCFFAuVuH0fs7WAvf/gHNT9YesnG9v1rG dUO9DlH1KSw0+vieUB/+NR1K9lsA7gebOm/hkGMMbCsbIC1803F8xm0UBPeQKQRmwHbp NA9Li/tJzg3U/gRjkrK7HZFmlr4zd2ALvoNi4/9/QMeYi0LC8II7bCwZREp60G2oPtAS kg/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=qmXgH7zvCKX7VHBhpaIeJiGEHk4KUYcP0Ex/yLKpPRw=; b=Pq96CWgpD3ew9CBO9eGwILtOF1DXFe5vSuB7P9lg3ip44z/xU6Jcwg7iz7KMe+N8LW TPcdN7BCOCJQffEFmBp0MJ9rdhiIAEQZnddOyS3lGs8nMm+EtFpWXlYbd+FeAoHLfVEP SBDKadc6AXO/rjn1tJWeGjUGGWlUWZarE6exB/t9o3DMhs7NvOtrNKeq6nVqh9v7w/S0 NyOLE51thHlUacICxdqoxHvlqPwtQnVE/u/hKA6wYfEPWIm8068AKHLQpyACqzuA4l6r q5OzVVelKrASn/FtHJtw1hKv2zgJsOPxXfPFxINxtd5M2vT11Iq3LFilZ6WhfOyv60jW SkDw== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p14si20148352plf.211.2022.01.25.12.23.34; Tue, 25 Jan 2022 12:23:47 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1580110AbiAYOpB (ORCPT + 99 others); Tue, 25 Jan 2022 09:45:01 -0500 Received: from mail-yb1-f179.google.com ([209.85.219.179]:38844 "EHLO mail-yb1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1389262AbiAYOkT (ORCPT ); Tue, 25 Jan 2022 09:40:19 -0500 Received: by mail-yb1-f179.google.com with SMTP id i62so15962560ybg.5; Tue, 25 Jan 2022 06:40:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qmXgH7zvCKX7VHBhpaIeJiGEHk4KUYcP0Ex/yLKpPRw=; b=6H9+F/nMrttzgBGtZU3fM2qnAlAR7KVAXR+P0s5h/nqDNTjZafFa8k+A0docFREHBo v+UNaAppgBLuEzJ0Zw3kM/P0nZeSfWx0xBGdL3jdNaZrrsSrFaHl52JrsuaqlnpG+wUO qkilZta4eSlvWl9Wcq6CgxGHHwLNwLY7CGAEPrzOCt090tH99Dn056Ql86bc8qlyhPju Pn9lyTcNtzuSDspgA8UungONARLYR4T9cXyYwNjAx9g53ohnVf/CZSV3B5XW49rPtWGj orfn9tAy5VYJk8GOADDbb9/DiuF8actN2z/1vwsIYPDmeLmP9fPgWFQNX9mkL8WtLcrf ZWAQ== X-Gm-Message-State: AOAM5312sBf6MilPQnB3HJ81awEeW9Q7/18jy/PC+qbX2SA6xO4ApbB7 qObpEtJ7QHLPLM4bZMCjThF8FQH3gvTWEGgbbloc49nu X-Received: by 2002:a5b:5c7:: with SMTP id w7mr30536273ybp.343.1643121613569; Tue, 25 Jan 2022 06:40:13 -0800 (PST) MIME-Version: 1.0 References: <20220120000409.2706549-1-rajatja@google.com> <20220121214117.GA1154852@bhelgaas> In-Reply-To: From: "Rafael J. Wysocki" Date: Tue, 25 Jan 2022 15:40:01 +0100 Message-ID: Subject: Re: [PATCH] PCI: ACPI: Allow internal devices to be marked as untrusted To: Mika Westerberg Cc: Bjorn Helgaas , Rajat Jain , "Rafael J. Wysocki" , Len Brown , Bjorn Helgaas , ACPI Devel Maling List , Linux PCI , Linux Kernel Mailing List , Rajat Jain , Dmitry Torokhov , Jesse Barnes , Greg Kroah-Hartman , Jean-Philippe Brucker , Pavel Machek , "Oliver O'Halloran" , Joerg Roedel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 25, 2022 at 11:59 AM Mika Westerberg wrote: > > 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. Agreed. This is what the platform firmware will need to use anyway for Windows compatibility and OEMs may not care about running Linux on their platforms.