From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de ([212.227.17.13]:52752 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753574AbbE1Mbk (ORCPT ); Thu, 28 May 2015 08:31:40 -0400 From: Arnd Bergmann To: Zhou Wang Cc: linux-arm-kernel@lists.infradead.org, zhudacai@hisilicon.com, devicetree@vger.kernel.org, 'Zhang Jukuo' , 'Gabriele Paoloni' , Jingoo Han , 'Pratyush Anand' , 'Richard Zhu' , 'Zhichang Yuan' , 'Kishon Vijay Abraham I' , qiuzhenfa@hisilicon.com, linux-pci@vger.kernel.org, 'Bjorn Helgaas' , 'Liviu Dudau' , Fabrice Gasnier , 'Liguozhu' , 'Lucas Stach' Subject: Re: [RFC PATCH v1 1/3] PCI: designware: Add ARM64 support Date: Thu, 28 May 2015 14:30:57 +0200 Message-ID: <4282256.8pP4M6Uy35@wuerfel> In-Reply-To: <5566FD5C.4050708@hisilicon.com> References: <000001d096a9$27bf43f0$773dcbd0$@com> <2095085.CuXXeGT0Wg@wuerfel> <5566FD5C.4050708@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: linux-pci-owner@vger.kernel.org List-ID: On Thursday 28 May 2015 19:34:52 Zhou Wang wrote: > > @@ -462,9 +453,6 @@ static void pcibios_init_hw(struct device *parent, struct hw_pci *hw, > > if (!sys) > > panic("PCI: unable to allocate sys data!"); > > > > -#ifdef CONFIG_PCI_MSI > > - sys->msi_ctrl = hw->msi_ctrl; > > -#endif > > sys->busnr = busnr; > > sys->swizzle = hw->swizzle; > > sys->map_irq = hw->map_irq; > > @@ -493,6 +481,9 @@ static void pcibios_init_hw(struct device *parent, struct hw_pci *hw, > > panic("PCI: unable to scan bus!"); > > > > busnr = sys->bus->busn_res.end + 1; > > +#ifdef CONFIG_PCI_MSI > > + bus->msi = hw->msi_ctrl; > > +#endif > > > > list_add(&sys->node, head); > > } else { > > > > Hi Arnd, > > I think it does not work in above way(with adaptation as Fabrice mentioned). > As the msi controller is passed to secondary bus one by one during the process of enumeration. > Here we just set msi controller for root bus. Ah, too bad. I guess you are right, the bus->msi pointer here would really need to be set between pci_create_root_bus() and pci_scan_child_bus(), but we currently don't run any ARM specific code between the two. Arnd