I’ve been trying to get PCIe working on Android on the Hikey960.
I’ve been building off the master branch and have tried a variety of kernels including android-hikey-linaro-4.14, android-hikey-linaro-4.4, and android-hikey-linaro-4.9.
Here is what I’ve been seeing from dmesg regardless of whether a PCIe device is plugged in or not:
hikey960:/ # dmesg | grep pci
[ 1.692840] OF: PCI: host bridge /soc/pcie@f4000000 ranges:
[ 2.699256] kirin-pcie f4000000.pcie: Link Fail
[ 2.699385] kirin-pcie f4000000.pcie: PCI host bridge to bus 0000:00
[ 2.699396] pci_bus 0000:00: root bus resource [bus 00-01]
[ 2.699405] pci_bus 0000:00: root bus resource [mem 0xf6000000-0xf7ffffff] (bus address [0x00000000-0x01ffffff])
[ 2.699438] pci 0000:00:00.0: [19e5:3660] type 01 class 0x060400
[ 2.699486] pci 0000:00:00.0: reg 0x10: [mem 0xf6000000-0xf6ffffff 64bit]
[ 2.699581] pci 0000:00:00.0: supports D1 D2
[ 2.699588] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot
[ 2.699845] pci_bus 0000:01: busn_res: can not insert [bus 01-ff] under [bus 00-01] (conflicts with (null) [bus 00-01])
[ 2.699890] pci 0000:00:00.0: BAR 0: assigned [mem 0xf6000000-0xf6ffffff 64bit]
[ 2.699908] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 2.700163] pcieport 0000:00:00.0: Signaling PME with IRQ 69
[ 2.700315] pcieport 0000:00:00.0: AER enabled with IRQ 69
[ 2.782024] ehci-pci: EHCI PCI platform driver
[ 2.782143] ohci-pci: OHCI PCI platform driver
[ 6.212595] tcpci_timer_init : init OK
How can I get PCIe working on AOSP on the hikey960?
Thanks!