2
0

104-v6.0-06-ARM-dts-qcom-ipq8064-reduce-pci-IO-size-to-64K.patch 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. From 8fafb7e5c041814876266259e5e439f93571dcef Mon Sep 17 00:00:00 2001
  2. From: Christian Marangi <[email protected]>
  3. Date: Thu, 7 Jul 2022 03:09:40 +0200
  4. Subject: [PATCH 6/8] ARM: dts: qcom: ipq8064: reduce pci IO size to 64K
  5. The current value for pci IO is problematic for ath10k wifi card
  6. commonly connected to ipq8064 SoC.
  7. The current value is probably a typo and is actually uncommon to find
  8. 1MB IO space even on a x86 arch. Also with recent changes to the pci
  9. driver, pci1 and pci2 now fails to function as any connected device
  10. fails any reg read/write. Reduce this to 64K as it should be more than
  11. enough and 3 * 64K of total IO space doesn't exceed the IO_SPACE_LIMIT
  12. hardcoded for the ARM arch.
  13. Signed-off-by: Christian Marangi <[email protected]>
  14. Tested-by: Jonathan McDowell <[email protected]>
  15. Signed-off-by: Bjorn Andersson <[email protected]>
  16. Link: https://lore.kernel.org/r/[email protected]
  17. ---
  18. arch/arm/boot/dts/qcom-ipq8064.dtsi | 6 +++---
  19. 1 file changed, 3 insertions(+), 3 deletions(-)
  20. --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
  21. +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
  22. @@ -885,7 +885,7 @@
  23. #address-cells = <3>;
  24. #size-cells = <2>;
  25. - ranges = <0x81000000 0 0x0fe00000 0x0fe00000 0 0x00100000 /* downstream I/O */
  26. + ranges = <0x81000000 0 0x0fe00000 0x0fe00000 0 0x00010000 /* downstream I/O */
  27. 0x82000000 0 0x08000000 0x08000000 0 0x07e00000>; /* non-prefetchable memory */
  28. interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
  29. @@ -936,7 +936,7 @@
  30. #address-cells = <3>;
  31. #size-cells = <2>;
  32. - ranges = <0x81000000 0 0x31e00000 0x31e00000 0 0x00100000 /* downstream I/O */
  33. + ranges = <0x81000000 0 0x31e00000 0x31e00000 0 0x00010000 /* downstream I/O */
  34. 0x82000000 0 0x2e000000 0x2e000000 0 0x03e00000>; /* non-prefetchable memory */
  35. interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
  36. @@ -987,7 +987,7 @@
  37. #address-cells = <3>;
  38. #size-cells = <2>;
  39. - ranges = <0x81000000 0 0x35e00000 0x35e00000 0 0x00100000 /* downstream I/O */
  40. + ranges = <0x81000000 0 0x35e00000 0x35e00000 0 0x00010000 /* downstream I/O */
  41. 0x82000000 0 0x32000000 0x32000000 0 0x03e00000>; /* non-prefetchable memory */
  42. interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;