[PATCH v2 0/4] powerpc: A few misc cpumask changes

Shrikanth Hegde posted 4 patches 1 month, 3 weeks ago
arch/powerpc/kernel/irq.c             | 5 +----
arch/powerpc/kernel/setup-common.c    | 7 ++-----
arch/powerpc/mm/book3s64/hash_utils.c | 4 +---
arch/powerpc/perf/imc-pmu.c           | 6 ++----
arch/powerpc/sysdev/xive/common.c     | 1 +
5 files changed, 7 insertions(+), 16 deletions(-)
[PATCH v2 0/4] powerpc: A few misc cpumask changes
Posted by Shrikanth Hegde 1 month, 3 weeks ago
These are some miscellaneous code refactors around using cpumask
APIs. They are mainly aimed at code simplification.

Changes since v1:
- Dropped the changes done in xive_find_target_in_mask. Those changes are
  done by Yury Norov already.
- Collected the tags. Thanks to Yury Norov. 
- Added new patch to use cpumask_intersects instead of using
  temp_mask to achieve the same goal.
- Added new patch to print the warning when target CPU not found
  as discussed in [2]. This patch is kept separate since this adds
  a new warning in case of failure. So one may perceive it as functional
  change.

v1[1]: https://lore.kernel.org/all/20260327063129.127302-1-sshegde@linux.ibm.com/
[2]:   https://lore.kernel.org/all/20260319033647.881246-1-ynorov@nvidia.com/

Based on tip/master at: (dffc5753ba4c "Merge branch into tip/master: 'timers/clocksource'")

Shrikanth Hegde (4):
  powerpc: Use cpumask_next_wrap instead
  powerpc: Simplify cpumask api usage for cpuinfo display
  powerpc/perf: Use cpumask_intersects api for checking disable path
  powerpc/xive: Add warning if target CPU not found

 arch/powerpc/kernel/irq.c             | 5 +----
 arch/powerpc/kernel/setup-common.c    | 7 ++-----
 arch/powerpc/mm/book3s64/hash_utils.c | 4 +---
 arch/powerpc/perf/imc-pmu.c           | 6 ++----
 arch/powerpc/sysdev/xive/common.c     | 1 +
 5 files changed, 7 insertions(+), 16 deletions(-)

-- 
2.47.3
Re: [PATCH v2 0/4] powerpc: A few misc cpumask changes
Posted by Shrikanth Hegde 1 month ago
Hi Maddy, Christophe,


> Based on tip/master at: (dffc5753ba4c "Merge branch into tip/master: 'timers/clocksource'")
>

Gentle Ping,
Still applies cleanly to today's tip master.
  
> Shrikanth Hegde (4):
>    powerpc: Use cpumask_next_wrap instead
>    powerpc: Simplify cpumask api usage for cpuinfo display
>    powerpc/perf: Use cpumask_intersects api for checking disable path
>    powerpc/xive: Add warning if target CPU not found
> 
>   arch/powerpc/kernel/irq.c             | 5 +----
>   arch/powerpc/kernel/setup-common.c    | 7 ++-----
>   arch/powerpc/mm/book3s64/hash_utils.c | 4 +---
>   arch/powerpc/perf/imc-pmu.c           | 6 ++----
>   arch/powerpc/sysdev/xive/common.c     | 1 +
>   5 files changed, 7 insertions(+), 16 deletions(-)
> 


Do you have any comments on this? Do you want me to resend with yury's tag?
Re: [PATCH v2 0/4] powerpc: A few misc cpumask changes
Posted by Yury Norov 1 month, 2 weeks ago
On Mon, Apr 27, 2026 at 10:17:11AM +0530, Shrikanth Hegde wrote:
> These are some miscellaneous code refactors around using cpumask
> APIs. They are mainly aimed at code simplification.

Reviewed-by: Yury Norov <ynorov@gmail.com>
 
> Changes since v1:
> - Dropped the changes done in xive_find_target_in_mask. Those changes are
>   done by Yury Norov already.
> - Collected the tags. Thanks to Yury Norov. 
> - Added new patch to use cpumask_intersects instead of using
>   temp_mask to achieve the same goal.
> - Added new patch to print the warning when target CPU not found
>   as discussed in [2]. This patch is kept separate since this adds
>   a new warning in case of failure. So one may perceive it as functional
>   change.
> 
> v1[1]: https://lore.kernel.org/all/20260327063129.127302-1-sshegde@linux.ibm.com/
> [2]:   https://lore.kernel.org/all/20260319033647.881246-1-ynorov@nvidia.com/
> 
> Based on tip/master at: (dffc5753ba4c "Merge branch into tip/master: 'timers/clocksource'")
> 
> Shrikanth Hegde (4):
>   powerpc: Use cpumask_next_wrap instead
>   powerpc: Simplify cpumask api usage for cpuinfo display
>   powerpc/perf: Use cpumask_intersects api for checking disable path
>   powerpc/xive: Add warning if target CPU not found
> 
>  arch/powerpc/kernel/irq.c             | 5 +----
>  arch/powerpc/kernel/setup-common.c    | 7 ++-----
>  arch/powerpc/mm/book3s64/hash_utils.c | 4 +---
>  arch/powerpc/perf/imc-pmu.c           | 6 ++----
>  arch/powerpc/sysdev/xive/common.c     | 1 +
>  5 files changed, 7 insertions(+), 16 deletions(-)
> 
> -- 
> 2.47.3