aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorSam Ravnborg <[email protected]>2024-03-30 10:57:45 +0100
committerAndreas Larsson <[email protected]>2024-04-22 15:33:07 +0200
commit98937707fea8375e8acea0aaa0b68a956dd52719 (patch)
treec432e562284ce0471e6220d5093a5bad5b52caea /include/linux/fpga/fpga-mgr.h
parent95706e717c4f55ca62025c151451ccc28863d085 (diff)
sparc64: Fix number of online CPUs
Nick Bowler reported: When using newer kernels on my Ultra 60 with dual 450MHz UltraSPARC-II CPUs, I noticed that only CPU 0 comes up, while older kernels (including 4.7) are working fine with both CPUs. I bisected the failure to this commit: 9b2f753ec23710aa32c0d837d2499db92fe9115b is the first bad commit commit 9b2f753ec23710aa32c0d837d2499db92fe9115b Author: Atish Patra <[email protected]> Date: Thu Sep 15 14:54:40 2016 -0600 sparc64: Fix cpu_possible_mask if nr_cpus is set This is a small change that reverts very easily on top of 5.18: there is just one trivial conflict. Once reverted, both CPUs work again. Maybe this is related to the fact that the CPUs on this system are numbered CPU0 and CPU2 (there is no CPU1)? The current code that adjust cpu_possible based on nr_cpu_ids do not take into account that CPU's may not come one after each other. Move the chech to the function that setup the cpu_possible mask so there is no need to adjust it later. Signed-off-by: Sam Ravnborg <[email protected]> Fixes: 9b2f753ec237 ("sparc64: Fix cpu_possible_mask if nr_cpus is set") Reported-by: Nick Bowler <[email protected]> Tested-by: Nick Bowler <[email protected]> Link: https://lore.kernel.org/sparclinux/[email protected]/ Link: https://lore.kernel.org/all/CADyTPEwt=ZNams+1bpMB1F9w_vUdPsGCt92DBQxxq_VtaLoTdw@mail.gmail.com/ Cc: [email protected] # v4.8+ Cc: Andreas Larsson <[email protected]> Cc: David S. Miller <[email protected]> Cc: Atish Patra <[email protected]> Cc: Bob Picco <[email protected]> Cc: Vijay Kumar <[email protected]> Cc: David S. Miller <[email protected]> Reviewed-by: Andreas Larsson <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andreas Larsson <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions