drm/amdgpu: Correct the amdgpu_ucode_fini_bo place for Tonga
Subsystems (2)
PATCH 1/1 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.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3 -0
@@ -1457,6 +1457,9 @@ static int amdgpu_device_ip_fini(struct amdgpu_device *adev) }for (i = adev->num_ip_blocks -1 ; i >=0 ; i--) { +if (adev->ip_blocks[i].version->type ==AMD_IP_BLOCK_TYPE_SMC && + adev->firmware.load_type ==AMDGPU_FW_LOAD_SMU ) +amdgpu_ucode_fini_bo (adev);if (!adev->ip_blocks[i].status.hw)continue ;
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +0 -3
@@ -162,9 +162,6 @@ static int amdgpu_pp_hw_fini(void *handle) ret = adev->powerplay.ip_funcs->hw_fini ( adev->powerplay.pp_handle); -if (adev->firmware.load_type ==AMDGPU_FW_LOAD_SMU ) -amdgpu_ucode_fini_bo (adev); -return ret; }
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1520477702-6291-1-git-send-email-Emily.Deng-5C7GfCeVMHo@public.gmane.org
Deucher, Alexander
Reviewed-by________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Emily Deng <[email protected]>
Sent: Wednesday, March 7, 2018 9:55:02 PM
To: [email protected]
Cc: Deng, Emily
Subject: [PATCH] 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.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3 -0
@@ -1457,6 +1457,9 @@ static int amdgpu_device_ip_fini(struct amdgpu_device *adev) }for (i = adev->num_ip_blocks -1 ; i >=0 ; i--) { +if (adev->ip_blocks[i].version->type ==AMD_IP_BLOCK_TYPE_SMC && + adev->firmware.load_type ==AMDGPU_FW_LOAD_SMU ) +amdgpu_ucode_fini_bo (adev);if (!adev->ip_blocks[i].status.hw)continue ;
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +0 -3
@@ -162,9 +162,6 @@ static int amdgpu_pp_hw_fini(void *handle) ret = adev->powerplay.ip_funcs->hw_fini ( adev->powerplay.pp_handle); -if (adev->firmware.load_type ==AMDGPU_FW_LOAD_SMU ) -amdgpu_ucode_fini_bo (adev); -return ret; }
--
2.7.4
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx