All of lore.kernel.org
 help / color / mirror / Atom feed
* rk3399 - Rock Pi 4 PCIe
@ 2020-05-22  0:49 Anthony Davies
  2020-05-22 12:35 ` Mark Kettenis
  0 siblings, 1 reply; 3+ messages in thread
From: Anthony Davies @ 2020-05-22  0:49 UTC (permalink / raw)
  To: u-boot

Hi All,

I have applied Jagan's PCIe patch for Rockchip (
http://lists.infradead.org/pipermail/linux-rockchip/2020-May/031117.html)
to my Rock Pi 4 but I am getting intermittent results with the PCIe bus
(and hence NVMe m.2) showing in u-boot (and then Linux).

When it is successful the pci command shows the pci bus as expected when it
isnt working I get the following:
=> pci
PCIe link training gen1 timeout!
No such bus
=> pci enum
failed to find ep-gpios property
=> fatload mmc 0:4 ${fdt_addr_r} rk3399-rock-pi-4.dtb
54702 bytes read in 21 ms (2.5 MiB/s)
=> fdt addr ${fdt_addr_r}
=> fdt set /pcie at f8000000 ep-gpios  <0xb7 27 0>
=> fdt print /pcie at f8000000 ep-gpios
ep-gpios = <0x000000b7 0x0000001b 0x00000000>
=> pci
failed to find ep-gpios property
No such bus
=> pci enum
failed to find ep-gpios property

I have 4 of these boards with the same intermittent results on all of them.
It fails more then it succeeds and I have a combination of both booted into
linux on my network at the moment.

When researching the issue I did see some commentary on a timing issue
between training and bus scanning on rockchip and I am not sure if this is
relevant to my problem.

Would appreciate any insights people may have and am very happy to work
with people to troubleshoot the issue.

Cheers,

Tony

^ permalink raw reply	[flat|nested] 3+ messages in thread

* rk3399 - Rock Pi 4 PCIe
  2020-05-22  0:49 rk3399 - Rock Pi 4 PCIe Anthony Davies
@ 2020-05-22 12:35 ` Mark Kettenis
  2020-05-23  0:13   ` Anthony Davies
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Kettenis @ 2020-05-22 12:35 UTC (permalink / raw)
  To: u-boot

> From: Anthony Davies <anthony.t.davies+ml_uboot@gmail.com>
> Date: Fri, 22 May 2020 10:49:12 +1000
> 
> Hi All,
> 
> I have applied Jagan's PCIe patch for Rockchip (
> http://lists.infradead.org/pipermail/linux-rockchip/2020-May/031117.html)
> to my Rock Pi 4 but I am getting intermittent results with the PCIe bus
> (and hence NVMe m.2) showing in u-boot (and then Linux).
> 
> When it is successful the pci command shows the pci bus as expected when it
> isnt working I get the following:
> => pci
> PCIe link training gen1 timeout!
> No such bus
> => pci enum
> failed to find ep-gpios property
> => fatload mmc 0:4 ${fdt_addr_r} rk3399-rock-pi-4.dtb
> 54702 bytes read in 21 ms (2.5 MiB/s)
> => fdt addr ${fdt_addr_r}
> => fdt set /pcie at f8000000 ep-gpios  <0xb7 27 0>
> => fdt print /pcie at f8000000 ep-gpios
> ep-gpios = <0x000000b7 0x0000001b 0x00000000>
> => pci
> failed to find ep-gpios property
> No such bus
> => pci enum
> failed to find ep-gpios property
> 
> I have 4 of these boards with the same intermittent results on all of them.
> It fails more then it succeeds and I have a combination of both booted into
> linux on my network at the moment.
> 
> When researching the issue I did see some commentary on a timing issue
> between training and bus scanning on rockchip and I am not sure if this is
> relevant to my problem.
> 
> Would appreciate any insights people may have and am very happy to work
> with people to troubleshoot the issue.

Might be worth trying:

https://patchwork.ozlabs.org/project/uboot/patch/20200427090947.75951-1-kettenis at openbsd.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* rk3399 - Rock Pi 4 PCIe
  2020-05-22 12:35 ` Mark Kettenis
@ 2020-05-23  0:13   ` Anthony Davies
  0 siblings, 0 replies; 3+ messages in thread
From: Anthony Davies @ 2020-05-23  0:13 UTC (permalink / raw)
  To: u-boot

Just applied it and rebooted all 4 with success. Given it is an
intermittent issue I will do some more testing on the morrow.

Thanks for the help, its greatly appreciated.

On Fri, 22 May 2020 at 22:36, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:

> > From: Anthony Davies <anthony.t.davies+ml_uboot@gmail.com>
> > Date: Fri, 22 May 2020 10:49:12 +1000
> >
> > Hi All,
> >
> > I have applied Jagan's PCIe patch for Rockchip (
> > http://lists.infradead.org/pipermail/linux-rockchip/2020-May/031117.html
> )
> > to my Rock Pi 4 but I am getting intermittent results with the PCIe bus
> > (and hence NVMe m.2) showing in u-boot (and then Linux).
> >
> > When it is successful the pci command shows the pci bus as expected when
> it
> > isnt working I get the following:
> > => pci
> > PCIe link training gen1 timeout!
> > No such bus
> > => pci enum
> > failed to find ep-gpios property
> > => fatload mmc 0:4 ${fdt_addr_r} rk3399-rock-pi-4.dtb
> > 54702 bytes read in 21 ms (2.5 MiB/s)
> > => fdt addr ${fdt_addr_r}
> > => fdt set /pcie at f8000000 ep-gpios  <0xb7 27 0>
> > => fdt print /pcie at f8000000 ep-gpios
> > ep-gpios = <0x000000b7 0x0000001b 0x00000000>
> > => pci
> > failed to find ep-gpios property
> > No such bus
> > => pci enum
> > failed to find ep-gpios property
> >
> > I have 4 of these boards with the same intermittent results on all of
> them.
> > It fails more then it succeeds and I have a combination of both booted
> into
> > linux on my network at the moment.
> >
> > When researching the issue I did see some commentary on a timing issue
> > between training and bus scanning on rockchip and I am not sure if this
> is
> > relevant to my problem.
> >
> > Would appreciate any insights people may have and am very happy to work
> > with people to troubleshoot the issue.
>
> Might be worth trying:
>
>
> https://patchwork.ozlabs.org/project/uboot/patch/20200427090947.75951-1-kettenis at openbsd.org/
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-23  0:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-22  0:49 rk3399 - Rock Pi 4 PCIe Anthony Davies
2020-05-22 12:35 ` Mark Kettenis
2020-05-23  0:13   ` Anthony Davies

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.