drm/amdgpu: Correct the amdgpu_ucode_fini_bo place for Tonga
authorEmily Deng <Emily.Deng@amd.com>
Thu, 8 Mar 2018 02:49:09 +0000 (10:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Mar 2018 19:38:25 +0000 (14:38 -0500)
commitedc3d27cbb37280b13479e9d5ea125d1ffe24e59
tree8aad5719c87e200288eeb2824a7b3a079630b6d6
parent58e955d9defad833f9a23c38521d7bbf01097b1d
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c