* [PATCH]powerpc/xive: Export XIVE IPI information for online-only processors.
@ 2022-01-06 11:03 Sachin Sant
2022-01-06 17:36 ` Cédric Le Goater
2022-02-15 5:26 ` Michael Ellerman
0 siblings, 2 replies; 3+ messages in thread
From: Sachin Sant @ 2022-01-06 11:03 UTC (permalink / raw)
To: linuxppc-dev; +Cc: clg, Sachin Sant
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 815 bytes --]
Cédric pointed out that XIVE IPI information exported via sysfs
(debug/powerpc/xive) display empty lines for processors which are
not online.
Switch to using for_each_online_cpu() so that information is
displayed for online-only processors.
Reported-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Sachin Sant <sachinp@linux.ibm.com>
---
diff -Naurp a/arch/p werpc/sysdev/xive/common.c b/arch/powerpc/sysdev/xive/common.c
--- a/arch/powerpc/sysdev/xive/common.c 2022-01-05 08:52:59.460118219 -0500
+++ b/arch/powerpc/sysdev/xive/common.c 2022-01-06 02:34:20.994513145 -0500
@@ -1791,7 +1791,7 @@ static int xive_ipi_debug_show(struct se
if (xive_ops->debug_show)
xive_ops->debug_show(m, private);
- for_each_possible_cpu(cpu)
+ for_each_online_cpu(cpu)
xive_debug_show_ipi(m, cpu);
return 0;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH]powerpc/xive: Export XIVE IPI information for online-only processors.
2022-01-06 11:03 [PATCH]powerpc/xive: Export XIVE IPI information for online-only processors Sachin Sant
@ 2022-01-06 17:36 ` Cédric Le Goater
2022-02-15 5:26 ` Michael Ellerman
1 sibling, 0 replies; 3+ messages in thread
From: Cédric Le Goater @ 2022-01-06 17:36 UTC (permalink / raw)
To: Sachin Sant, linuxppc-dev
On 1/6/22 12:03, Sachin Sant wrote:
> Cédric pointed out that XIVE IPI information exported via sysfs
> (debug/powerpc/xive) display empty lines for processors which are
> not online.
>
> Switch to using for_each_online_cpu() so that information is
> displayed for online-only processors.
>
> Reported-by: Cédric Le Goater <clg@kaod.org>
> Signed-off-by: Sachin Sant <sachinp@linux.ibm.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Thanks,
C.
> ---
> diff -Naurp a/arch/p werpc/sysdev/xive/common.c b/arch/powerpc/sysdev/xive/common.c
> --- a/arch/powerpc/sysdev/xive/common.c 2022-01-05 08:52:59.460118219 -0500
> +++ b/arch/powerpc/sysdev/xive/common.c 2022-01-06 02:34:20.994513145 -0500
> @@ -1791,7 +1791,7 @@ static int xive_ipi_debug_show(struct se
> if (xive_ops->debug_show)
> xive_ops->debug_show(m, private);
>
> - for_each_possible_cpu(cpu)
> + for_each_online_cpu(cpu)
> xive_debug_show_ipi(m, cpu);
> return 0;
> }
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH]powerpc/xive: Export XIVE IPI information for online-only processors.
2022-01-06 11:03 [PATCH]powerpc/xive: Export XIVE IPI information for online-only processors Sachin Sant
2022-01-06 17:36 ` Cédric Le Goater
@ 2022-02-15 5:26 ` Michael Ellerman
1 sibling, 0 replies; 3+ messages in thread
From: Michael Ellerman @ 2022-02-15 5:26 UTC (permalink / raw)
To: Sachin Sant, linuxppc-dev; +Cc: clg
On Thu, 06 Jan 2022 16:33:53 +0530, Sachin Sant wrote:
> Cédric pointed out that XIVE IPI information exported via sysfs
> (debug/powerpc/xive) display empty lines for processors which are
> not online.
>
> Switch to using for_each_online_cpu() so that information is
> displayed for online-only processors.
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/xive: Export XIVE IPI information for online-only processors.
https://git.kernel.org/powerpc/c/279d1a72c0f8021520f68ddb0a1346ff9ba1ea8c
cheers
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-02-15 5:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-06 11:03 [PATCH]powerpc/xive: Export XIVE IPI information for online-only processors Sachin Sant
2022-01-06 17:36 ` Cédric Le Goater
2022-02-15 5:26 ` Michael Ellerman
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).