powerpc/xics: Adjust interrupt receive priority for offline cpus
PATCH 1/1 powerpc/xics: Adjust interrupt receive priority for offline cpus
Offline CPUs need to receive IPIs through XIVE when they are in stop state and wakeup from that state.
Reduce interrupt receive priority in order to receive XIVE wakeup interrupts when in offline state.
LOWEST_PRIORITY would allow all interrupts to be delivered as wakeup events.
--- arch/powerpc/sysdev/xics/xics-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/sysdev/xics/xics-common.c +1 -1
@@ -199,7 +199,7 @@ void xics_migrate_irqs_away(void)xics_set_cpu_giq (xics_default_distrib_server,0 );/* Allow IPIs again... */ - icp_ops->set_priority (DEFAULT_PRIORITY ); + icp_ops->set_priority (LOWEST_PRIORITY );for_each_irq_desc (virq, desc) {struct irq_chip *chip;
Signature · 1 line
2.9.3
Quoted 8 lines · Vaidyanathan Srinivasan
Offline CPUs need to receive IPIs through XIVE when they are in stop state and wakeup from that state.
=20
Reduce interrupt receive priority in order to receive XIVE wakeup interrupts when in offline state.
=20LOWEST_PRIORITYwould allow all interrupts to be delivered as wakeup events.
This needs to be expanded to explain why "DEFAULT" doesn't work in this cas= e.
This also needs an explicit statement that "It fixes onlining of CPUs on POWER9". I'd even advocate for making that the patch subject.=20
Also if it's the right fix, it needs a cc:stable.
Mikey
Quoted 19 lines
Signed-off-by Vaidyanathan Srinivasan <[email protected]>---
=C2=A0arch/powerpc/sysdev/xics/xics-common.c | 2 +- =C2=A01 file changed, 1 insertion(+), 1 deletion(-) =20arch/powerpc/sysdev/xics/xics-common.c +0
-0@@ -199,7 +199,7 @@ void xics_migrate_irqs_away(void) =C2=A0 xics_set_cpu_giq(xics_default_distrib_server, 0);=C2=A0
=C2=A0 /* Allow IPIs again... */arch/powerpc/sysdev/xics/xics-common.c +1
-1- icp_ops->set_priority (DEFAULT_PRIORITY ); + icp_ops->set_priority (LOWEST_PRIORITY );=C2=A0
=C2=A0for_each_irq_desc(virq, desc){
=C2=A0 structirq_chip*chip;
Quoted 19 lines · Vaidyanathan Srinivasan
Offline CPUs need to receive IPIs through XIVE when they are in stop state and wakeup from that state.
Reduce interrupt receive priority in order to receive XIVE wakeup interrupts when in offline state.
LOWEST_PRIORITYwould allow all interrupts to be delivered as wakeup events.Signed-off-by Vaidyanathan Srinivasan <[email protected]>--- arch/powerpc/sysdev/xics/xics-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/powerpc/sysdev/xics/xics-common.c +0
-0
arch/powerpc/sysdev/xics/xics-common.c void xics_migrate_irqs_away(void) · line 203
Quoted 6 lines
arch/powerpc/sysdev/xics/xics-common.c +1
-1@@ -199,7 +199,7 @@ void xics_migrate_irqs_away(void)xics_set_cpu_giq (xics_default_distrib_server,0 );/* Allow IPIs again... */ - icp_ops->set_priority (DEFAULT_PRIORITY ); + icp_ops->set_priority (LOWEST_PRIORITY );
Aren't IPI's at higher priority than DEFAULT_PRIORITY? Like Mikey said I am not sure what
is broken with the current implementation? Is this true for all icp_ops? I presume you are usingicp_opal. I suspect you'll need to look at
1. XIVE to see if EMULATION_PRIO is the issue
2. Check if only icp_opal is impacted
Balbir Singh.