]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/gic-v3-its: Fix reprogramming of redistributors on CPU hotplug
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 22 Jun 2018 09:52:54 +0000 (10:52 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 22 Jun 2018 12:22:02 +0000 (14:22 +0200)
commit7d92cba4403082d5194e0ed7798a7e66d90ef5ba
tree1c4ff0204266f6094dca4fa1cfd671728266cd10
parent0bf4d570e7149c78b183dbf40c9339dedd7bb1ec
irqchip/gic-v3-its: Fix reprogramming of redistributors on CPU hotplug

Enabling LPIs was made a lot stricter recently, by checking that they are
disabled before enabling them. By doing so, the CPU hotplug case was missed
altogether, which leaves LPIs enabled on hotplug off (expecting the CPU to
eventually come back), and won't write a different value anyway on hotplug
on.

So skip that check if that particular case is detected

Fixes: 5e763b1c2a6f ("irqchip/gic-v3: Ensure GICR_CTLR.EnableLPI=0 is observed before enabling")
Reported-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Sumit Garg <sumit.garg@linaro.org>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lkml.kernel.org/r/20180622095254.5906-8-marc.zyngier@arm.com
drivers/irqchip/irq-gic-v3-its.c