RE: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-22 Thread Richard Zhu
oogle.com; gustavo.pimen...@synopsys.com > Subject: RE: [PATCH] PCI: dwc: Added link up check in map_bus of > dw_child_pcie_ops > > Hi Lorenzo and Richard, > > > -Original Message- > > From: Lorenzo Pieralisi > > Sent: 2020年10月20日 17:55 > > To: Z.q. Hou &g

RE: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-21 Thread Z.q. Hou
.com; > gustavo.pimen...@synopsys.com > Subject: Re: [PATCH] PCI: dwc: Added link up check in map_bus of > dw_child_pcie_ops > > On Tue, Oct 20, 2020 at 02:13:13AM +, Z.q. Hou wrote: > > [...] > > > > > For NXP Layerscape platforms (the ls1028a and ls2088a are also NXP

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-20 Thread Lorenzo Pieralisi
On Thu, Oct 15, 2020 at 05:47:38PM -0500, Bjorn Helgaas wrote: > On Wed, Sep 16, 2020 at 01:41:30PM +0800, Zhiqiang Hou wrote: > > From: Hou Zhiqiang > > > > On NXP Layerscape platforms, it results in SError in the > > enumeration of the PCIe controller, which is not connecting > > with an

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-20 Thread Lorenzo Pieralisi
On Tue, Oct 20, 2020 at 02:13:13AM +, Z.q. Hou wrote: [...] > > > For NXP Layerscape platforms (the ls1028a and ls2088a are also NXP > > Layerscape platform), as the error response to AXI/AHB was enabled, it will > > get UR error and trigger SError on AXI bus when it accesses a non-existent

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-20 Thread Lorenzo Pieralisi
On Fri, Sep 18, 2020 at 09:27:40AM -0600, Rob Herring wrote: [...] > > > Maybe a link down just never happens once up, but if so, then we only need > > > to check it once and fail probe. > > > > Many customers connect the FPGA Endpoint, which may establish PCIe link > > after the PCIe

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-20 Thread Lorenzo Pieralisi
On Tue, Oct 20, 2020 at 02:13:13AM +, Z.q. Hou wrote: [...] > > > For NXP Layerscape platforms (the ls1028a and ls2088a are also NXP > > Layerscape platform), as the error response to AXI/AHB was enabled, it will > > get UR error and trigger SError on AXI bus when it accesses a non-existent

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-20 Thread Kishon Vijay Abraham I
Hi Lorenzo, On 19/10/20 9:43 pm, Lorenzo Pieralisi wrote: > On Mon, Oct 12, 2020 at 04:41:11AM +, Z.q. Hou wrote: > > [...] > > Yeah, I don't see any registers in the DRA7x PCIe wrapper for > disabling error forwarding. It's a DWC port logic register AFAICT, but perhaps

RE: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-19 Thread Z.q. Hou
m; > gustavo.pimen...@synopsys.com > Subject: Re: [PATCH] PCI: dwc: Added link up check in map_bus of > dw_child_pcie_ops > > Hi Hou, > > On 19/10/20 10:54 am, Z.q. Hou wrote: > > Hello Bjorn, > > > > Thanks a lot for your comments! > > > >> -

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-19 Thread Lorenzo Pieralisi
On Thu, Oct 15, 2020 at 05:47:38PM -0500, Bjorn Helgaas wrote: > On Wed, Sep 16, 2020 at 01:41:30PM +0800, Zhiqiang Hou wrote: > > From: Hou Zhiqiang > > > > On NXP Layerscape platforms, it results in SError in the > > enumeration of the PCIe controller, which is not connecting > > with an

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-19 Thread Lorenzo Pieralisi
On Mon, Oct 12, 2020 at 04:41:11AM +, Z.q. Hou wrote: [...] > > >> Yeah, I don't see any registers in the DRA7x PCIe wrapper for > > >> disabling error forwarding. > > > > > > It's a DWC port logic register AFAICT, but perhaps not present in all > > versions. > > > > Okay. I see there's a

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-18 Thread Kishon Vijay Abraham I
el.org; >> r...@kernel.org; lorenzo.pieral...@arm.com; bhelg...@google.com; >> gustavo.pimen...@synopsys.com >> Subject: Re: [PATCH] PCI: dwc: Added link up check in map_bus of >> dw_child_pcie_ops >> >> On Wed, Sep 16, 2020 at 01:41:30PM +0800, Zhiqiang Hou

RE: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-18 Thread Z.q. Hou
m; > gustavo.pimen...@synopsys.com > Subject: Re: [PATCH] PCI: dwc: Added link up check in map_bus of > dw_child_pcie_ops > > On Wed, Sep 16, 2020 at 01:41:30PM +0800, Zhiqiang Hou wrote: > > From: Hou Zhiqiang > > > > On NXP Layerscape platforms, it results in SError i

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-16 Thread Lorenzo Pieralisi
On Thu, Oct 15, 2020 at 05:47:38PM -0500, Bjorn Helgaas wrote: > On Wed, Sep 16, 2020 at 01:41:30PM +0800, Zhiqiang Hou wrote: > > From: Hou Zhiqiang > > > > On NXP Layerscape platforms, it results in SError in the > > enumeration of the PCIe controller, which is not connecting > > with an

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-15 Thread Bjorn Helgaas
On Wed, Sep 16, 2020 at 01:41:30PM +0800, Zhiqiang Hou wrote: > From: Hou Zhiqiang > > On NXP Layerscape platforms, it results in SError in the > enumeration of the PCIe controller, which is not connecting > with an Endpoint device. And it doesn't make sense to > enumerate the Endpoints when the

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-14 Thread Rob Herring
On Wed, Oct 14, 2020 at 6:13 AM Lorenzo Pieralisi wrote: > > On Wed, Sep 16, 2020 at 01:41:30PM +0800, Zhiqiang Hou wrote: > > From: Hou Zhiqiang > > > > On NXP Layerscape platforms, it results in SError in the > > enumeration of the PCIe controller, which is not connecting > > with an Endpoint

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-14 Thread Lorenzo Pieralisi
On Wed, Sep 16, 2020 at 01:41:30PM +0800, Zhiqiang Hou wrote: > From: Hou Zhiqiang > > On NXP Layerscape platforms, it results in SError in the > enumeration of the PCIe controller, which is not connecting > with an Endpoint device. And it doesn't make sense to > enumerate the Endpoints when the

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-13 Thread Lorenzo Pieralisi
On Wed, Sep 16, 2020 at 01:41:30PM +0800, Zhiqiang Hou wrote: > From: Hou Zhiqiang > > On NXP Layerscape platforms, it results in SError in the > enumeration of the PCIe controller, which is not connecting > with an Endpoint device. And it doesn't make sense to > enumerate the Endpoints when the

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-12 Thread Kishon Vijay Abraham I
Hi Lorenzo, On 08/10/20 8:38 pm, Lorenzo Pieralisi wrote: > On Thu, Oct 01, 2020 at 07:02:04PM +0530, Kishon Vijay Abraham I wrote: > > [...] > Yeah, I don't see any registers in the DRA7x PCIe wrapper for disabling error forwarding. >>> >>> It's a DWC port logic register AFAICT, but

RE: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-11 Thread Z.q. Hou
;>>> > >>>>> Thanks a lot for your comments! > >>>>> > >>>>>> -Original Message- > >>>>>> From: Lorenzo Pieralisi > >>>>>> Sent: 2020年9月28日 17:39 > >>>>>> To: Z.q

RE: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-11 Thread Z.q. Hou
gt; > > > > -Original Message- > > > > From: Lorenzo Pieralisi > > > > Sent: 2020年9月28日 17:39 > > > > To: Z.q. Hou > > > > Cc: Rob Herring ; linux-kernel@vger.kernel.org; > > > > PCI ; Bjorn Helgaas > > &g

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-08 Thread Naresh Kamboju
On Thu, 8 Oct 2020 at 20:42, Rob Herring wrote: > > On Thu, Oct 8, 2020 at 9:47 AM Naresh Kamboju > wrote: > > > > On Fri, 2 Oct 2020 at 14:59, Naresh Kamboju > > wrote: > > > > > > On Thu, 1 Oct 2020 at 22:16, Michael Walle wrote: > > > > > > > > Am 2020-10-01 15:32, schrieb Kishon Vijay

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-08 Thread Rob Herring
On Thu, Oct 8, 2020 at 9:47 AM Naresh Kamboju wrote: > > On Fri, 2 Oct 2020 at 14:59, Naresh Kamboju wrote: > > > > On Thu, 1 Oct 2020 at 22:16, Michael Walle wrote: > > > > > > Am 2020-10-01 15:32, schrieb Kishon Vijay Abraham I: > > > > > > > Meanwhile would it be okay to add linkup check

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-08 Thread Lorenzo Pieralisi
On Thu, Oct 01, 2020 at 07:02:04PM +0530, Kishon Vijay Abraham I wrote: [...] > >> Yeah, I don't see any registers in the DRA7x PCIe wrapper for disabling > >> error forwarding. > > > > It's a DWC port logic register AFAICT, but perhaps not present in all > > versions. > > Okay. I see there's

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-08 Thread Naresh Kamboju
On Fri, 2 Oct 2020 at 14:59, Naresh Kamboju wrote: > > On Thu, 1 Oct 2020 at 22:16, Michael Walle wrote: > > > > Am 2020-10-01 15:32, schrieb Kishon Vijay Abraham I: > > > > > Meanwhile would it be okay to add linkup check atleast for DRA7X so > > > that > > > we could have it booting in

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-02 Thread Naresh Kamboju
On Thu, 1 Oct 2020 at 22:16, Michael Walle wrote: > > Am 2020-10-01 15:32, schrieb Kishon Vijay Abraham I: > > > Meanwhile would it be okay to add linkup check atleast for DRA7X so > > that > > we could have it booting in linux-next? > > Layerscape SoCs (at least the LS1028A) are also still

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-01 Thread Michael Walle
Am 2020-10-01 15:32, schrieb Kishon Vijay Abraham I: Meanwhile would it be okay to add linkup check atleast for DRA7X so that we could have it booting in linux-next? Layerscape SoCs (at least the LS1028A) are also still broken in linux-next, did I miss something here? -michael

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-01 Thread Kishon Vijay Abraham I
Lorenzo Pieralisi >>>>>> Sent: 2020年9月28日 17:39 >>>>>> To: Z.q. Hou >>>>>> Cc: Rob Herring ; linux-kernel@vger.kernel.org; PCI >>>>>> ; Bjorn Helgaas ; >>>>>> Gustavo Pimentel ; Michael Walle >>>>>&

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-30 Thread Rob Herring
;>>> Cc: Rob Herring ; linux-kernel@vger.kernel.org; PCI > >>>> ; Bjorn Helgaas ; > >>>> Gustavo Pimentel ; Michael Walle > >>>> ; Ard Biesheuvel > >>>> Subject: Re: [PATCH] PCI: dwc: Added link up check in map_bus of > >>

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-30 Thread Kishon Vijay Abraham I
;> -Original Message- >>>> From: Lorenzo Pieralisi >>>> Sent: 2020年9月28日 17:39 >>>> To: Z.q. Hou >>>> Cc: Rob Herring ; linux-kernel@vger.kernel.org; PCI >>>> ; Bjorn Helgaas ; >>>> Gustavo Pimentel ; Michael Wa

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-29 Thread Rob Herring
gt; > Sent: 2020年9月28日 17:39 > > > To: Z.q. Hou > > > Cc: Rob Herring ; linux-kernel@vger.kernel.org; PCI > > > ; Bjorn Helgaas ; > > > Gustavo Pimentel ; Michael Walle > > > ; Ard Biesheuvel > > > Subject: Re: [PATCH] PCI: dwc: Added link u

RE: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-29 Thread Gustavo Pimentel
org; PCI > > ; Bjorn Helgaas ; > > Gustavo Pimentel ; Michael Walle > > ; Ard Biesheuvel > > Subject: Re: [PATCH] PCI: dwc: Added link up check in map_bus of > > dw_child_pcie_ops > > > > On Thu, Sep 24, 2020 at 04:24:47AM +, Z.q. Hou wrote: > >

RE: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-28 Thread Z.q. Hou
; From: Rob Herring > > > Sent: 2020年9月18日 23:28 > > > To: Z.q. Hou > > > Cc: linux-kernel@vger.kernel.org; PCI ; > > > Lorenzo Pieralisi ; Bjorn Helgaas > > > ; Gustavo Pimentel > > > ; Michael Walle > ; > > > Ard Biesheuvel >

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-28 Thread Lorenzo Pieralisi
CI ; Lorenzo > > Pieralisi ; Bjorn Helgaas > > ; Gustavo Pimentel > > ; Michael Walle ; > > Ard Biesheuvel > > Subject: Re: [PATCH] PCI: dwc: Added link up check in map_bus of > > dw_child_pcie_ops > > > > On Fri, Sep 18, 2020 at 5:02 AM Z.q. Hou wrote: &

RE: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-23 Thread Z.q. Hou
> From: Rob Herring > > > Sent: 2020年9月17日 4:29 > > > To: Z.q. Hou > > > Cc: linux-kernel@vger.kernel.org; PCI ; > > > Lorenzo Pieralisi ; Bjorn Helgaas > > > ; Gustavo Pimentel > > > ; Michael Walle > ; > > > Ard Biesheuvel

RE: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-21 Thread Z.q. Hou
; Ard Biesheuvel > Subject: Re: [PATCH] PCI: dwc: Added link up check in map_bus of > dw_child_pcie_ops > > On Fri, Sep 18, 2020 at 11:02:07AM +, Z.q. Hou wrote: > > > But now the SError is exactly caused by the first access of the > > non-existent function

RE: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-21 Thread Z.q. Hou
t; Subject: Re: [PATCH] PCI: dwc: Added link up check in map_bus of > dw_child_pcie_ops > > Hi Zhiqiang, > > > So the alternative solution seems to correct the PCIe enumeration, I > > will submit a patch to let the first access only read the Vendor ID. > > Please put

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-18 Thread Rob Herring
o > > Pieralisi ; Bjorn Helgaas > > ; Gustavo Pimentel > > ; Michael Walle ; > > Ard Biesheuvel > > Subject: Re: [PATCH] PCI: dwc: Added link up check in map_bus of > > dw_child_pcie_ops > > > > On Tue, Sep 15, 2020 at 11:49 PM Zhiqiang Hou > > w

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-18 Thread Bjorn Helgaas
On Fri, Sep 18, 2020 at 11:02:07AM +, Z.q. Hou wrote: > But now the SError is exactly caused by the first access of the > non-existent function, I dug into the kernel enumeration code and > found it will fire a 4Byte CFG read transaction to read the Vendor > ID and Device ID together, so I

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-18 Thread Michael Walle
Hi Zhiqiang, So the alternative solution seems to correct the PCIe enumeration, I will submit a patch to let the first access only read the Vendor ID. Please put me on CC of that patch. Thanks, -michael

RE: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-18 Thread Z.q. Hou
> Subject: Re: [PATCH] PCI: dwc: Added link up check in map_bus of > dw_child_pcie_ops > > On Tue, Sep 15, 2020 at 11:49 PM Zhiqiang Hou > wrote: > > > > From: Hou Zhiqiang > > > > On NXP Layerscape platforms, it results in SError in the enumeration &g

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-16 Thread Rob Herring
On Tue, Sep 15, 2020 at 11:49 PM Zhiqiang Hou wrote: > > From: Hou Zhiqiang > > On NXP Layerscape platforms, it results in SError in the > enumeration of the PCIe controller, which is not connecting > with an Endpoint device. And it doesn't make sense to > enumerate the Endpoints when the PCIe