]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
powerpc/xive: Add warning if target CPU not found
authorShrikanth Hegde <sshegde@linux.ibm.com>
Mon, 27 Apr 2026 04:47:15 +0000 (10:17 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Tue, 2 Jun 2026 05:54:32 +0000 (11:24 +0530)
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 <sshegde@linux.ibm.com>
Reviewed-by: Yury Norov <ynorov@gmail.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260427044715.559137-5-sshegde@linux.ibm.com
arch/powerpc/sysdev/xive/common.c

index c120be73d149fb2660478021b208eceecd847f1e..dadd1f46ec9390d72548610d71ec3851e2c3de51 100644 (file)
@@ -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;
 }