190-arm64-dts-mediatek-mt7622-fix-GICv2-range.patch 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. From patchwork Tue Apr 26 19:51:36 2022
  2. Content-Type: text/plain; charset="utf-8"
  3. MIME-Version: 1.0
  4. Content-Transfer-Encoding: 7bit
  5. X-Patchwork-Submitter: Daniel Golle <[email protected]>
  6. X-Patchwork-Id: 12827872
  7. Return-Path:
  8. <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org>
  9. X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
  10. aws-us-west-2-korg-lkml-1.web.codeaurora.org
  11. Received: from bombadil.infradead.org (bombadil.infradead.org
  12. [198.137.202.133])
  13. (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
  14. (No client certificate requested)
  15. by smtp.lore.kernel.org (Postfix) with ESMTPS id BACF3C433EF
  16. for <[email protected]>;
  17. Tue, 26 Apr 2022 19:53:05 +0000 (UTC)
  18. DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
  19. d=lists.infradead.org; s=bombadil.20210309; h=Sender:
  20. Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:
  21. List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To:
  22. From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:
  23. Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:
  24. List-Owner; bh=OWGSxvlKoyPWz6b629RNINucULo6oOdFssAIiJETWRg=; b=T0HEjee0FX3hlb
  25. x5jl7xLK5sKM0pkE2oRgwzthbFlNg8ST1j/2GkgcgT0S2Bi0vRfFxHeu/RKzS9RmiVnKJnPGL8ctg
  26. WoBLyO5i+NcmosGoy6MmoOjGTNhj/+3q3Z1jRLBSJ4ySSP22X77YeuJTmVzySPUllQhWvDhjMVCR9
  27. QBRmQdc6gCAg3IYGEbWwS2TG+UHveDCeZRWxMzrwI8UPadNCRFROwugmiQ3mdU41lHCTDpnlfuRJh
  28. o1igLKfMBLz+D8rFYvDh7FfkcKkY6lNoswA2HKUun1MEzgoyQKmITPnG2maX/BvJJuj/B3ZJShh4k
  29. AZHmXoQxq1mrsm2FxfnQ==;
  30. Received: from localhost ([::1] helo=bombadil.infradead.org)
  31. by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux))
  32. id 1njRE5-00G05D-9z; Tue, 26 Apr 2022 19:51:57 +0000
  33. Received: from fudo.makrotopia.org ([2a07:2ec0:3002::71])
  34. by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux))
  35. id 1njRE1-00G03h-9H; Tue, 26 Apr 2022 19:51:55 +0000
  36. Received: from local
  37. by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256)
  38. (Exim 4.94.2) (envelope-from <[email protected]>)
  39. id 1njRDu-0006aF-4F; Tue, 26 Apr 2022 21:51:46 +0200
  40. Date: Tue, 26 Apr 2022 20:51:36 +0100
  41. From: Daniel Golle <[email protected]>
  42. To: [email protected], [email protected],
  43. [email protected], [email protected]
  44. Cc: Rob Herring <[email protected]>,
  45. Krzysztof Kozlowski <[email protected]>,
  46. Matthias Brugger <[email protected]>
  47. Subject: [PATCH] arm64: dts: mediatek: mt7622: fix GICv2 range
  48. Message-ID: <YmhNSLgp/[email protected]>
  49. MIME-Version: 1.0
  50. Content-Disposition: inline
  51. X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3
  52. X-CRM114-CacheID: sfid-20220426_125153_359242_EA3D452C
  53. X-CRM114-Status: GOOD ( 12.45 )
  54. X-BeenThere: [email protected]
  55. X-Mailman-Version: 2.1.34
  56. Precedence: list
  57. List-Id: <linux-arm-kernel.lists.infradead.org>
  58. List-Unsubscribe:
  59. <http://lists.infradead.org/mailman/options/linux-arm-kernel>,
  60. <mailto:[email protected]?subject=unsubscribe>
  61. List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/>
  62. List-Post: <mailto:[email protected]>
  63. List-Help: <mailto:[email protected]?subject=help>
  64. List-Subscribe:
  65. <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,
  66. <mailto:[email protected]?subject=subscribe>
  67. Sender: "linux-arm-kernel" <[email protected]>
  68. Errors-To:
  69. linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org
  70. With the current range specified for the CPU interface there is an
  71. error message at boot:
  72. GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
  73. Setting irqchip.gicv2_force_probe=1 in bootargs results in:
  74. GIC: Aliased GICv2 at 0x0000000010320000, trying to find the canonical range over 128kB
  75. GIC: Adjusting CPU interface base to 0x000000001032f000
  76. GIC: Using split EOI/Deactivate mode
  77. Using the adjusted CPU interface base and 8K size results in only the
  78. final line remaining and fully working system as well as /proc/interrupts
  79. showing additional IPI3,4,5,6:
  80. IPI3: 0 0 CPU stop (for crash dump) interrupts
  81. IPI4: 0 0 Timer broadcast interrupts
  82. IPI5: 0 0 IRQ work interrupts
  83. IPI6: 0 0 CPU wake-up interrupts
  84. Signed-off-by: Daniel Golle <[email protected]>
  85. ---
  86. arch/arm64/boot/dts/mediatek/mt7622.dtsi | 2 +-
  87. 1 file changed, 1 insertion(+), 1 deletion(-)
  88. --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
  89. +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
  90. @@ -347,7 +347,7 @@
  91. #interrupt-cells = <3>;
  92. interrupt-parent = <&gic>;
  93. reg = <0 0x10310000 0 0x1000>,
  94. - <0 0x10320000 0 0x1000>,
  95. + <0 0x1032f000 0 0x2000>,
  96. <0 0x10340000 0 0x2000>,
  97. <0 0x10360000 0 0x2000>;
  98. };