|
想给aio-3399b扩展pcie接口,然而插上ams1806扩展版就内核崩溃
- [ 0.989319] rk_gmac-dwmac fe300000.ethernet: IRQ eth_wake_irq not found
- [ 0.989906] rk_gmac-dwmac fe300000.ethernet: IRQ eth_lpi not found
- [ 0.990527] rk_gmac-dwmac fe300000.ethernet: PTP uses main clock
- [ 0.991162] rk_gmac-dwmac fe300000.ethernet: clock input or output? (output).
- [ 0.991789] rk_gmac-dwmac fe300000.ethernet: TX delay(0x28).
- [ 0.992288] rk_gmac-dwmac fe300000.ethernet: RX delay(0x11).
- [ 0.992787] rk_gmac-dwmac fe300000.ethernet: integrated PHY? (no).
- [ 0.998354] rk_gmac-dwmac fe300000.ethernet: init for RGMII
- [ 1.000640] rk_gmac-dwmac fe300000.ethernet: User ID: 0x10, Synopsys ID: 0x35
- [ 1.000909] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
- [ 1.001275] rk_gmac-dwmac fe300000.ethernet: DWMAC1000
- [ 1.002533] rk_gmac-dwmac fe300000.ethernet: DMA HW capability register supported
- [ 1.003186] rk_gmac-dwmac fe300000.ethernet: RX Checksum Offload Engine supported
- [ 1.003837] rk_gmac-dwmac fe300000.ethernet: COE Type 2
- [ 1.004294] rk_gmac-dwmac fe300000.ethernet: TX Checksum insertion supported
- [ 1.004908] rk_gmac-dwmac fe300000.ethernet: Wake-Up On Lan supported
- [ 1.005469] rk_gmac-dwmac fe300000.ethernet: Normal descriptors
- [ 1.005985] rk_gmac-dwmac fe300000.ethernet: Ring mode enabled
- [ 1.006494] rk_gmac-dwmac fe300000.ethernet: Enable RX Mitigation via HW Watchdog Timer
- [ 1.007199] rk_gmac-dwmac fe300000.ethernet: device MAC address ea:ed:dd:ce:f3:01
- [ 1.110473] rockchip-pcie f8000000.pcie: host bridge /pcie@f8000000 ranges:
- [ 1.111107] rockchip-pcie f8000000.pcie: MEM 0x00fa000000..0x00fbdfffff -> 0x00fa000000
- [ 1.111852] rockchip-pcie f8000000.pcie: IO 0x00fbe00000..0x00fbefffff -> 0x00fbe00000
- [ 1.112939] rockchip-pcie f8000000.pcie: no vpcie12v regulator found
- [ 1.128497] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
- [ 1.269209] rockchip-pcie f8000000.pcie: wait 2000 ms before bus scan
- [ 1.289082] mmc_host mmc0: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0)
- [ 1.458884] dwmmc_rockchip fe310000.mmc: Successfully tuned phase to 148
- [ 1.465314] mmc0: new ultra high speed SDR104 SDIO card at address 0001
- [ 3.358874] rockchip-pcie f8000000.pcie: PCI host bridge to bus 0000:00
- [ 3.359473] pci_bus 0000:00: root bus resource [bus 00-1f]
- [ 3.359958] pci_bus 0000:00: root bus resource [mem 0xfa000000-0xfbdfffff]
- [ 3.360560] pci_bus 0000:00: root bus resource [io 0x0000-0xfffff] (bus address [0xfbe00000-0xfbefffff])
- [ 3.361426] pci 0000:00:00.0: [1d87:0100] type 01 class 0x060400
- [ 3.362037] pci 0000:00:00.0: supports D1
- [ 3.362390] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
- [ 3.365398] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
- [ 3.366275] pci 0000:01:00.0: [1b21:1806] type 01 class 0x060400
- [ 3.366986] pci 0000:01:00.0: enabling Extended Tags
- [ 3.367752] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
- [ 3.368522] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:00.0 (capable of 15.752 Gb/s with 8.0 GT/s PCIe x2 link)
- [ 3.398430] pci 0000:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
- [ 3.399527] pci 0000:02:00.0: [1b21:1806] type 01 class 0x060400
- [ 3.400253] pci 0000:02:00.0: enabling Extended Tags
- [ 3.401045] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
- [ 3.402106] Internal error: synchronous external abort: 0000000096000210 [#1] PREEMPT SMP
- [ 3.402823] Modules linked in:
- [ 3.403100] CPU: 1 PID: 59 Comm: kworker/u12:3 Not tainted 6.6.30 #0
- [ 3.403660] Hardware name: AIO-3399B (DT)
- [ 3.404016] Workqueue: events_unbound deferred_probe_work_func
- [ 3.404539] pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
- [ 3.405151] pc : rockchip_pcie_rd_conf+0x17c/0x1f8
- [ 3.405579] lr : rockchip_pcie_rd_conf+0x6c/0x1f8
- [ 3.405997] sp : ffff8000816a3780
- [ 3.406289] x29: ffff8000816a3780 x28: 0000000000000000 x27: 0000000000000001
- [ 3.406922] x26: 0000000000000002 x25: ffff0000011b98c0 x24: ffff800080b9e390
- [ 3.407554] x23: ffff8000811a2b30 x22: 0000000000000000 x21: ffff800088208000
- [ 3.408185] x20: ffff8000816a37fc x19: 0000000000000004 x18: 0000000000000003
- [ 3.408817] x17: 00000000ab40759a x16: 0000000036d5337b x15: ffffffffffffffff
- [ 3.409449] x14: ffff000001897a1c x13: ffff000001897329 x12: 00000000e2019ea5
- [ 3.410080] x11: 0000000088df70c3 x10: 0000000000000069 x9 : 0000000000000501
- [ 3.410712] x8 : 000000003d4d554e x7 : ffff000001087b40 x6 : ffff000000daa400
- [ 3.411343] x5 : ffff000000d62000 x4 : ffff80008b000000 x3 : 0000000000c00008
- [ 3.411975] x2 : 000000000080000b x1 : ffff80008bc00008 x0 : ffff80008bc0000c
- [ 3.412607] Call trace:
- [ 3.412826] rockchip_pcie_rd_conf+0x17c/0x1f8
- [ 3.413223] pci_bus_read_config_dword+0x68/0xbc
- [ 3.413634] pci_bus_generic_read_dev_vendor_id+0x30/0x190
- [ 3.414120] pci_scan_single_device+0x78/0xec
- [ 3.414508] pci_scan_slot+0x54/0x1fc
- [ 3.414837] pci_scan_child_bus_extend+0x3c/0x248
- [ 3.415255] pci_scan_bridge_extend+0x254/0x608
- [ 3.415658] pci_scan_child_bus_extend+0x180/0x248
- [ 3.416083] pci_scan_bridge_extend+0x254/0x608
- [ 3.416485] pci_scan_child_bus_extend+0x180/0x248
- [ 3.416911] pci_scan_root_bus_bridge+0x64/0xd8
- [ 3.417314] pci_host_probe+0x18/0xc0
- [ 3.417643] rockchip_pcie_probe+0xa78/0xc18
- [ 3.418023] platform_probe+0x68/0xc4
- [ 3.418350] really_probe+0x148/0x2b0
- [ 3.418680] __driver_probe_device+0x78/0x128
- [ 3.419069] driver_probe_device+0x40/0x118
- [ 3.419444] __device_attach_driver+0xb8/0x134
- [ 3.419841] bus_for_each_drv+0x70/0xb8
- [ 3.420183] __device_attach+0xa0/0x184
- [ 3.420527] device_initial_probe+0x14/0x20
- [ 3.420902] bus_probe_device+0xac/0xb0
- [ 3.421246] deferred_probe_work_func+0x88/0xc0
- [ 3.421649] process_one_work+0x138/0x248
- [ 3.422010] worker_thread+0x31c/0x44c
- [ 3.422346] kthread+0x110/0x114
- [ 3.422637] ret_from_fork+0x10/0x20
- [ 3.422960] Code: 52800141 97fffcea 7100127f 54fff7e1 (b94002b5)
- [ 3.423495] ---[ end trace 0000000000000000 ]---
- [ 3.423902] note: kworker/u12:3[59] exited with irqs disabled
- [ 3.424431] note: kworker/u12:3[59] exited with preempt_count 1
- [ 119.368431] random: crng init done
复制代码 尝试过的方法如下
使用 LKML:Vincenzo Palazzo:[PATCH v1] 驱动程序:PCI:为瑞芯微 PCIe 总线扫描引入可配置延迟 这个补丁
https://usermanual.wiki/Document/RockchipDeveloperGuidelinux44PCIe.265700629.pdf
https://forum.armbian.com/topic/20189-how-to-change-pcie-bus-scan-delay-without-building-kernel/
https://lore.kernel.org/linux-rockchip/1f180d4b-9e5d-c829-555b-c9750940361e@web.de/T/
启动项目 传入pci=nomsi pci=pcie_bus_safe pcie_aspm=off
rk3399的pcie插固态和wifi模块以及jmb585都能正常识别,唯独asm1806异常(已经排除ams1806硬件问题),
测试过的硬件设备有 aio-3399b nanopc-t4 som-rk3399 都是相同结果
|
|