Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2292277pxb; Wed, 9 Feb 2022 15:21:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJx6PUL7mnT4tIy9JmxEN7CKKdSMEaa3XSCbwi//xWUiZ8njm5x5clCmizXUVdmhtCsQVTsB X-Received: by 2002:a17:902:c946:: with SMTP id i6mr4873972pla.74.1644448864530; Wed, 09 Feb 2022 15:21:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644448864; cv=none; d=google.com; s=arc-20160816; b=YPrrwKk1TNNut6gaiE0K+oxCvCytlTNBwsTOitsr+XQbYnjBZu7V1Y8CQWl2win1em /dM99jrJ375EK8yOEtnp02++NN4FKzj9jM91Cl6UJF5jicFkBv+8QloobGJGGnG9cueZ U5C6of2g0UMHjzUA1wPAbJL7uPF+eOP9jZSv3bnoUfVidq8311LyUDOfuOrtfLqe3FdX iUsq181WHBTgAaVD2fjIybNl6yYZc4lYPySw5dxiyEbR+QvuqU/wfK+BHdzavvJqi7zc n9hjPZVTUlWioi6+kEo87qB8wrJ9Q3TldtgfcqHv+xpVdPitL8Ww3hS9byIQ7ObMEHOP 88CQ== 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; bh=dtrYQmSGaEERL4OvVpMDUjn1HaXRBwdthhUoDs8eLLE=; b=lSfeZF1pIe0CC3uU7dG5JF0vQTJ9NgZ2eanAAd1YvEzY+78/TH18DyUzfkcNU0z8Eo k/rBbMINQOO9+mS6V7DQy+yYo9cOKVrMXXTeN91Ne9u3v78aIUDbpQsmu89IsX6CWh1q NSlAFDdJrBehnW+/8t5iPAlOz7rXqsNF7d76CwxbG2+ZdMdqqTnbIRcgKrQvk9aNi2Ml uYE1VW62/E7L9nsPkQBpkgLVnW8fjhtBcQHoNQQituPvJRvnx6gQ7Gh7fSUdpM2uu0Gi TtffS5PZm+jPBzO+qqvNc06Oi6+1fvDAe/O0RiUD+aMFRnvHUGLCdUp6lW9qmOmKwp7h Z1yQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d70si17443363pgc.182.2022.02.09.15.20.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 15:21:04 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 24B7EE05A3CE; Wed, 9 Feb 2022 15:17:31 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234435AbiBIV5I (ORCPT + 99 others); Wed, 9 Feb 2022 16:57:08 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:55308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234318AbiBIV5E (ORCPT ); Wed, 9 Feb 2022 16:57:04 -0500 Received: from mail-oo1-f52.google.com (mail-oo1-f52.google.com [209.85.161.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13525E00E274; Wed, 9 Feb 2022 13:57:06 -0800 (PST) Received: by mail-oo1-f52.google.com with SMTP id o128-20020a4a4486000000b003181707ed40so4057261ooa.11; Wed, 09 Feb 2022 13:57:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=dtrYQmSGaEERL4OvVpMDUjn1HaXRBwdthhUoDs8eLLE=; b=FvYkeTBFJ9CQpKKJXc0Wjt4ijAe+d2cWyr8AkHNmK7ZgUYtvVoRLVMh1kiKSSg+DNG hraFNS2D3LYdbAsZRyR9i1l2TLYFb5BF1pZPE7rosaP88n6gAlP+7t9rWOwBfUvDhx2N ocs+pylOlzGc9rg0smvSn2wLtmNKPRdxTmtX97zxpNxkrxp2c76Wq/ioBhwiO5s02xnE crOBuFtqJ9BVrfAbfk7eHDatDQxgmXrH3vfiEQDvGbaV/speP8FXTko/G/m/0CZ5Lkgm 6wyfUhHcmvFmi5BeLxfuGrj1d9K53YQVIQUKXTw8nwXfA75Ct5QYyUxRvwlU92u4flPh YGeg== X-Gm-Message-State: AOAM530XwlgzXwZxdvndft3Uo4VdkKJOrmZFAEBU66ZlLc3qShCa6Qf4 UGDvpoQjham/4xLwKtWUkA== X-Received: by 2002:a05:6870:b78c:: with SMTP id ed12mr1460893oab.250.1644443825305; Wed, 09 Feb 2022 13:57:05 -0800 (PST) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id bp5sm627821oib.25.2022.02.09.13.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 13:57:04 -0800 (PST) Received: (nullmailer pid 997564 invoked by uid 1000); Wed, 09 Feb 2022 21:57:03 -0000 Date: Wed, 9 Feb 2022 15:57:03 -0600 From: Rob Herring To: Rajat Jain Cc: "Rafael J. Wysocki" , Len Brown , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, Mika Westerberg , Greg Kroah-Hartman , Bjorn Helgaas , Bjorn Helgaas , ACPI Devel Maling List , Linux Kernel Mailing List , Rajat Jain , Dmitry Torokhov , Jesse Barnes , Jean-Philippe Brucker , Pavel Machek , Oliver O'Halloran , Joerg Roedel Subject: Re: [PATCH v2 2/2] dt-bindings: Document "UntrustedDevice" property for PCI devices Message-ID: References: <20220202020103.2149130-1-rajatja@google.com> <20220202020103.2149130-2-rajatja@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220202020103.2149130-2-rajatja@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 01, 2022 at 06:01:03PM -0800, Rajat Jain wrote: > Add the new "UntrustedDevice" property for PCI devices. This property > is optional and can be applied to any PCI device. > > Signed-off-by: Rajat Jain > --- > v2: Initial version (added documentation based on comments) > v1: Does not exist. > > Documentation/devicetree/bindings/pci/pci.txt | 35 +++++++++++++++++++ > 1 file changed, 35 insertions(+) New properties have to be in a schema which resides here: https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/pci/pci-bus.yaml > > diff --git a/Documentation/devicetree/bindings/pci/pci.txt b/Documentation/devicetree/bindings/pci/pci.txt > index 6a8f2874a24d..bc1ba10f51e1 100644 > --- a/Documentation/devicetree/bindings/pci/pci.txt > +++ b/Documentation/devicetree/bindings/pci/pci.txt > @@ -82,3 +82,38 @@ pcie@10000000 { > external-facing; > }; > }; > + > +PCI Device Properties > +--------------------- > +Following optional properties may be present for any PCI device: > + > +- UntrustedDevice: > + When present, this property is an indicator that this PCI device (and > + any downstream devices) are to be treated as untrusted by the kernel. > + The kernel can, for example, use this information to isolate such > + devices using a strict DMA protection via the IOMMU. > + > + Example device tree node: > + pcie@0008 { > + /* PCI device 00:01.0 is an untrusted device */ > + reg = <0x00000800 0 0 0 0>; > + UntrustedDevice = <1>; > + }; > + > + Example ACPI node: Humm, your caret case smelled like ACPI to begin with. As far as ACPI bindings in Documentation/devicetree/bindings/ are concerned, NAK.