]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/gic-v3-its: Add ability to save/restore ITS state
authorDerek Basehore <dbasehore@chromium.org>
Thu, 1 Mar 2018 05:48:18 +0000 (21:48 -0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 14 Mar 2018 11:11:29 +0000 (11:11 +0000)
commit694c84b24a4db502c10ed30e3b738a1b77048579
tree947b98b992ecb190e62b4b0c06bb1fbfd4ea6572
parent13967ac95744d6e2b4e6f9395e1eb2d58db75c40
irqchip/gic-v3-its: Add ability to save/restore ITS state

Some platforms power off GIC logic in suspend, so we need to
save/restore state. The distributor and redistributor registers need
to be handled in firmware code due to access permissions on those
registers, but the ITS registers can be restored in the kernel.

We limit this to systems where the ITS collections are implemented
in HW (as opposed to being backed by memory tables), as they are
the only ones that cannot be dealt with by the firmware.

Signed-off-by: Derek Basehore <dbasehore@chromium.org>
[maz: fixed changelog, dropped DT property, limited to HCC being >0]
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-gic-v3-its.c
include/linux/irqchip/arm-gic-v3.h