1. 10 3月, 2022 1 次提交
    • P
      arm64: dts: marvell: armada-37xx: Remap IO space to bus address 0x0 · a1cc1697
      Pali Rohár 提交于
      Legacy and old PCI I/O based cards do not support 32-bit I/O addressing.
      
      Since commit 64f160e1 ("PCI: aardvark: Configure PCIe resources from
      'ranges' DT property") kernel can set different PCIe address on CPU and
      different on the bus for the one A37xx address mapping without any firmware
      support in case the bus address does not conflict with other A37xx mapping.
      
      So remap I/O space to the bus address 0x0 to enable support for old legacy
      I/O port based cards which have hardcoded I/O ports in low address space.
      
      Note that DDR on A37xx is mapped to bus address 0x0. And mapping of I/O
      space can be set to address 0x0 too because MEM space and I/O space are
      separate and so do not conflict.
      
      Remapping IO space on Turris Mox to different address is not possible to
      due bootloader bug.
      Signed-off-by: NPali Rohár <pali@kernel.org>
      Reported-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: 76f6386b ("arm64: dts: marvell: Add Aardvark PCIe support for Armada 3700")
      Cc: stable@vger.kernel.org # 64f160e1 ("PCI: aardvark: Configure PCIe resources from 'ranges' DT property")
      Cc: stable@vger.kernel.org # 514ef1e6 ("arm64: dts: marvell: armada-37xx: Extend PCIe MEM space")
      Reviewed-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NGregory CLEMENT <gregory.clement@bootlin.com>
      a1cc1697
  2. 18 12月, 2021 1 次提交
  3. 18 8月, 2021 1 次提交
    • P
      arm64: dts: marvell: armada-37xx: Extend PCIe MEM space · 514ef1e6
      Pali Rohár 提交于
      Current PCIe MEM space of size 16 MB is not enough for some combination
      of PCIe cards (e.g. NVMe disk together with ath11k wifi card). ARM Trusted
      Firmware for Armada 3700 platform already assigns 128 MB for PCIe window,
      so extend PCIe MEM space to the end of 128 MB PCIe window which allows to
      allocate more PCIe BARs for more PCIe cards.
      
      Without this change some combination of PCIe cards cannot be used and
      kernel show error messages in dmesg during initialization:
      
          pci 0000:00:00.0: BAR 8: no space for [mem size 0x01800000]
          pci 0000:00:00.0: BAR 8: failed to assign [mem size 0x01800000]
          pci 0000:00:00.0: BAR 6: assigned [mem 0xe8000000-0xe80007ff pref]
          pci 0000:01:00.0: BAR 8: no space for [mem size 0x01800000]
          pci 0000:01:00.0: BAR 8: failed to assign [mem size 0x01800000]
          pci 0000:02:03.0: BAR 8: no space for [mem size 0x01000000]
          pci 0000:02:03.0: BAR 8: failed to assign [mem size 0x01000000]
          pci 0000:02:07.0: BAR 8: no space for [mem size 0x00100000]
          pci 0000:02:07.0: BAR 8: failed to assign [mem size 0x00100000]
          pci 0000:03:00.0: BAR 0: no space for [mem size 0x01000000 64bit]
          pci 0000:03:00.0: BAR 0: failed to assign [mem size 0x01000000 64bit]
      
      Due to bugs in U-Boot port for Turris Mox, the second range in Turris Mox
      kernel DTS file for PCIe must start at 16 MB offset. Otherwise U-Boot
      crashes during loading of kernel DTB file. This bug is present only in
      U-Boot code for Turris Mox and therefore other Armada 3700 devices are not
      affected by this bug. Bug is fixed in U-Boot version 2021.07.
      
      To not break booting new kernels on existing versions of U-Boot on Turris
      Mox, use first 16 MB range for IO and second range with rest of PCIe window
      for MEM.
      Signed-off-by: NPali Rohár <pali@kernel.org>
      Fixes: 76f6386b ("arm64: dts: marvell: Add Aardvark PCIe support for Armada 3700")
      Signed-off-by: NGregory CLEMENT <gregory.clement@bootlin.com>
      514ef1e6
  4. 25 6月, 2021 1 次提交
  5. 17 6月, 2021 1 次提交
    • P
      arm64: dts: marvell: armada-37xx: move firmware node to generic dtsi file · 3a52a489
      Pali Rohár 提交于
      Move the turris-mox-rwtm firmware node from Turris MOX' device tree into
      the generic armada-37xx.dtsi file and use the generic compatible string
      'marvell,armada-3700-rwtm-firmware' instead of the current one.
      
      Turris MOX DTS file contains also old compatible string for backward
      compatibility.
      
      The Turris MOX rWTM firmware can be used on any Armada 37xx device,
      giving them access to the rWTM hardware random number generator, which
      is otherwise unavailable.
      
      This change allows Linux to load the turris-mox-rwtm.ko module on these
      boards.
      
      Tested on ESPRESSObin v5 with both default Marvell WTMI firmware and
      CZ.NIC's firmware. With default WTMI firmware the turris-mox-rwtm fails
      to probe, while with CZ.NIC's firmware it registers the HW random number
      generator.
      Signed-off-by: NPali Rohár <pali@kernel.org>
      Signed-off-by: NMarek Behún <kabel@kernel.org>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NGregory CLEMENT <gregory.clement@bootlin.com>
      3a52a489
  6. 03 4月, 2021 1 次提交
  7. 29 1月, 2021 1 次提交
  8. 27 8月, 2020 1 次提交
  9. 17 5月, 2020 3 次提交
  10. 31 8月, 2019 1 次提交
  11. 27 8月, 2019 1 次提交
  12. 09 2月, 2019 3 次提交
  13. 06 2月, 2019 5 次提交
  14. 31 1月, 2019 1 次提交
  15. 01 12月, 2018 1 次提交
  16. 02 10月, 2018 1 次提交
  17. 28 9月, 2018 1 次提交
  18. 13 7月, 2018 1 次提交
  19. 29 6月, 2018 2 次提交
  20. 19 5月, 2018 1 次提交
  21. 14 2月, 2018 1 次提交
  22. 06 1月, 2018 1 次提交
  23. 18 12月, 2017 1 次提交
  24. 30 10月, 2017 2 次提交
  25. 20 9月, 2017 1 次提交
  26. 19 9月, 2017 1 次提交
  27. 02 8月, 2017 4 次提交