Skip to content

Commit

Permalink
drm/amdgpu: Fix APU handling in amdgpu_pm_load_smu_firmware()
Browse files Browse the repository at this point in the history
We only need to skip this on modern APUs.  It's required
on older APUs as it's where start_smu gets called from.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3502
Fixes: 064d92436b69 ("drm/amd/pm: avoid to load smu firmware for APUs")
Reviewed-by: Tim Huang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: Tim Huang <[email protected]>
(cherry picked from commit 608d886c978cd5f3d8650630568d96c231845227)
  • Loading branch information
alexdeucher authored and lutzbichler committed Nov 8, 2024
1 parent 46bae06 commit 7c58b97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/amd/pm/amdgpu_dpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,8 @@ int amdgpu_pm_load_smu_firmware(struct amdgpu_device *adev, uint32_t *smu_versio
const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs;
int r = 0;

if (!pp_funcs || !pp_funcs->load_firmware || adev->flags & AMD_IS_APU)
if (!pp_funcs || !pp_funcs->load_firmware ||
(is_support_sw_smu(adev) && (adev->flags & AMD_IS_APU)))
return 0;

mutex_lock(&adev->pm.mutex);
Expand Down

0 comments on commit 7c58b97

Please sign in to comment.