]> git.ipfire.org Git - thirdparty/linux.git/commit
irqchip/riscv-imsic: Add a CPU pm notifier to restore the IMSIC on exit
authorNick Hu <nick.hu@sifive.com>
Tue, 2 Dec 2025 06:07:40 +0000 (14:07 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 15 Dec 2025 21:44:33 +0000 (22:44 +0100)
commitf48b4bd0915bf61ac12b8c65c7939ebd03bc8abf
tree3490120214044bf9235581a18affd44d6b1fdeaf
parent97232dc43e83987e2c5fc2fb875b31c745ac9c01
irqchip/riscv-imsic: Add a CPU pm notifier to restore the IMSIC on exit

The IMSIC might be reset when the system enters a low power state, but on
exit nothing restores the registers, which prevents interrupt delivery.

Solve this by registering a CPU power management notifier, which restores
the IMSIC on exit.

Signed-off-by: Nick Hu <nick.hu@sifive.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Yong-Xuan Wang <yongxuan.wang@sifive.com>
Reviewed-by: Cyan Yang <cyan.yang@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Nutty Liu <liujingqi@lanxincomputing.com>
Link: https://patch.msgid.link/20251202-preserve-aplic-imsic-v3-1-1844fbf1fe92@sifive.com
drivers/irqchip/irq-riscv-imsic-early.c