Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4272187pxb; Tue, 25 Jan 2022 07:07:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrIcod0uCxy6LvarbooT/U3KluxjZR35DUCDvmBCfw/wQgxzl7dmt558T3G13EdmwleHn/ X-Received: by 2002:a17:907:e8b:: with SMTP id ho11mr8485710ejc.686.1643123227110; Tue, 25 Jan 2022 07:07:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643123227; cv=none; d=google.com; s=arc-20160816; b=xDahW/YLin0XmekhzEEADK21xwoc9q79sz8E2vQwVtqeV+icf2mBLjk+bfK0weZNrM szMjNijcrz1xyrbQ9NSO03/f5DytDG99rbSn8QZ+DHquoJscPHopr8qoVflI552SA6Ua jQlFznYcROmpuNMG7qx1tiREs46qLzbssK/qASYitXBpTHIZCn8EV/uWKUVlNJ31wxYi opAL7YwMj3MAgvEvG1mNwL55G8z8q/z9HD7WdLecSjxTk8ukJDnlaYrI80+Sr/Pt+nwQ UURpcEwlCobc9LNlMkIxgGS/Z54w6IjjHSPmrhEiz1kR6J5WXORQgb7LOjhP/SDftjnv 7WRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DaEJqE1Mnem91yesx5xRKtAXcNJWunN0UWYjd9MZsT8=; b=FKxEmEsjU96RyOlNWM6M6UVDTC/+qbOhygKkS+rhI4Yck4ahZH2Fyk2qlxqJhM0bVp 9knaE7iLgQNx/pqb0CSFPQqFXWavUA5FpI505JgPClbZTXXYBJLR3JgCixPS+yVO0OV5 S/U195qxdFVvvBBT+yXc4yo3RzWtiz/yS13iYc697HSZIfPAQ7ryf6x397nnY5vHrUrw b3XbIZ+vS/yO4ogLlwedi8M1tN9vpBMYHHud8IWd64weBxm2OrwnyAQq7McDXk2O76hU mn50GiN8vLQDUnP51809mx+rkQUleXQvN8t8h594X8Dt3uFkQx78C/Xy6ISR0LDePzx9 ZxOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=n5ZJASWZ; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cs12si10325882ejc.339.2022.01.25.07.06.40; Tue, 25 Jan 2022 07:07:07 -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=@linuxfoundation.org header.s=korg header.b=n5ZJASWZ; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381487AbiAYLTD (ORCPT + 99 others); Tue, 25 Jan 2022 06:19:03 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:59802 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354601AbiAYLQK (ORCPT ); Tue, 25 Jan 2022 06:16:10 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2CB0C61675; Tue, 25 Jan 2022 11:15:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1410AC340E0; Tue, 25 Jan 2022 11:15:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643109304; bh=jiWy23PF8gjrQaHK3eXhaNjTOKYRVwwmMnm35rIo+0A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n5ZJASWZdjsDgI5Yj4x6P4PF3mQyrPW5hfOpwJj0EUvkkHU7PFA7HaYhNMVo0X5kL 7Xho5IbY3Lx1FIvE3PVsDbYUhyUh/LyyaZ3lOxZsj00LHO0Jrg09vMder2WgMLXxpr cLfp4O2NryuU+nwRIwVvU7aMQ6EDGOHijPh1OCdE= Date: Tue, 25 Jan 2022 12:15:02 +0100 From: Greg Kroah-Hartman To: Mika Westerberg Cc: Bjorn Helgaas , 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, 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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 25, 2022 at 12:58:52PM +0200, 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. But we do not have "dma protection" for Linux, so how will that value make sense? And shouldn't this be an ACPI standard? thanks, greg k-h