From patchwork Thu Apr 11 12:40:25 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: 10895875 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 825451515 for ; Thu, 11 Apr 2019 12:41:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6247328D15 for ; Thu, 11 Apr 2019 12:41:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6011928D28; Thu, 11 Apr 2019 12:41:45 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EA55528CD7 for ; Thu, 11 Apr 2019 12:41:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=U/wKnjdAUzjGZf0ox9Vd2bqr+IQjjXpR5gItUPg6XKs=; b=miPCZdPYlapfgg izW76k9Gds2i9oOElSV2QD+E9xFv9nbzUOO/Js3zOwf8CO0/MYIMJA3fNHSPgncGkSlwiyo+gYDbN R7AZtxOpkJrbuMi1ugc8GiHe9yawuOa0bN5eoa/sE69kDgvr/Af9fAG0cuqdGZaRocVuNlEBDeyAo QRHZgA7qnQUgjyvanjwBD18AuzoV6qs7rD90mOGTXzEbwhn5hSX4PDNdyKNuj126i9qRbazEF/nXK l37umZsAhJr9umxa6UPDPS+6BZr8r+BzMwaMmGMxysImu23v7T/byz+cBPqdJMN7Sr3OODfg8MclP OtR03OqiYisO763EXufQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEZ1N-0000nv-TC; Thu, 11 Apr 2019 12:41:37 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEZ1L-0000mH-8k for linux-arm-kernel@lists.infradead.org; Thu, 11 Apr 2019 12:41:37 +0000 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 5A44D374; Thu, 11 Apr 2019 05:41:32 -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 C4EAB3F557; Thu, 11 Apr 2019 05:41:30 -0700 (PDT) From: Jean-Philippe Brucker To: bhelgaas@google.com Subject: [PATCH v3 0/2] PCI: Describe external-facing ports in device tree Date: Thu, 11 Apr 2019 13:40:25 +0100 Message-Id: <20190411124027.9490-1-jean-philippe.brucker@arm.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190411_054135_310035_98C4FC4E X-CRM114-Status: UNSURE ( 7.77 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark.Rutland@arm.com, devicetree@vger.kernel.org, Grant.Likely@arm.com, linux-pci@vger.kernel.org, robh+dt@kernel.org, Robin.Murphy@arm.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Since v2 [1] I fixed a possible NULL dereference reported by smatch, sorry about that. I dropped all tags for patch 2. 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 [2], for example devices that are plugged in a Thunderbolt port. ACPI systems use the ExternalFacingPort property [3]. Add an equivalent mechanism to device tree. [1] https://lore.kernel.org/linux-pci/20190402131548.41949-1-jean-philippe.brucker@arm.com/ [2] https://lkml.org/lkml/2018/11/26/631 [3] 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 | 50 +++++++++++++++++++ drivers/pci/of.c | 14 ++++-- 2 files changed, 60 insertions(+), 4 deletions(-)