diff options
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 9a2c2c3f0603..cc582e2271e1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -1457,6 +1457,9 @@ static int amdgpu_device_ip_fini(struct amdgpu_device *adev) | |||
1457 | } | 1457 | } |
1458 | 1458 | ||
1459 | for (i = adev->num_ip_blocks - 1; i >= 0; i--) { | 1459 | for (i = adev->num_ip_blocks - 1; i >= 0; i--) { |
1460 | if (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_SMC && | ||
1461 | adev->firmware.load_type == AMDGPU_FW_LOAD_SMU) | ||
1462 | amdgpu_ucode_fini_bo(adev); | ||
1460 | if (!adev->ip_blocks[i].status.hw) | 1463 | if (!adev->ip_blocks[i].status.hw) |
1461 | continue; | 1464 | continue; |
1462 | 1465 | ||
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c index 5c2e2d5dc1ee..825c9b90ebf5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | |||
@@ -162,9 +162,6 @@ static int amdgpu_pp_hw_fini(void *handle) | |||
162 | ret = adev->powerplay.ip_funcs->hw_fini( | 162 | ret = adev->powerplay.ip_funcs->hw_fini( |
163 | adev->powerplay.pp_handle); | 163 | adev->powerplay.pp_handle); |
164 | 164 | ||
165 | if (adev->firmware.load_type == AMDGPU_FW_LOAD_SMU) | ||
166 | amdgpu_ucode_fini_bo(adev); | ||
167 | |||
168 | return ret; | 165 | return ret; |
169 | } | 166 | } |
170 | 167 | ||