public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/3] riscv: interrupt-controller: Add T-HEAD C900 ACLINT SSWI
@ 2024-10-31  6:08 Inochi Amaoto
  2024-10-31  6:08 ` [PATCH v5 1/3] dt-bindings: interrupt-controller: Add Sophgo SG2044 " Inochi Amaoto
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Inochi Amaoto @ 2024-10-31  6:08 UTC (permalink / raw)
  To: Chen Wang, Thomas Gleixner, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	Peter Zijlstra, Inochi Amaoto, Guo Ren, Lad Prabhakar,
	Yangyu Chen, Anup Patel, Hal Feng, Geert Uytterhoeven
  Cc: Yixun Lan, Longbin Li, Inochi Amaoto, linux-kernel, devicetree,
	linux-riscv

New version of T-HEAD C920[1] implement a fully featured ACLINT device
(This core is used by Sophgo SG2044). This ACLINT device provides a
SSWI field to support fast S-mode IPI. This SSWI device is like the
MSWI device in CLINT/ACLINT, but for S-mode.

Add full support for T-HEAD C900 SSWI device.

[1] https://www.xrvm.com/product/xuantie/C920

Changed from v1:
1. patch 2: use computed reg offset to avoid uncessary reg additions
   when setting/clearing irq.
2. patch 2: fix mulitple format issues and improve some comments.
3. patch 2: disable cpu irq when CPU is stopped.

Changed from v2:
1. patch 2: add SXSTATUS.CLINTEE check for T-HEAD cores.
2. patch 2: add select GENERIC_IRQ_IPI_MUX in Kconfig

Changed from v3:
1. patch 2: add SMP depends in Kconfig

Changed from v4:
1. patch 1/2: update the description to mark the device is T-HEAD specific

Inochi Amaoto (3):
  dt-bindings: interrupt-controller: Add Sophgo SG2044 ACLINT SSWI
  irqchip: add T-HEAD C900 ACLINT SSWI driver
  riscv: defconfig: Enable T-HEAD C900 ACLINT SSWI drivers

 .../thead,c900-aclint-sswi.yaml               |  58 ++++++
 arch/riscv/configs/defconfig                  |   1 +
 drivers/irqchip/Kconfig                       |  12 ++
 drivers/irqchip/Makefile                      |   1 +
 drivers/irqchip/irq-thead-c900-aclint-sswi.c  | 176 ++++++++++++++++++
 include/linux/cpuhotplug.h                    |   1 +
 6 files changed, 249 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/thead,c900-aclint-sswi.yaml
 create mode 100644 drivers/irqchip/irq-thead-c900-aclint-sswi.c

--
2.47.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-12-11 22:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-31  6:08 [PATCH v5 0/3] riscv: interrupt-controller: Add T-HEAD C900 ACLINT SSWI Inochi Amaoto
2024-10-31  6:08 ` [PATCH v5 1/3] dt-bindings: interrupt-controller: Add Sophgo SG2044 " Inochi Amaoto
2024-10-31  6:14   ` Inochi Amaoto
2024-10-31 12:38     ` Conor Dooley
2024-10-31 13:10       ` Thomas Gleixner
2024-10-31 23:13         ` Inochi Amaoto
2024-11-06 23:32   ` [tip: irq/core] dt-bindings: interrupt-controller: Add T-HEAD C900 ACLINT SSWI device tip-bot2 for Inochi Amaoto
2024-10-31  6:08 ` [PATCH v5 2/3] irqchip: add T-HEAD C900 ACLINT SSWI driver Inochi Amaoto
2024-11-06 23:32   ` [tip: irq/core] irqchip: Add " tip-bot2 for Inochi Amaoto
2024-10-31  6:08 ` [PATCH v5 3/3] riscv: defconfig: Enable T-HEAD C900 ACLINT SSWI drivers Inochi Amaoto
2024-11-06 23:32   ` [tip: irq/core] " tip-bot2 for Inochi Amaoto
2024-12-11 22:32 ` [PATCH v5 0/3] riscv: interrupt-controller: Add T-HEAD C900 ACLINT SSWI patchwork-bot+linux-riscv

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox