Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762141AbaGRTuV (ORCPT ); Fri, 18 Jul 2014 15:50:21 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:61807 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757246AbaGRTuU (ORCPT ); Fri, 18 Jul 2014 15:50:20 -0400 From: Arnd Bergmann To: Rob Herring Cc: Murali Karicheri , "linux-arm-kernel@lists.infradead.org" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Russell King , Grant Likely , Rob Herring , Mohit Kumar , Jingoo Han , Bjorn Helgaas , Pratyush Anand , Richard Zhu , Kishon Vijay Abraham I , Marek Vasut , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Randy Dunlap Subject: Re: [PATCH v6 4/5] PCI: add PCI controller for keystone PCIe h/w Date: Fri, 18 Jul 2014 21:50:08 +0200 Message-ID: <5467203.eMVRoNeSx1@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.11.0-18-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <1405696469-7172-1-git-send-email-m-karicheri2@ti.com> <1405696469-7172-5-git-send-email-m-karicheri2@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V02:K0:s1cPDv0OzrouZKC9/zCIVEkAwd192HebqWpaO/ZXw40 9i4VdQT9cqxptZtv25fdsShqi1UFk6Qas2DwdbN1pxofL7bZ1W P90M50//sIqDgO5HzrjgScKAV/kkweQO7DoJ2NwFfguF5MiKD/ P6sIzuidwQRHeT3H8jJXVlyjdyIrcTdfMlLZmIOz1g8cpYIFpV b7PBvBl5eqlpnRnN/krmeLCsudXz7kA2+ZOxl+7jqDfU4iLQBd JUlIB0oxOzz0FPfMzmO57UcOXG7nVR0OwtI1h7HEJB/RtBVd/I QL2wmXg9PM1dqAJeJTxZegSaDxiaxolp3HyYXGNwDg8cWR58jN 8oN+9DtYmIzHFsViX/3U= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 18 July 2014 14:31:39 Rob Herring wrote: > > + > > + Example: > > + pcie_msi_intc: msi-interrupt-controller { > > + interrupt-controller; > > + #interrupt-cells = <1>; > > + interrupt-parent = <&gic>; > > + interrupts = , > > + , > > + , > > + , > > + , > > + , > > + , > > + ; > > + }; > > + > > +pcie_intc: Interrupt controller device node for Legacy irq chip > > + interrupt-cells: should be set to 1 > > + interrupt-parent: Parent interrupt controller phandle > > + interrupts: GIC interrupt lines connected to PCI Legacy interrupt lines > > + > > + Example: > > + pcie_intc: legacy-interrupt-controller { > > + interrupt-controller; > > + #interrupt-cells = <1>; > > + interrupt-parent = <&gic>; > > + interrupts = , > > + , > > + , > > + ; > > + }; > > This seems wrong. Legacy interrupts should be described with > interrupt-map and then PCI child devices have a standard interrupt > specifier. > > I'm not sure about MSIs, but I would think they would have a standard > format too. > IIRC, it's actually the correct way to do this here: the problem is that the PCI IRQs are not directly connected to the GIC, but instead there is a nested irqchip that has each PCI IRQ routed to it and that requires an extra EOI for each interrupt. The interrupt-map in the PCI host points to this special irqchip rather than to the GIC. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/