wx__H6Z50O 发表于 2022-12-9 10:23:44

rk3588 pcie异常排故。 LTSSM连接失败

在插入或不插入外设,都会在PCIe Linking... LTSSM is 0x0之后连接失败。
其中dts使用pcie3x4: pcie@fe150000控制器,pcie30phy: phy@fee80000 PHY节点,reset-gpios配置正确,vcc3v3对应pwren引脚配置正确

请大佬帮忙看看,提供几个排故方向,拜谢!


# dmesg | grep pcie
[    2.942669] vcc3v3_pcie30: 3300 mV, disabled
[    2.942706] reg-fixed-voltage vcc3v3-pcie30: Looking up vin-supply from device tree
[    2.942709] vcc3v3_pcie30: supplied by vcc12v_dcin
[    2.942732] reg-fixed-voltage vcc3v3-pcie30: vcc3v3_pcie30 supplying 3300000uV
[    3.227704] rk-pcie fe150000.pcie: invalid prsnt-gpios property in node
[    3.227716] rk-pcie fe150000.pcie: Looking up vpcie3v3-supply from device tree
[    3.246529] rk-pcie fe150000.pcie: missing legacy IRQ resource
[    3.246540] rk-pcie fe150000.pcie: Missing *config* reg space
[    3.246547] rk-pcie fe150000.pcie: host bridge /pcie@fe150000 ranges:
[    3.246558] rk-pcie fe150000.pcie:      err 0x00f0000000..0x00f00fffff -> 0x00f0000000
[    3.246564] rk-pcie fe150000.pcie:       IO 0x00f0100000..0x00f01fffff -> 0x00f0100000
[    3.246571] rk-pcie fe150000.pcie:      MEM 0x00f0200000..0x00f0ffffff -> 0x00f0200000
[    3.246576] rk-pcie fe150000.pcie:      MEM 0x0900000000..0x093fffffff -> 0x0900000000
[    3.246597] rk-pcie fe150000.pcie: Missing *config* reg space
[    3.246616] rk-pcie fe150000.pcie: invalid resource
[    3.452788] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x0
[    3.478322] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x1
[    3.504986] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x1
[    3.531653] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x0
[    3.558319] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x0
[    3.584986] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x0
[    3.611652] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x0
[    3.638320] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x0
[    3.664986] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x0
[    3.691653] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x0
[    6.118318] rk-pcie fe150000.pcie: PCIe Link Fail
[    6.118323] rk-pcie fe150000.pcie: failed to initialize host
[    6.118471] rk-pcie: probe of fe150000.pcie failed with error -22
[   11.579640] reg-fixed-voltage pcie30-avdd0v75: Looking up vin-supply from device tree
[   11.579696] pcie30_avdd0v75: supplied by nldo5_s0
[   11.580636] pcie30_avdd0v75: 750 mV, enabled
[   11.580714] reg-fixed-voltage pcie30-avdd0v75: pcie30_avdd0v75 supplying 750000uV
[   11.580817] reg-fixed-voltage pcie30-avdd1v8: Looking up vin-supply from device tree
[   11.580822] pcie30_avdd1v8: supplied by avcc_1v8_s0
[   11.584568] pcie30_avdd1v8: 1800 mV, enabled
[   11.584637] reg-fixed-voltage pcie30-avdd1v8: pcie30_avdd1v8 supplying 1800000uV
[   11.584824] rk-pcie fe150000.pcie: invalid prsnt-gpios property in node
[   11.584841] rk-pcie fe150000.pcie: Looking up vpcie3v3-supply from device tree
[   11.593211] rk-pcie fe150000.pcie: missing legacy IRQ resource
[   11.593224] rk-pcie fe150000.pcie: Missing *config* reg space
[   11.593231] rk-pcie fe150000.pcie: host bridge /pcie@fe150000 ranges:
[   11.593243] rk-pcie fe150000.pcie:      err 0x00f0000000..0x00f00fffff -> 0x00f0000000
[   11.593250] rk-pcie fe150000.pcie:       IO 0x00f0100000..0x00f01fffff -> 0x00f0100000
[   11.593258] rk-pcie fe150000.pcie:      MEM 0x00f0200000..0x00f0ffffff -> 0x00f0200000
[   11.593263] rk-pcie fe150000.pcie:      MEM 0x0900000000..0x093fffffff -> 0x0900000000
[   11.593286] rk-pcie fe150000.pcie: Missing *config* reg space
[   11.593310] rk-pcie fe150000.pcie: invalid resource
[   11.799435] rk_pcie_establish_link: 90 callbacks suppressed
[   11.799438] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x0
[   11.824989] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x1
[   11.851656] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x1
[   11.878322] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x0
[   11.904988] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x0
[   11.931656] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x0
[   11.958326] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x0
[   11.984988] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x0
[   12.011655] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x0
[   12.038321] rk-pcie fe150000.pcie: PCIe Linking... LTSSM is 0x0
[   14.464985] rk-pcie fe150000.pcie: PCIe Link Fail
[   14.464993] rk-pcie fe150000.pcie: failed to initialize host
[   14.465150] rk-pcie: probe of fe150000.pcie failed with error -22
[   45.918326] vcc3v3_pcie30: disabling


sdeer103255 发表于 2022-12-23 11:32:54

你好,请问你这个问题解决了吗?我也遇到了一样的问题

wx__fDwWYH 发表于 2024-3-4 14:32:45

sdeer103255 发表于 2022-12-23 11:32
你好,请问你这个问题解决了吗?我也遇到了一样的问题

你好,请问你这个问题解决了吗?我也遇到了一样的问题 谢谢

kkwanghao 发表于 2024-5-23 20:21:30

请问问题解决了吗?是什么导致的?

wx__H6Z50O 发表于 2024-9-6 15:13:01

kkwanghao 发表于 2024-5-23 20:21
请问问题解决了吗?是什么导致的?

我这边是外设硬盘的问题,换了个正常pcie3x4的硬盘可以了。
下面是官方建议排查方向:
异常原因:trainning 失败,外设没有处于⼯作状态或者信号异常。⾸先检测下 reset-gpios 这个是否配置
对了。其次,检测下外设的3V3供电是否有,是否⾜够,部分外设需要12V电源。最后测试复位信号与电
源的时序是否与此设备的spec冲突。如果都⽆法解决,⼤概率需要定位信号完整性,需要拿出测试眼图
和PCB给到我司硬件,并且最好我们建议贵司找实验室提供⼀份测试TX兼容性信号测试报告。
另外还建议客⼾打开pcie-dw-rockchip.c中的RK_PCIE_DBG,抓⼀份log以便分析。请阅读者注意,如果
有多个控制器同时使⽤,抓log前请先把不使⽤或者没问题的设备对应的控制器disable掉,这样log会好分
析⼀点。所抓取的log中,将会出现类似“rk-pcie 3c0000000.pcie: fifo_status = 0x144001”等信息。
fifo_status的末尾两位是PCIe链路的ltssm状态机,可以根据状态机信息判断异常发⽣的⼤致情况。芯⽚的
PCIe ltssm状态机信息可参照⽂末附录部分
页: [1]
查看完整版本: rk3588 pcie异常排故。 LTSSM连接失败