OSDN Git Service

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)
commitdba0bc7b76dcf80f82f5a7542605d4abc52808f2
tree947b98b992ecb190e62b4b0c06bb1fbfd4ea6572
parentf736d65df0acefcb50f7f7c6ad6070e7b954c79a
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