From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755060AbdEHUdd (ORCPT ); Mon, 8 May 2017 16:33:33 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:46335 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753741AbdEHUdb (ORCPT ); Mon, 8 May 2017 16:33:31 -0400 Date: Mon, 8 May 2017 22:33:25 +0200 From: Peter Senna Tschudin To: Lorenzo Pieralisi Cc: Lucas Stach , Kishon Vijay Abraham I , Bjorn Helgaas , Jingoo Han , Richard Zhu , Murali Karicheri , Minghuan Lian , Mingkai Hu , Roy Zang , Thomas Petazzoni , Niklas Cassel , Jesper Nilsson , Joao Pinto , Zhou Wang , Gabriele Paoloni , Stanimir Varbanov , Pratyush Anand , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures Message-ID: <20170508203325.GB9791@collabora.com> References: <20170508150224.GA7458@collabora.com> <1494261248.2322.21.camel@pengutronix.de> <20170508175536.GA3305@red-moon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170508175536.GA3305@red-moon> User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 08, 2017 at 06:55:36PM +0100, Lorenzo Pieralisi wrote: > On Mon, May 08, 2017 at 06:34:08PM +0200, Lucas Stach wrote: > > Am Montag, den 08.05.2017, 17:02 +0200 schrieb Peter Senna Tschudin: > > > Hello Kishon, > > > > > > Our iMX6 hardware (imx6q-b850v3.dts) is not booting with latest > > > linux-next and I could bisect until: > > > > > > commit 442ec4c04d1235f8c664a74004dae54a7a574d18 > > > Author: Kishon Vijay Abraham I > > > Date: Wed Feb 15 18:48:14 2017 +0530 > > > > > > PCI: dwc: all: Split struct pcie_port into host-only and core structures > > > > > > Which seem to be causing our issues. Our device (imx6q-b850v3.dts) boots > > > fine with 4.10, and also boots if we disable pcie with: > > > > Are you sure about this bisect? It seems more likely that the secondary > > bus scanning goes wrong. It seems Lorenzo Pieralisi's cfg space > > non-posting patches landed in next, so the root cause of this might just > > be the driver hooking the wrong fault code now. > > > > Async and synchronous aborts are different fault codes on ARM. Can you > > see of removing the "16 +" in hook_fault_code() in > > drivers/pci/dwc/pci-imx6.c fixes this issue? > > You can also s/pci_remap_cfgspace/ioremap in pcie-designware-host.c > to see if my patches are the issue, it is quite a mechanical change. No change. Exactly same issue, but I noticed that devm_pci_remap_cfgspace() is called twice for the same device, can this be a problem? ... [ 0.505069] OF: PCI: host bridge /soc/pcie@1ffc000 ranges: [ 0.510586] OF: PCI: IO 0x01f80000..0x01f8ffff -> 0x00000000 [ 0.516474] OF: PCI: MEM 0x01000000..0x01efffff -> 0x01000000 [ 0.522420] imx6q-pcie 1ffc000.pcie: devm_pci_remap_cfgspace() [ 0.528656] imx6q-pcie 1ffc000.pcie: devm_pci_remap_cfgspace() ...