From: Shrikanth Hegde Date: Mon, 27 Apr 2026 04:47:15 +0000 (+0530) Subject: powerpc/xive: Add warning if target CPU not found X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0521dbbc5710aca3b3d189747781761732289623;p=thirdparty%2Fkernel%2Flinux.git powerpc/xive: Add warning if target CPU not found Add a warn_once to warn if the CPU target is not found. This could help to find about any such usecase. This is a very rare case, which either means mask was empty or atomic update failed for all online CPUs. So it is worth printing that path for potential fix. Signed-off-by: Shrikanth Hegde Reviewed-by: Yury Norov Signed-off-by: Madhavan Srinivasan Link: https://patch.msgid.link/20260427044715.559137-5-sshegde@linux.ibm.com --- diff --git a/arch/powerpc/sysdev/xive/common.c b/arch/powerpc/sysdev/xive/common.c index c120be73d149f..dadd1f46ec939 100644 --- a/arch/powerpc/sysdev/xive/common.c +++ b/arch/powerpc/sysdev/xive/common.c @@ -564,6 +564,7 @@ static int xive_find_target_in_mask(const struct cpumask *mask, return cpu; } + WARN_ONCE(1, "target CPU not found in mask: %*pbl\n", cpumask_pr_args(mask)); return -1; }