linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/xics: Adjust interrupt receive priority for offline cpus
@ 2017-02-23 10:54 Vaidyanathan Srinivasan
  2017-02-24  0:22 ` Michael Neuling
  2017-02-24  0:35 ` Balbir Singh
  0 siblings, 2 replies; 3+ messages in thread
From: Vaidyanathan Srinivasan @ 2017-02-23 10:54 UTC (permalink / raw)
  To: Michael Neuling; +Cc: linuxppc-dev

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.

Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
---
 arch/powerpc/sysdev/xics/xics-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/sysdev/xics/xics-common.c b/arch/powerpc/sysdev/xics/xics-common.c
index 69d858e..c674a9d 100644
--- a/arch/powerpc/sysdev/xics/xics-common.c
+++ b/arch/powerpc/sysdev/xics/xics-common.c
@@ -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;
-- 
2.9.3

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

* Re: [PATCH] powerpc/xics: Adjust interrupt receive priority for offline cpus
  2017-02-23 10:54 [PATCH] powerpc/xics: Adjust interrupt receive priority for offline cpus Vaidyanathan Srinivasan
@ 2017-02-24  0:22 ` Michael Neuling
  2017-02-24  0:35 ` Balbir Singh
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Neuling @ 2017-02-24  0:22 UTC (permalink / raw)
  To: Vaidyanathan Srinivasan; +Cc: linuxppc-dev

On Thu, 2017-02-23 at 16:24 +0530, Vaidyanathan Srinivasan wrote:
> 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.
>=20
> LOWEST_PRIORITY would 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


> Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
> ---
> =C2=A0arch/powerpc/sysdev/xics/xics-common.c | 2 +-
> =C2=A01 file changed, 1 insertion(+), 1 deletion(-)
>=20
> diff --git a/arch/powerpc/sysdev/xics/xics-common.c
> b/arch/powerpc/sysdev/xics/xics-common.c
> index 69d858e..c674a9d 100644
> --- a/arch/powerpc/sysdev/xics/xics-common.c
> +++ b/arch/powerpc/sysdev/xics/xics-common.c
> @@ -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... */
> -	icp_ops->set_priority(DEFAULT_PRIORITY);
> +	icp_ops->set_priority(LOWEST_PRIORITY);
> =C2=A0
> =C2=A0	for_each_irq_desc(virq, desc) {
> =C2=A0		struct irq_chip *chip;

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

* Re: [PATCH] powerpc/xics: Adjust interrupt receive priority for offline cpus
  2017-02-23 10:54 [PATCH] powerpc/xics: Adjust interrupt receive priority for offline cpus Vaidyanathan Srinivasan
  2017-02-24  0:22 ` Michael Neuling
@ 2017-02-24  0:35 ` Balbir Singh
  1 sibling, 0 replies; 3+ messages in thread
From: Balbir Singh @ 2017-02-24  0:35 UTC (permalink / raw)
  To: Vaidyanathan Srinivasan
  Cc: Michael Neuling, open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)

On Thu, Feb 23, 2017 at 9:54 PM, Vaidyanathan Srinivasan
<svaidy@linux.vnet.ibm.com> wrote:
> 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.
>
> Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
> ---
>  arch/powerpc/sysdev/xics/xics-common.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/powerpc/sysdev/xics/xics-common.c b/arch/powerpc/sysdev/xics/xics-common.c
> index 69d858e..c674a9d 100644
> --- a/arch/powerpc/sysdev/xics/xics-common.c
> +++ b/arch/powerpc/sysdev/xics/xics-common.c
> @@ -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 using
icp_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.

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

end of thread, other threads:[~2017-02-24  0:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-23 10:54 [PATCH] powerpc/xics: Adjust interrupt receive priority for offline cpus Vaidyanathan Srinivasan
2017-02-24  0:22 ` Michael Neuling
2017-02-24  0:35 ` Balbir Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).