[PATCH 0/2] riscv-imsic/aplic: Save and restore the registers

Nick Hu nick.hu at sifive.com
Tue Jul 8 19:55:14 PDT 2025


Since the APLIC and IMSIC may be powered down when the CPUs enter a deep
sleep state, it is necessary to implement save and restore functions to
ensure their states are correctly preserved and restored.

Nick Hu (2):
  irqchip/riscv-imsic: Restore the IMSIC register
  irqchip/riscv-aplic: Add save and restore functions

 drivers/irqchip/irq-riscv-aplic-direct.c |  14 ++-
 drivers/irqchip/irq-riscv-aplic-main.c   | 143 +++++++++++++++++++++++
 drivers/irqchip/irq-riscv-aplic-main.h   |  12 ++
 drivers/irqchip/irq-riscv-aplic-msi.c    |   3 +-
 drivers/irqchip/irq-riscv-imsic-early.c  |  40 +++++--
 5 files changed, 203 insertions(+), 9 deletions(-)

-- 
2.17.1




More information about the linux-riscv mailing list