From patchwork Tue Apr 2 13:15:46 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: 10881689 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 AE55F1669 for ; Tue, 2 Apr 2019 13:21:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9630B287C8 for ; Tue, 2 Apr 2019 13:21:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 89F8D288D3; Tue, 2 Apr 2019 13:21:26 +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 43783287C8 for ; Tue, 2 Apr 2019 13:21:26 +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=08cwTI4OzjMX2f5M4s2/GZneAbedQePFVW4nWCdiXg4=; b=EpF81sGd5/lusY CW+azDFVYqVobmdVqadCJmvmLSp0CpBRk2gTs/X7B2qvDpAsIcsFZlowCJpoixKg/7m3QQnFsFVeX xJDtpmZ+z8yQBkv4dEixwVQLs92HK/7YKskdkpvAtSrbQUaPr1q3+bXyqqFGfp/VDfGxndehnqb3V cYdE0ZlD0mX1K8E/ne6gZ76g12OvccDuqpjlTZIvq1+QwSut2FGEeU13sUoKJV7TfdhPdIsbIVoaU ICoEaAF9Q2q/T17tkO4u5gOzoXfsguVLNe2T/Pw9P/NGRW8Z5wTwZ/C13qWS6qNcu0cpYD8c25Pb+ fkDxbV17ssh3JgDS0mBQ==; 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 1hBJLq-0000ac-TY; Tue, 02 Apr 2019 13:21:18 +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 1hBJLo-0000Y9-4i for linux-arm-kernel@lists.infradead.org; Tue, 02 Apr 2019 13:21:17 +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 1499716A3; Tue, 2 Apr 2019 06:21:13 -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 619603F690; Tue, 2 Apr 2019 06:21:11 -0700 (PDT) From: Jean-Philippe Brucker To: bhelgaas@google.com, robh+dt@kernel.org, mark.rutland@arm.com Subject: [PATCH v2 0/2] PCI: Describe external-facing ports in device tree Date: Tue, 2 Apr 2019 14:15:46 +0100 Message-Id: <20190402131548.41949-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-20190402_062116_190219_A0239398 X-CRM114-Status: UNSURE ( 7.28 ) 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: devicetree@vger.kernel.org, linux-pci@vger.kernel.org, Jeremy.Linton@arm.com, Grant.Likely@arm.com, 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 v1 [1], I improved the wording of patch 1/2 as suggested by Bjorn. 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/20190318182124.53859-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 | 3 ++ 2 files changed, 53 insertions(+) Reviewed-by: Grant Likely