* Re: IMX6/7 failed to boot due to PCIE changes
[not found] <AM6PR04MB4966D56E082A88CD4AC3DEFC803E0@AM6PR04MB4966.eurprd04.prod.outlook.com>
@ 2020-09-19 18:57 ` Jingoo Han
2020-09-21 3:00 ` Aisheng Dong
0 siblings, 1 reply; 4+ messages in thread
From: Jingoo Han @ 2020-09-19 18:57 UTC (permalink / raw)
To: Aisheng Dong, Rob Herring, Lorenzo Pieralisi
Cc: gustavo.pimentel, dl-linux-imx, kernel, Han Jingoo, shawnguo,
linux-arm-kernel
On 9/17/20, 6:53 AM, Aisheng Dong wrote:
> Hi Rob,
>
> We found many MX6/7 boards board failed to boot with latest linux-next kernel recently.
> By doing bisect, the issue seems to be related with below two PCIE changes.
> c2b0c098fbd1 PCI: dwc: Use generic config accessors
> 7975c8cc8ed8 PCI: dwc: Remove dwc specific config accessor ops
Dear Dong,
Recently, Rob shared the following patch. Would you apply and test it? I think that it will fix your issue.
diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c
b/drivers/pci/controller/dwc/pcie-designware-host.c
index 317ff512f8df..afee1a0e8883 100644
--- a/drivers/pci/controller/dwc/pcie-designware-host.c
+++ b/drivers/pci/controller/dwc/pcie-designware-host.c
@@ -441,6 +441,9 @@ static void __iomem
*dw_pcie_other_conf_map_bus(struct pci_bus *bus,
struct pcie_port *pp = bus->sysdata;
struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
+ if (!dw_pcie_link_up(pci))
+ return NULL;
+
busdev = PCIE_ATU_BUS(bus->number) | PCIE_ATU_DEV(PCI_SLOT(devfn)) |
PCIE_ATU_FUNC(PCI_FUNC(devfn));
[.....]
Thank you.
Best regards,
Jingoo Han
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: IMX6/7 failed to boot due to PCIE changes
2020-09-19 18:57 ` IMX6/7 failed to boot due to PCIE changes Jingoo Han
@ 2020-09-21 3:00 ` Aisheng Dong
2020-09-21 3:00 ` Aisheng Dong
0 siblings, 1 reply; 4+ messages in thread
From: Aisheng Dong @ 2020-09-21 3:00 UTC (permalink / raw)
To: Jingoo Han, Rob Herring, Lorenzo Pieralisi
Cc: linux-arm-kernel, gustavo.pimentel, shawnguo, dl-linux-imx, kernel
> From: Jingoo Han <jingoohan1@gmail.com>
> Sent: Sunday, September 20, 2020 2:58 AM
> On 9/17/20, 6:53 AM, Aisheng Dong wrote:
> > Hi Rob,
> >
> > We found many MX6/7 boards board failed to boot with latest linux-next
> kernel recently.
> > By doing bisect, the issue seems to be related with below two PCIE changes.
> > c2b0c098fbd1 PCI: dwc: Use generic config accessors
> > 7975c8cc8ed8 PCI: dwc: Remove dwc specific config accessor ops
>
> Dear Dong,
>
> Recently, Rob shared the following patch. Would you apply and test it? I think
> that it will fix your issue.
Yes, it works.
May I know where is Rob's patch?
I'd like to provide a test-by.
Regards
Aisheng
>
> diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c
> b/drivers/pci/controller/dwc/pcie-designware-host.c
> index 317ff512f8df..afee1a0e8883 100644
> --- a/drivers/pci/controller/dwc/pcie-designware-host.c
> +++ b/drivers/pci/controller/dwc/pcie-designware-host.c
> @@ -441,6 +441,9 @@ static void __iomem
> *dw_pcie_other_conf_map_bus(struct pci_bus *bus,
> struct pcie_port *pp = bus->sysdata;
> struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
>
> + if (!dw_pcie_link_up(pci))
> + return NULL;
> +
> busdev = PCIE_ATU_BUS(bus->number) |
> PCIE_ATU_DEV(PCI_SLOT(devfn)) |
> PCIE_ATU_FUNC(PCI_FUNC(devfn));
>
> [.....]
>
> Thank you.
>
> Best regards,
> Jingoo Han
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: IMX6/7 failed to boot due to PCIE changes
2020-09-21 3:00 ` Aisheng Dong
@ 2020-09-21 3:00 ` Aisheng Dong
2020-09-22 3:48 ` Jingoo Han
0 siblings, 1 reply; 4+ messages in thread
From: Aisheng Dong @ 2020-09-21 3:00 UTC (permalink / raw)
To: Jingoo Han, Rob Herring, Lorenzo Pieralisi
Cc: Richard Zhu, gustavo.pimentel, dl-linux-imx, kernel, shawnguo,
linux-arm-kernel
+ Richard.
> From: Aisheng Dong
> Sent: Monday, September 21, 2020 11:00 AM
>
> > From: Jingoo Han <jingoohan1@gmail.com>
> > Sent: Sunday, September 20, 2020 2:58 AM On 9/17/20, 6:53 AM, Aisheng
> > Dong wrote:
> > > Hi Rob,
> > >
> > > We found many MX6/7 boards board failed to boot with latest
> > > linux-next
> > kernel recently.
> > > By doing bisect, the issue seems to be related with below two PCIE changes.
> > > c2b0c098fbd1 PCI: dwc: Use generic config accessors
> > > 7975c8cc8ed8 PCI: dwc: Remove dwc specific config accessor ops
> >
> > Dear Dong,
> >
> > Recently, Rob shared the following patch. Would you apply and test it?
> > I think that it will fix your issue.
>
> Yes, it works.
> May I know where is Rob's patch?
> I'd like to provide a test-by.
>
> Regards
> Aisheng
>
> >
> > diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c
> > b/drivers/pci/controller/dwc/pcie-designware-host.c
> > index 317ff512f8df..afee1a0e8883 100644
> > --- a/drivers/pci/controller/dwc/pcie-designware-host.c
> > +++ b/drivers/pci/controller/dwc/pcie-designware-host.c
> > @@ -441,6 +441,9 @@ static void __iomem
> > *dw_pcie_other_conf_map_bus(struct pci_bus *bus,
> > struct pcie_port *pp = bus->sysdata;
> > struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
> >
> > + if (!dw_pcie_link_up(pci))
> > + return NULL;
> > +
> > busdev = PCIE_ATU_BUS(bus->number) |
> > PCIE_ATU_DEV(PCI_SLOT(devfn)) |
> > PCIE_ATU_FUNC(PCI_FUNC(devfn));
> >
> > [.....]
> >
> > Thank you.
> >
> > Best regards,
> > Jingoo Han
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: IMX6/7 failed to boot due to PCIE changes
2020-09-21 3:00 ` Aisheng Dong
@ 2020-09-22 3:48 ` Jingoo Han
0 siblings, 0 replies; 4+ messages in thread
From: Jingoo Han @ 2020-09-22 3:48 UTC (permalink / raw)
To: Aisheng Dong, Rob Herring, Lorenzo Pieralisi
Cc: Richard Zhu, gustavo.pimentel, dl-linux-imx, kernel, Han Jingoo,
shawnguo, linux-arm-kernel
On 9/20/20, 11:01 PM, Aisheng Dong wrote:
>
> + Richard.
>
> > From: Aisheng Dong
> > Sent: Monday, September 21, 2020 11:00 AM
> >
> > > From: Jingoo Han <jingoohan1@gmail.com>
> > > Sent: Sunday, September 20, 2020 2:58 AM On 9/17/20, 6:53 AM, Aisheng
> > > Dong wrote:
> > > > Hi Rob,
> > > >
> > > > We found many MX6/7 boards board failed to boot with latest
> > > > linux-next
> > > kernel recently.
> > > > By doing bisect, the issue seems to be related with below two PCIE changes.
> > > > c2b0c098fbd1 PCI: dwc: Use generic config accessors
> > > > 7975c8cc8ed8 PCI: dwc: Remove dwc specific config accessor ops
> > >
> > > Dear Dong,
> > >
> > > Recently, Rob shared the following patch. Would you apply and test it?
> > > I think that it will fix your issue.
> >
> > Yes, it works.
> > May I know where is Rob's patch?
> > I'd like to provide a test-by.
You can follow the following thread.
[PATCH v2 00/40] PCI: dwc: Driver clean-ups
But, Rob just sent a code snippet, not a form of a formal patch.
@Rob
If you send the patch later, please CC Aisheng Dong (aisheng.dong@nxp.com).
He will provide 'tested-by'.
Thank you.
Best regards,
Jingoo Han
> >
> > Regards
> > Aisheng
> >
> > >
> > > diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c
> > > b/drivers/pci/controller/dwc/pcie-designware-host.c
> > > index 317ff512f8df..afee1a0e8883 100644
> > > --- a/drivers/pci/controller/dwc/pcie-designware-host.c
> > > +++ b/drivers/pci/controller/dwc/pcie-designware-host.c
> > > @@ -441,6 +441,9 @@ static void __iomem
> > > *dw_pcie_other_conf_map_bus(struct pci_bus *bus,
> > > struct pcie_port *pp = bus->sysdata;
> > > struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
> > >
> > > + if (!dw_pcie_link_up(pci))
> > > + return NULL;
> > > +
> > > busdev = PCIE_ATU_BUS(bus->number) |
> > > PCIE_ATU_DEV(PCI_SLOT(devfn)) |
> > > PCIE_ATU_FUNC(PCI_FUNC(devfn));
> > >
> > > [.....]
> > >
> > > Thank you.
> > >
> > > Best regards,
> > > Jingoo Han
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-09-22 3:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <AM6PR04MB4966D56E082A88CD4AC3DEFC803E0@AM6PR04MB4966.eurprd04.prod.outlook.com>
2020-09-19 18:57 ` IMX6/7 failed to boot due to PCIE changes Jingoo Han
2020-09-21 3:00 ` Aisheng Dong
2020-09-21 3:00 ` Aisheng Dong
2020-09-22 3:48 ` Jingoo Han
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).