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: 1083999 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44g0yQ38Mqz9s7h for ; Thu, 11 Apr 2019 22:41:34 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726564AbfDKMld (ORCPT ); Thu, 11 Apr 2019 08:41:33 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:41976 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726264AbfDKMlc (ORCPT ); Thu, 11 Apr 2019 08:41:32 -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 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 Cc: Robin.Murphy@arm.com, robh+dt@kernel.org, Mark.Rutland@arm.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Grant.Likely@arm.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 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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(-)