]> www.infradead.org Git - users/jedix/linux-maple.git/commit
irqchip/apple-aic: Add a new "Global fast IPIs only" feature level
authorNick Chan <towinchenmi@gmail.com>
Sun, 1 Sep 2024 03:40:06 +0000 (11:40 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 4 Sep 2024 18:43:30 +0000 (20:43 +0200)
commita845342e6e5fb4937564f93cc88e00c732286fe3
tree5ba78059b992e6148e451a347749399803092c76
parent5527b06c96715518bc58d1ebb29efc3653f66c5e
irqchip/apple-aic: Add a new "Global fast IPIs only" feature level

Starting with the A11 (T8015) SoC, Apple began using arm64 sysregs for
fast IPIs. However, on A11, there is no such things as "Local" fast IPIs,
as the SYS_IMP_APL_IPI_RR_LOCAL_EL1 register does not seem to exist.

Add a new feature level, used by the compatible "apple,t8015-aic",
controlled by a static branch key named use_local_fast_ipi. When
use_fast_ipi is true and use_local_fast_ipi is false, fast IPIs are used
but all IPIs goes through the register SYS_IMP_APL_IPI_RR_GLOBAL_EL1, as
"global" IPIs.

Signed-off-by: Nick Chan <towinchenmi@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Sven Peter <sven@svenpeter.dev>
Link: https://lore.kernel.org/all/20240901034143.12731-4-towinchenmi@gmail.com
drivers/irqchip/irq-apple-aic.c