Re: [OS-BUILD PATCH] [aarch64] enable PCIe support for RockChip boards

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Marcin “hrw” Juszkiewicz on gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/381#note_347819123

Booting with more complex cards (Geforce GT210, Matrox G550) make kernel
panic:

```
[   20.487689] rockchip-pcie f8000000.pcie: host bridge /pcie@f8000000
ranges:
[   20.488550] rockchip-pcie f8000000.pcie:      MEM
0x00fa000000..0x00fbdfffff -> 0x00fa000000
[   20.490014] rockchip-pcie f8000000.pcie:       IO
0x00fbe00000..0x00fbefffff -> 0x00fbe00000
[   20.492742] rockchip-pcie f8000000.pcie: PCI host bridge to bus
0000:00
[   20.493480] pci_bus 0000:00: root bus resource [bus 00-1f]
[   20.494084] pci_bus 0000:00: root bus resource [mem
0xfa000000-0xfbdfffff]
[   20.494826] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff]
(bus address [0xfbe00000-0xfbefffff])
[   20.496153] pci 0000:00:00.0: [1d87:0100] type 01 class 0x060400
[   20.497393] pci 0000:00:00.0: supports D1
[   20.497844] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[   20.504783] pci 0000:00:00.0: bridge configuration invalid ([bus
00-00]), reconfiguring
[   20.506556] pci 0000:01:00.0: [104c:8231] type 01 class 0x060400
[   20.507567] pci 0000:01:00.0: Max Payload Size set to 256 (was 128,
max 512)
[   20.508742] pci 0000:01:00.0: supports D1 D2
[   20.519024] pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device.
You can enable it with 'pcie_aspm=force'
[   20.524581] pci 0000:01:00.0: bridge configuration invalid ([bus
00-00]), reconfiguring
[   20.525828] pci_bus 0000:02: extended config space not accessible
[   20.527145] pci 0000:02:00.0: [102b:2527] type 00 class 0x030000
[   20.527910] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x01ffffff
pref]
[   20.528674] pci 0000:02:00.0: reg 0x14: [mem 0x00000000-0x00003fff]
[   20.530098] pci 0000:02:00.0: reg 0x18: [mem 0x00000000-0x007fffff]
[   20.530949] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0001ffff
pref]
[   20.533142] pci 0000:02:00.0: vgaarb: VGA device added:
decodes=io+mem,owns=none,locks=none
[   20.539825] SError Interrupt on CPU5, code 0xbf000002 -- SError
[   20.539831] CPU: 5 PID: 403 Comm: kworker/5:4 Not tainted
5.7.0-0.rc6.20200522git051143e1602d.1.hrw.fc33.aarch64 #1
[   20.539836] Hardware name: pine64 rockpro64_rk3399/rockpro64_rk3399,
BIOS 2020.07-rc2-hrw-video-rng-00240-g2f28984069-dirty 05/23/2020
[   20.539839] Workqueue: events deferred_probe_work_func
[   20.539843] pstate: 60400085 (nZCv daIf +PAN -UAO)
[   20.539846] pc : rockchip_pcie_rd_conf+0x18c/0x230
[pcie_rockchip_host]
[   20.539849] lr : rockchip_pcie_rd_conf+0x94/0x230
[pcie_rockchip_host]
[   20.539851] sp : ffff80001042b7a0
[   20.539853] x29: ffff80001042b7a0 x28: ffff0000e3aad000
[   20.539859] x27: 0000000000000001 x26: 0000000000000000
[   20.539865] x25: 0000000000000008 x24: 0000000000000000
[   20.539870] x23: ffffd942bbe23060 x22: ffff80001042b81c
[   20.539875] x21: ffff0000e3aaae80 x20: 0000000000000004
[   20.539881] x19: 0000000000000000 x18: 00000000fffffffb
[   20.539886] x17: 0000000000000000 x16: ffffd942ba3ccfb0
[   20.539891] x15: 0000000000000020 x14: 0000000000000040
[   20.539896] x13: 0000000000000000 x12: 0000000000000030
[   20.539902] x11: 0101010101010101 x10: 7f7f7f7f7f7f7f7f
[   20.539907] x9 : ffffd94283383bb4 x8 : 0000000000000080
[   20.539912] x7 : 000000008dce7602 x6 : 0000000000000000
[   20.539917] x5 : ffff0000e3aac000 x4 : 0000000000000000
[   20.539923] x3 : 0000000000c00008 x2 : 000000000080000b
[   20.539928] x1 : ffff800015c00008 x0 : ffff800012000000
[   20.539934] Kernel panic - not syncing: Asynchronous SError Interrupt
[   20.539938] CPU: 5 PID: 403 Comm: kworker/5:4 Not tainted
5.7.0-0.rc6.20200522git051143e1602d.1.hrw.fc33.aarch64 #1
[   20.539942] Hardware name: pine64 rockpro64_rk3399/rockpro64_rk3399,
BIOS 2020.07-rc2-hrw-video-rng-00240-g2f28984069-dirty 05/23/2020
[   20.539944] Workqueue: events deferred_probe_work_func
[   20.539948] Call trace:
[   20.539950]  dump_backtrace+0x0/0x1a0
[   20.539953]  show_stack+0x20/0x2c
[   20.539955]  dump_stack+0xe4/0x15c
[   20.539957]  panic+0x15c/0x324
[   20.539959]  print_tainted+0x0/0xb4
[   20.539961]  arm64_serror_panic+0x88/0x94
[   20.539963]  do_serror+0xb0/0x1b0
[   20.539965]  el1_error+0xbc/0x168
[   20.539968]  rockchip_pcie_rd_conf+0x18c/0x230 [pcie_rockchip_host]
[   20.539971]  pci_bus_read_config_dword+0x70/0xc0
[   20.539974]  pci_bus_generic_read_dev_vendor_id+0x3c/0x1bc
[   20.539976]  pci_scan_single_device+0x80/0x134
[   20.539978]  pci_scan_slot+0x48/0x130
[   20.539981]  pci_scan_child_bus_extend+0x60/0x340
[   20.539983]  pci_scan_bridge_extend+0x2ec/0x570
[   20.539985]  pci_scan_child_bus_extend+0x20c/0x340
[   20.539988]  pci_scan_bridge_extend+0x2ec/0x570
[   20.539990]  pci_scan_child_bus_extend+0x20c/0x340
[   20.539993]  pci_scan_root_bus_bridge+0x64/0xf0
[   20.539995]  rockchip_pcie_probe+0x23c/0x2fc [pcie_rockchip_host]
[   20.539998]  platform_drv_probe+0x5c/0xb0
[   20.540000]  really_probe+0xe8/0x49c
[   20.540002]  driver_probe_device+0xec/0x140
[   20.540005]  __device_attach_driver+0x94/0x11c
[   20.540007]  bus_for_each_drv+0x70/0xb0
[   20.540009]  __device_attach+0xe0/0x190
[   20.540011]  device_initial_probe+0x1c/0x30
[   20.540014]  bus_probe_device+0xa4/0xb0
[   20.540016]  deferred_probe_work_func+0xa8/0x100
[   20.540018]  process_one_work+0x240/0x440
[   20.540021]  worker_thread+0x78/0x3b0
[   20.540023]  kthread+0x140/0x144
[   20.540025]  ret_from_fork+0x10/0x18
[   20.540064] SMP: stopping secondary CPUs
[   20.540067] Kernel Offset: 0x5942a9c00000 from 0xffff800010000000
[   20.540070] PHYS_OFFSET: 0xffffb6a840000000
[   20.540072] CPU features: 0x090002,2180600c
[   20.540074] Memory Limit: none


```
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux