<smak201>
hi, has someone here managed to get pcie working on rk3399?
<smak201>
I have been trying various kernels, but always seem to get timeout in pcie lane training
mniip has joined #linux-rockchip
<smak201>
I'm running nanopc-t4 and pcie seems to work with friendlyelec's friendlycore images but nothing else I have tried
<smak201>
I just can't figure out what's the magic sauce they put in it
field^Mop has joined #linux-rockchip
<maz>
smak201: I have a nanopc-t4 running with both mainline u-boot and kernel, and PCIe is definitely working (I have a NVME SSD on it).
<smak201>
maz: great to hear
<smak201>
i also have samsung pm981 NVME on it and running currently mainline 5.3.0-rc6 but just can't get the pcie up
<smak201>
are you using the nanopc-t4 device tree in the mainline kernel?
<maz>
smak201: yes (or so I seem to remember, I don't have the machine in front of me).
<smak201>
ok, but at least there is then some hope to get it working
<maz>
smak201: there was something subtle about the uboot device tree vs the kernel one. I basically have to boot u-boot with its own device tree, then load the kernel's from grub.
<smak201>
good to know. I have to start working with the mainline u-boot then
<smak201>
I tries it some time ago, but couldn't get it to boot
<maz>
smak201: I'm not sure u-boot is changing the situation much (it doesn't know about the PCIe bus at all, AFAIK).
<maz>
smak201: but there's all kind of subtle things about having the right regulators, phys and co in your kernel.
<smak201>
I have the uboot booting the kernel image directly now, I will try to add grub in the mix and see if it helps
<maz>
grub won't change a thing.
<maz>
the kernel should be able to do it directly if it has the right DT and all the regulators/phys and co compiled in.
<smak201>
as far as I understood the nanopc-t4 seems to have the pci power rails wired directly to the main 3.3V regulators
<smak201>
so there is no way switching them on or off
Depau has quit [Ping timeout: 264 seconds]
<smak201>
but I think it has something to do with the device trees if you have it working
<maz>
I assume you have the pcie phy driver compiled in, right?
<smak201>
I have it as a module right now
<smak201>
to be able to recompile and test stuff easier
<smak201>
do you think that might be a problem?
<maz>
yup.
<maz>
have both phy driver and pcie controller compiled in.
<maz>
modules are just a universal pain
<smak201>
I will try to compile them in and see if something changes
<smak201>
maz: thanks a lot for your help. Good to know there is at least some hope to get it working
return0e_ has joined #linux-rockchip
return0e has quit [Ping timeout: 265 seconds]
Depau has joined #linux-rockchip
field^Mop has quit [Ping timeout: 276 seconds]
return0e has joined #linux-rockchip
return0e_ has quit [Ping timeout: 276 seconds]
kevery has quit [Ping timeout: 258 seconds]
lkcl has quit [Ping timeout: 240 seconds]
ganbold has quit [Remote host closed the connection]
yann has quit [Ping timeout: 240 seconds]
field^Mop has joined #linux-rockchip
yann has joined #linux-rockchip
cristian_c has joined #linux-rockchip
elektrinis has quit [Read error: Connection reset by peer]
return0e has quit [Read error: Connection reset by peer]