summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c
diff options
context:
space:
mode:
authorChristian Loehle <christian.loehle@arm.com>2025-09-01 00:43:57 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-09-15 13:02:24 +0300
commit1ebe8f7e782523e62cd1fa8237f7afba5d1dae83 (patch)
treed3e7b5721096e58af732d7079a3f68889123e765 /drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c
parente0423541477dfb684fbc6e6b5386054bc650f264 (diff)
downloadlinux-1ebe8f7e782523e62cd1fa8237f7afba5d1dae83.tar.xz
PM: EM: Fix late boot with holes in CPU topology
Commit e3f1164fc9ee ("PM: EM: Support late CPUs booting and capacity adjustment") added a mechanism to handle CPUs that come up late by retrying when any of the `cpufreq_cpu_get()` call fails. However, if there are holes in the CPU topology (offline CPUs, e.g. nosmt), the first missing CPU causes the loop to break, preventing subsequent online CPUs from being updated. Instead of aborting on the first missing CPU policy, loop through all and retry if any were missing. Fixes: e3f1164fc9ee ("PM: EM: Support late CPUs booting and capacity adjustment") Suggested-by: Kenneth Crudup <kenneth.crudup@gmail.com> Reported-by: Kenneth Crudup <kenneth.crudup@gmail.com> Link: https://lore.kernel.org/linux-pm/40212796-734c-4140-8a85-854f72b8144d@panix.com/ Cc: 6.9+ <stable@vger.kernel.org> # 6.9+ Signed-off-by: Christian Loehle <christian.loehle@arm.com> Link: https://patch.msgid.link/20250831214357.2020076-1-christian.loehle@arm.com [ rjw: Drop the new pr_debug() message which is not very useful ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c')
0 files changed, 0 insertions, 0 deletions