All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] irqchip: gic-v3: Handle failure case of CPU enters low power state
@ 2022-12-22 18:35 Yogesh Lal
  2022-12-27 10:36 ` Pavan Kondeti
  0 siblings, 1 reply; 4+ messages in thread
From: Yogesh Lal @ 2022-12-22 18:35 UTC (permalink / raw)
  To: tglx, maz, linux-kernel; +Cc: linux-arm-msm, Yogesh Lal

When CPU enter in low power mode it disable the redistributor and
Group1 interrupts. And re-initialise the system registers on wakeup.

But in case of failure to enter low power mode need to enable
the redistributor and Group1 interrupts.

Signed-off-by: Yogesh Lal <quic_ylal@quicinc.com>
---
 drivers/irqchip/irq-gic-v3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c
index 997104d..4904f00 100644
--- a/drivers/irqchip/irq-gic-v3.c
+++ b/drivers/irqchip/irq-gic-v3.c
@@ -1376,7 +1376,7 @@ static int gic_retrigger(struct irq_data *data)
 static int gic_cpu_pm_notifier(struct notifier_block *self,
 			       unsigned long cmd, void *v)
 {
-	if (cmd == CPU_PM_EXIT) {
+	if (cmd == CPU_PM_EXIT || cmd == CPU_PM_ENTER_FAILED) {
 		if (gic_dist_security_disabled())
 			gic_enable_redist(true);
 		gic_cpu_sys_reg_init();
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-28 11:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-22 18:35 [PATCH] irqchip: gic-v3: Handle failure case of CPU enters low power state Yogesh Lal
2022-12-27 10:36 ` Pavan Kondeti
2022-12-28 11:14   ` Marc Zyngier
2022-12-28 11:20     ` Pavan Kondeti

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.