Skip to content

powerpc/xive: Export XIVE IPI information for online-only processors.

Steve Best requested to merge sfbest/centos-stream-9:20382421 into main

Bugzilla: http://bugzilla.redhat.com/2038242

Build Info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=42660563

Tested: I did sanity boot testing on power 9 system (ibm-p9z-06-lp11).

Upstream Status: git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git

commit 3152d63d4baeec7444a45bafb8f62e431410da1d Author: Sachin Sant sachinp@linux.ibm.com Date: Thu Jan 6 16:33:53 2022 +0530

powerpc/xive: Export XIVE IPI information for online-only processors.

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>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/164146703333.19039.10920919226094771665.sendpatchset@MacBook-Pro.local

Signed-off-by: Steve Best sbest@redhat.com

Edited by Steve Best

Merge request reports