[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YgQ4r34842L6puV+@robh.at.kernel.org>
Date: Wed, 9 Feb 2022 15:57:03 -0600
From: Rob Herring <robh@...nel.org>
To: Rajat Jain <rajatja@...gle.com>
Cc: "Rafael J. Wysocki" <rafael@...nel.org>,
Len Brown <lenb@...nel.org>, linux-pci@...r.kernel.org,
devicetree@...r.kernel.org,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Bjorn Helgaas <helgaas@...nel.org>,
Bjorn Helgaas <bhelgaas@...gle.com>,
ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Rajat Jain <rajatxjain@...il.com>,
Dmitry Torokhov <dtor@...gle.com>,
Jesse Barnes <jsbarnes@...gle.com>,
Jean-Philippe Brucker <jean-philippe@...aro.org>,
Pavel Machek <pavel@...x.de>,
Oliver O'Halloran <oohall@...il.com>,
Joerg Roedel <joro@...tes.org>
Subject: Re: [PATCH v2 2/2] dt-bindings: Document "UntrustedDevice" property
for PCI devices
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 <rajatja@...gle.com>
> ---
> 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@...00000 {
> 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@...8 {
> + /* 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.
Powered by blists - more mailing lists