2
0

0003-v5.6-ARM-dts-qcom-Add-nodes-for-SMP-boot-in-IPQ40xx.patch 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. From 5e4548922009870a38bcf1d887317676d4e08f54 Mon Sep 17 00:00:00 2001
  2. From: Damir Franusic <[email protected]>
  3. Date: Thu, 21 Nov 2019 16:29:02 +0100
  4. Subject: [PATCH] ARM: dts: qcom: Add nodes for SMP boot in IPQ40xx
  5. Add missing nodes and properties to enable SMP
  6. support on IPQ40xx devices.
  7. Booting without "saw_l2" node:
  8. [ 0.001400] CPU: Testing write buffer coherency: ok
  9. [ 0.001856] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
  10. [ 0.060163] Setting up static identity map for 0x80300000 - 0x80300060
  11. [ 0.080140] rcu: Hierarchical SRCU implementation.
  12. [ 0.120258] smp: Bringing up secondary CPUs ...
  13. [ 0.200540] CPU1: failed to boot: -19
  14. [ 0.280689] CPU2: failed to boot: -19
  15. [ 0.360874] CPU3: failed to boot: -19
  16. [ 0.360966] smp: Brought up 1 node, 1 CPU
  17. [ 0.360979] SMP: Total of 1 processors activated (96.00 BogoMIPS).
  18. [ 0.360988] CPU: All CPU(s) started in SVC mode.
  19. Then, booting with "saw_l2" node present (this patch applied):
  20. [ 0.001450] CPU: Testing write buffer coherency: ok
  21. [ 0.001904] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
  22. [ 0.060161] Setting up static identity map for 0x80300000 - 0x80300060
  23. [ 0.080137] rcu: Hierarchical SRCU implementation.
  24. [ 0.120252] smp: Bringing up secondary CPUs ...
  25. [ 0.200958] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
  26. [ 0.281091] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
  27. [ 0.361264] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
  28. [ 0.361430] smp: Brought up 1 node, 4 CPUs
  29. [ 0.361460] SMP: Total of 4 processors activated (384.00 BogoMIPS).
  30. [ 0.361469] CPU: All CPU(s) started in SVC mode.
  31. Signed-off-by: Damir Franusic <[email protected]>
  32. Cc: Luka Perkov <[email protected]>
  33. Cc: Robert Marko <[email protected]>
  34. Cc: Andy Gross <[email protected]>
  35. Cc: Rob Herring <[email protected]>
  36. Cc: [email protected]
  37. Link: https://lore.kernel.org/r/[email protected]
  38. Signed-off-by: Bjorn Andersson <[email protected]>
  39. ---
  40. arch/arm/boot/dts/qcom-ipq4019.dtsi | 7 +++++++
  41. 1 file changed, 7 insertions(+)
  42. --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi
  43. +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi
  44. @@ -102,6 +102,7 @@
  45. L2: l2-cache {
  46. compatible = "cache";
  47. cache-level = <2>;
  48. + qcom,saw = <&saw_l2>;
  49. };
  50. };
  51. @@ -353,6 +354,12 @@
  52. regulator;
  53. };
  54. + saw_l2: regulator@b012000 {
  55. + compatible = "qcom,saw2";
  56. + reg = <0xb012000 0x1000>;
  57. + regulator;
  58. + };
  59. +
  60. blsp1_uart1: serial@78af000 {
  61. compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
  62. reg = <0x78af000 0x200>;