openwrt/target/linux/mvebu/patches-4.14
Tomasz Maciej Nowak a21210fbb7 mvebu: reduce speed to gen1 for espressobin pcie
Since the beginning there's been an issue with initializing the Atheros
based MiniPCIe wireless cards. Here's an example of kerenel log:

 OF: PCI: host bridge /soc/pcie@d0070000 ranges:
 OF: PCI:   MEM 0xe8000000..0xe8ffffff -> 0xe8000000
 OF: PCI:    IO 0xe9000000..0xe900ffff -> 0xe9000000
 advk-pcie d0070000.pcie: link up
 advk-pcie d0070000.pcie: PCI host bridge to bus 0000:00
 pci_bus 0000:00: root bus resource [bus 00-ff]
 pci_bus 0000:00: root bus resource [mem0xe8000000-0xe8ffffff]
 pci_bus 0000:00: root bus resource [io  0x0000-0xffff](bus address[0xe9000000-0xe900ffff])
 pci 0000:00:00.0: BAR 0: assigned [mem0xe8000000-0xe801ffff 64bit]
 pci 0000:00:00.0: BAR 6: assigned [mem0xe8020000-0xe802ffff pref]
 [...]
 advk-pcie d0070000.pcie: Posted PIO Response Status: CA,0xe00 @ 0x3c
 advk-pcie d0070000.pcie: Posted PIO Response Status: CA,0xe00 @ 0x44
 advk-pcie d0070000.pcie: Posted PIO Response Status: CA,0xe00 @ 0x4
 ath9k 0000:00:00.0: enabling device (0000 -> 0002)
 advk-pcie d0070000.pcie: Posted PIO Response Status: CA,0xe00 @ 0x3c
 advk-pcie d0070000.pcie: Posted PIO Response Status: CA,0xe00 @ 0xc
 advk-pcie d0070000.pcie: Posted PIO Response Status: CA,0xe00 @ 0x4
 advk-pcie d0070000.pcie: Posted PIO Response Status: CA,0xe00 @ 0x40
 ath9k 0000:00:00.0: request_irq failed
 advk-pcie d0070000.pcie: Posted PIO Response Status: CA,0xe00 @ 0x4
 ath9k: probe of 0000:00:00.0 failed with error -22

The same happens for ath5k cards, while ath10k card didn't appear at
all (not detected):

 OF: PCI: host bridge /soc/pcie@d0070000 ranges:
 OF: PCI:   MEM 0xe8000000..0xe8ffffff -> 0xe8000000
 OF: PCI:    IO 0xe9000000..0xe900ffff -> 0xe9000000
 advk-pcie d0070000.pcie: link never came up
 advk-pcie d0070000.pcie: PCI host bridge to bus 0000:00
 pci_bus 0000:00: root bus resource [bus 00-ff]
 pci_bus 0000:00: root bus resource [mem0xe8000000-0xe8ffffff]
 pci_bus 0000:00: root bus resource [io  0x0000-0xffff](bus address[0xe9000000-0xe900ffff])
 advk-pcie d0070000.pcie: config read/write timed out

Following the issue on esppressobin.net forum [1] the workaround seems
to be limiting the speed of PCIe bridge to 1st generation. This fixed
the initialisation of all tested Atheros wireless cards.

The change shouldn't affect the performance for wireless cards,
it could reduce the performance of storage controller cards but since
OpenWrt focuses on wireless connectivity, fixing compatibility with
wireless cards should be a priority.

For the record, the iwlwifi and mt76 cards were not affected by this
issue.

1. http://espressobin.net/forums/topic/which-pcie-wlan-cards-are-supported

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
(cherry picked from commit 772258044b)
2018-06-19 12:54:24 +02:00
..
002-add_powertables.patch
003-add_switch_nodes.patch
004-add_sata_disk_activity_trigger.patch
005-linksys_hardcode_nand_ecc_settings.patch mvebu: Add support for WRT3200ACM with new NAND flash 2018-03-31 16:12:39 +02:00
006-mvebu-Mangle-bootloader-s-kernel-arguments.patch kernel: bump 4.14 to 4.14.48 for 18.06 2018-06-07 09:03:24 +02:00
100-find_active_root.patch kernel: make mtd patches apply again 2018-03-15 00:42:41 +01:00
102-revert_i2c_delay.patch
103-remove-nand-driver-bug.patch
104-linksys_mamba_disable_keep_config.patch
105-build_new_dtbs.patch mvebu: add support for WRT32X (venom) 2018-05-14 17:20:10 +02:00
110-pxa3xxx_revert_irq_thread.patch
205-armada-385-rd-mtd-partitions.patch
206-ARM-mvebu-385-ap-Add-partitions.patch
210-clearfog_switch_node.patch
220-disable-untested-dsa-boards.patch mvebu: Add support for WRT3200ACM with new NAND flash 2018-03-31 16:12:39 +02:00
230-armada-xp-linksys-mamba-broken-idle.patch mvebu: disable cpu idle on WRT1900ACv1 2018-03-19 23:28:49 +01:00
300-mvneta-tx-queue-workaround.patch kernel: bump 4.14 to 4.14.48 for 18.06 2018-06-07 09:03:24 +02:00
400-cpuidle-mvebu-indicate-failure-to-enter-deeper-sleep.patch
401-pci-mvebu-time-out-reset-on-link-up.patch
402-sfp-display-SFP-module-information.patch
403-net-mvneta-convert-to-phylink.patch kernel: bump 4.14 to 4.14.48 for 18.06 2018-06-07 09:03:24 +02:00
404-net-mvneta-hack-fix-phy_interface.patch kernel: bump 4.14 to 4.14.48 for 18.06 2018-06-07 09:03:24 +02:00
405-net-mvneta-disable-MVNETA_CAUSE_PSC_SYNC_CHANGE-inte.patch kernel: bump 4.14 to 4.14.48 for 18.06 2018-06-07 09:03:24 +02:00
406-net-mvneta-add-module-EEPROM-reading-support.patch kernel: bump 4.14 to 4.14.48 for 18.06 2018-06-07 09:03:24 +02:00
407-phy-fixed-phy-remove-fixed_phy_update_state.patch
408-sfp-move-module-eeprom-ethtool-access-into-netdev-co.patch kernel: bump 4.14 to 4.14.48 for 18.06 2018-06-07 09:03:24 +02:00
409-sfp-use-netdev-sfp_bus-for-start-stop.patch kernel: bump 4.14 to 4.14.23 2018-03-02 21:33:08 +01:00
410-sfp-hack-allow-marvell-10G-phy-support-to-use-SFP.patch
411-sfp-add-sfp-compatible.patch kernel: update kernel 4.14 to 4.14.32 2018-04-03 23:26:45 +02:00
412-ARM-dts-armada388-clearfog-emmc-on-clearfog-base.patch
413-ARM-dts-armada388-clearfog-increase-speed-of-i2c0-to.patch
414-ARM-dts-armada388-clearfog-add-SFP-module-support.patch mvebu: fix SFP insert detection GPIO name on 4.14 2018-02-25 22:58:35 +01:00
415-ARM-dts-armada388-clearfog-document-MPP-usage.patch mvebu: disable DSA DT nodes for boards using mvsw61xx 2018-03-09 22:19:07 +01:00
420-rtc-trimming-support.patch mvebu: Backport RTC trimming support. 2018-03-17 22:59:29 +01:00
421-rtc-initialize.patch mvebu: Add Solidrun RTC init patch. 2018-03-17 22:59:29 +01:00
423-ARM-dts-armada-385-linksys-Disable-internal-RTC.patch mvebu: Add support for WRT3200ACM with new NAND flash 2018-03-31 16:12:39 +02:00
450-reprobe_sfp_phy.patch kernel: update kernel 4.14 to 4.14.32 2018-04-03 23:26:45 +02:00
500-clk-mvebu-armada-37xx-periph-cosmetic-changes.patch mvebu: new subtarget cortex A53 2018-03-10 01:15:22 +01:00
501-clk-mvebu-armada-37xx-periph-prepare-cpu-clk-to-be-u.patch mvebu: new subtarget cortex A53 2018-03-10 01:15:22 +01:00
502-clk-mvebu-armada-37xx-periph-add-DVFS-support-for-cp.patch mvebu: new subtarget cortex A53 2018-03-10 01:15:22 +01:00
503-cpufreq-Add-DVFS-support-for-Armada-37xx.patch mvebu: new subtarget cortex A53 2018-03-10 01:15:22 +01:00
504-spi-a3700-Change-SPI-mode-before-asserting-chip-sele.patch mvebu: new subtarget cortex A53 2018-03-10 01:15:22 +01:00
505-arm64-dts-marvell-Fix-A37xx-UART0-register-size.patch mvebu: new subtarget cortex A53 2018-03-10 01:15:22 +01:00
506-arm64-dts-marvell-armada-37xx-add-UART-clock.patch mvebu: new subtarget cortex A53 2018-03-10 01:15:22 +01:00
507-arm64-dts-marvell-armada-37xx-add-nodes-allowing-cpu.patch mvebu: new subtarget cortex A53 2018-03-10 01:15:22 +01:00
508-cpufreq-armada-37xx-Fix-clock-leak.patch mvebu: add fix for armada 37xx cpufreq driver 2018-06-19 12:54:24 +02:00
520-arm64-dts-marvell-armada37xx-Add-eth0-alias.patch mvebu: new subtarget cortex A53 2018-03-10 01:15:22 +01:00
521-esporessobin-dt-enable-spi-nor-on-i2c.patch mvebu: new subtarget cortex A53 2018-03-10 01:15:22 +01:00
524-PCI-aardvark-set-host-and-device-to-the-same-MAX-payload-size.patch kernel: bump 4.14 to 4.14.43 for 18.06 2018-05-24 16:04:09 +02:00
526-PCI-aardvark-disable-LOS-state-by-default.patch mvebu: new subtarget cortex A53 2018-03-10 01:15:22 +01:00
527-PCI-aardvark-allow-to-specify-link-capability.patch mvebu: reduce speed to gen1 for espressobin pcie 2018-06-19 12:54:24 +02:00
528-arm64-dts-armada-3720-espressobin-set-max-link-to-ge.patch mvebu: reduce speed to gen1 for espressobin pcie 2018-06-19 12:54:24 +02:00
530-ATA-ahci_mvebu-enable-stop_engine-override.patch mvebu: backport ahci_mvebu errata patchset 2018-06-18 21:21:55 +02:00
531-ATA-ahci_mvebu-pmp-stop-errata-226.patch mvebu: backport ahci_mvebu errata patchset 2018-06-18 21:21:55 +02:00