octeon: Trouble with networking and PCIe

Andreas Böhler dev at aboehler.at
Mon Jan 16 06:02:43 PST 2023


Hey,

I'm trying to port OpenWrt to the Avaya WAP9102 / Xirrus XR620 AP. 
According to internal pictures, it has a CN5020 CPU and 1GB of RAM. I 
hooked up serial and started building images, TFTP boot is working fine.

I'm having a hard time getting the two GBit ports to work reliably. I 
have a continuous ping running to 192.168.1.1 and during boot, I always 
get a few packets back. Then the links goes down and comes back up after 
boot - but no packets are being sent or received. Sometimes (very 
rarely), everything is working fine after boot.

I tried changing rx-delay and tx-delay in both, octeon-platform.c and in 
the device dts, but nothing changes. For reference, the complete 
changeset is in my github fork [0]. What could be the cause here?

The AP has two QCA9882 WiFi cards in mPCIe slots. Unfortunately, I can't 
get ath10k to load. I enabled MSI interrupts, but that didn't help. The 
following is reported in the log:


[ 0.113991] PCIe: Initializing port 0
[ 0.117338] PCIe: BIST2 FAILED for port 0 (0x0000000000000003)
[ 0.117387] PCIe: Port 0 link active, 1 lanes, speed gen1
[ 0.229392] PCIe: Initializing port 1
[ 0.232731] PCIe: BIST2 FAILED for port 1 (0x0000000000000003)
[ 0.232777] PCIe: Port 1 link active, 1 lanes, speed gen1

----snip----

[ 4.229734] ath10k 5.15 driver, optimized for CT firmware, probing pci 
device: 0x3c.
[ 4.230526] ath10k_pci 0000:01:00.0: pci irq msi oper_irq_mode 2 
irq_mode 0 reset_mode 0
[ 4.363457] ath10k_pci 0000:01:00.0: failed to poke copy engine: -16
[ 4.503447] ath10k_pci 0000:01:00.0: failed to poke copy engine: -16
[ 4.643446] ath10k_pci 0000:01:00.0: failed to poke copy engine: -16
[ 4.853448] ath10k_pci 0000:01:00.0: failed to poke copy engine: -16
[ 4.973457] ath10k_pci 0000:01:00.0: failed to poke copy engine: -16
[ 5.093440] ath10k_pci 0000:01:00.0: failed to poke copy engine: -16
[ 5.183327] ath10k_pci 0000:01:00.0: Failed to get pcie state addr: -16
[ 5.189954] ath10k_pci 0000:01:00.0: failed to setup init config: -16
[ 5.196473] ath10k_pci 0000:01:00.0: could not power on hif bus (-16)
[ 5.202924] ath10k_pci 0000:01:00.0: could not probe fw (-16)

What I can do to get ath10k working on this platform?

Thanks, Andreas

[0] https://github.com/andyboeh/openwrt/tree/xirrus_xr620






More information about the openwrt-devel mailing list