Skip to contentSkip to conversation

irq/urgent for 5.17-rc4

GIT PULL Merged Thomas Gleixner 2 participants 2 messages Feb 13, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

Linus,

please pull the latest irq/urgent branch from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-2022-02-13

up to: 1e34064b6055: Merge tag 'irqchip-fixes-5.17-2' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms into irq/urgent

Interrupt chip driver fixes:

- Don't install an hotplug notifier for GICV3-ITS on systems which do not need it to prevent a warning in the notifier about inconsistent state

- Add the missing device tree matching for the T-HEAD PLIC variant so the related SoC is properly supported.

Thanks,

tglx

------------------>
Guo Ren (2):
dt-bindings: update riscv plic compatible string irqchip/sifive-plic: Add missing thead,c900-plic match string

Marc Zyngier (1):
irqchip/gic-v3-its: Skip HP notifier when no ITS is registered

 .../interrupt-controller/sifive,plic-1.0.0.yaml     | 21 +++++++++++++++------
 drivers/irqchip/irq-gic-v3-its.c                    |  3 +++
 drivers/irqchip/irq-sifive-plic.c                   |  1 +
 3 files changed, 19 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml +15 -6
index 0dfa6b26e099..27092c6a86c4 100644
@@ -35,6 +35,10 @@ description:
   contains a specific memory layout, which is documented in chapter 8 of the
   SiFive U5 Coreplex Series Manual <https://static.dev.sifive.com/U54-MC-RVCoreIP.pdf>.
 
+  The thead,c900-plic is different from sifive,plic-1.0.0 in opensbi, the
+  T-HEAD PLIC implementation requires setting a delegation bit to allow access
+  from S-mode. So add thead,c900-plic to distinguish them.
+
 maintainers:
   - Sagar Kadam <[email protected]>
   - Paul Walmsley  <[email protected]>
@@ -42,12 +46,17 @@ maintainers:
 
 properties:
   compatible:
-    items:
-      - enum:
-          - sifive,fu540-c000-plic
-          - starfive,jh7100-plic
-          - canaan,k210-plic
-      - const: sifive,plic-1.0.0
+    oneOf:
+      - items:
+          - enum:
+              - sifive,fu540-c000-plic
+              - starfive,jh7100-plic
+              - canaan,k210-plic
+          - const: sifive,plic-1.0.0
+      - items:
+          - enum:
+              - allwinner,sun20i-d1-plic
+          - const: thead,c900-plic
 
   reg:
     maxItems: 1
drivers/irqchip/irq-gic-v3-its.c +3 -0
index 9e93ff2b6375..cd772973114a 100644
@@ -5517,6 +5517,9 @@ int __init its_lpi_memreserve_init(void)
 	if (!efi_enabled(EFI_CONFIG_TABLES))
 		return 0;
 
+	if (list_empty(&its_nodes))
+		return 0;
+
 	gic_rdists->cpuhp_memreserve_state = CPUHP_INVALID;
 	state = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN,
 				  "irqchip/arm/gicv3/memreserve:online",
drivers/irqchip/irq-sifive-plic.c +1 -0
index 259065d271ef..09cc98266d30 100644
@@ -398,3 +398,4 @@ static int __init plic_init(struct device_node *node,
 
 IRQCHIP_DECLARE(sifive_plic, "sifive,plic-1.0.0", plic_init);
 IRQCHIP_DECLARE(riscv_plic0, "riscv,plic0", plic_init); /* for legacy systems */
+IRQCHIP_DECLARE(thead_c900_plic, "thead,c900-plic", plic_init); /* for firmware driver */
merge bot Merged
#1 lore raw
The pull request you sent on Sun, 13 Feb 2022 14:35:15 +0100 (CET):

The pull request you sent on Sun, 13 Feb 2022 14:35:15 +0100 (CET):

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-2022-02-13

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/c5d714aa6dce262482992cccc0ab01383294f7ac

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html