diff options
author | Emily Deng <Emily.Deng@amd.com> | 2018-03-07 21:49:09 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-03-14 15:38:25 -0400 |
commit | edc3d27cbb37280b13479e9d5ea125d1ffe24e59 (patch) | |
tree | 8aad5719c87e200288eeb2824a7b3a079630b6d6 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 58e955d9defad833f9a23c38521d7bbf01097b1d (diff) |
drm/amdgpu: Correct the amdgpu_ucode_fini_bo place for Tonga
The amdgpu_ucode_fini_bo should be called after gfx_v8_0_hw_fini,
or it will have KCQ disable failed issue.
For Tonga, as it firstly finishes SMC block, and the SMC hw fini
will call amdgpu_ucode_fini, which will lead the amdgpu_ucode_fini_bo
called before gfx_v8_0_hw_fini, this is incorrect.
Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 |
1 files changed, 3 insertions, 0 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 | ||