From patchwork Mon Mar 18 18:21:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Philippe Brucker X-Patchwork-Id: 10858377 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9EE5815AC for ; Mon, 18 Mar 2019 18:24:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 872BA288D9 for ; Mon, 18 Mar 2019 18:24:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79C982949A; Mon, 18 Mar 2019 18:24:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0538828CC9 for ; Mon, 18 Mar 2019 18:24:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726788AbfCRSYn (ORCPT ); Mon, 18 Mar 2019 14:24:43 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:39482 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726765AbfCRSYn (ORCPT ); Mon, 18 Mar 2019 14:24:43 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8E1A2EBD; Mon, 18 Mar 2019 11:24:42 -0700 (PDT) Received: from ostrya.cambridge.arm.com (ostrya.cambridge.arm.com [10.1.196.129]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id DAAAB3F614; Mon, 18 Mar 2019 11:24:40 -0700 (PDT) From: Jean-Philippe Brucker To: bhelgaas@google.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Grant.Likely@arm.com, Jeremy.Linton@arm.com, Robin.Murphy@arm.com Subject: [PATCH 0/2] PCI: Describe external-facing ports in device tree Date: Mon, 18 Mar 2019 18:21:22 +0000 Message-Id: <20190318182124.53859-1-jean-philippe.brucker@arm.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add an "external-facing" property to PCI ports in device-tree, to help identify untrusted devices. The notion of untrusted PCI devices was added to the v5.0 kernel to describe devices that should have strict IOMMU protection [1], for example devices that are plugged in a thunderbolt port. ACPI systems use the ExternalFacingPort property [2]. Add an equivalent mechanism to device tree. [1] https://lkml.org/lkml/2018/11/26/631 [2] https://docs.microsoft.com/en-us/windows-hardware/drivers/pci/dsd-for-pcie-root-ports#identifying-externally-exposed-pcie-root-ports Jean-Philippe Brucker (2): dt-bindings: Add external-facing PCIe port property PCI: OF: Support external-facing property Documentation/devicetree/bindings/pci/pci.txt | 47 +++++++++++++++++++ drivers/pci/of.c | 3 ++ 2 files changed, 50 insertions(+)