All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] irqchip/irq-realtek-rtl: Add multicore support
@ 2026-06-04 13:06 Markus Stockhausen
  2026-06-04 13:06 ` [PATCH v2 1/2] irqchip/irq-realtek-rtl: Add/simplify register helpers Markus Stockhausen
  2026-06-04 13:06 ` [PATCH v2 2/2] irqchip/irq-realtek-rtl: Add multicore support Markus Stockhausen
  0 siblings, 2 replies; 6+ messages in thread
From: Markus Stockhausen @ 2026-06-04 13:06 UTC (permalink / raw)
  To: tglx, linux-kernel; +Cc: Markus Stockhausen

The Realtek Otto switch series consists of multiple devices.

- RTL838x: single core (Realtek proprietary IRQ controller)
- RTL839x: multi core (Realtek proprietary IRQ controller)
- RTL930x: multi core (Realtek proprietary IRQ controller)
- RTL931x: multi core (MIPS GIC controller)

The first three devices are supported by the irq-realtek-rtl
driver. Until now it only supports single core operation. So
the multi core devices cannot be driven in SMP mode.

Add multi core support to the driver.  

Remark: Device tree documentation already knows about this
feature [1]. But it never made it into the driver.

[1] https://elixir.bootlin.com/linux/v7.1-rc6/source/Documentation/devicetree/bindings/interrupt-controller/realtek,rtl-intc.yaml

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
---

v1 -> v2:
  - Replace IRQ with interrupt in commit messages
  - Use unsigned int for hw_irq and cpu
  - Convert raw_spin_lock_irqsave/restore() in mask/unmask functions
    to guard(raw_spinlock)()
  - Convert raw_spin_lock_irqsave/restore() in mapping function
    to guard(raw_spinlock_irqsave)()
  - Use loop scoped variable in realtek_rtl_of_init()
  - Drop mask calculation in realtek_ictl_unmask_irq(). The affinity
    setter already takes care of that. With this properly set,
    reading irq_data_get_effective_affinity_mask() is enough.
  - Fix style issues and adapt to maintainer tip handbook
v1: https://lore.kernel.org/all/20260512184646.1896480-1-markus.stockhausen@gmx.de/


Markus Stockhausen (2):
  irqchip/irq-realtek-rtl: Add/simplify register helpers
  irqchip/irq-realtek-rtl: Add multicore support

 drivers/irqchip/irq-realtek-rtl.c | 116 ++++++++++++++++++++----------
 1 file changed, 79 insertions(+), 37 deletions(-)

-- 
2.54.0


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

end of thread, other threads:[~2026-06-04 19:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-04 13:06 [PATCH v2 0/2] irqchip/irq-realtek-rtl: Add multicore support Markus Stockhausen
2026-06-04 13:06 ` [PATCH v2 1/2] irqchip/irq-realtek-rtl: Add/simplify register helpers Markus Stockhausen
2026-06-04 13:06 ` [PATCH v2 2/2] irqchip/irq-realtek-rtl: Add multicore support Markus Stockhausen
2026-06-04 15:58   ` Thomas Gleixner
2026-06-04 18:22     ` AW: " Markus Stockhausen
2026-06-04 19:06       ` Thomas Gleixner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.