aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorHuacai Chen <[email protected]>2024-06-18 08:13:36 +0000
committerThomas Gleixner <[email protected]>2024-06-23 18:04:14 +0000
commit6ef8eb5125722c241fd60d7b0c872d5c2e5dd4ca (patch)
treeb3ecd3a1ac8a167ff3b1aaebc8082b3c6e3ef313 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentcpu/hotplug: Fix dynstate assignment in __cpuhp_setup_state_cpuslocked() (diff)
downloadkernel-6ef8eb5125722c241fd60d7b0c872d5c2e5dd4ca.tar.gz
kernel-6ef8eb5125722c241fd60d7b0c872d5c2e5dd4ca.zip
cpu: Fix broken cmdline "nosmp" and "maxcpus=0"
After the rework of "Parallel CPU bringup", the cmdline "nosmp" and "maxcpus=0" parameters are not working anymore. These parameters set setup_max_cpus to zero and that's handed to bringup_nonboot_cpus(). The code there does a decrement before checking for zero, which brings it into the negative space and brings up all CPUs. Add a zero check at the beginning of the function to prevent this. [ tglx: Massaged change log ] Fixes: 18415f33e2ac4ab382 ("cpu/hotplug: Allow "parallel" bringup up to CPUHP_BP_KICK_AP_STATE") Fixes: 06c6796e0304234da6 ("cpu/hotplug: Fix off by one in cpuhp_bringup_mask()") Signed-off-by: Huacai Chen <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions