Change-Id: Ie66ad0113547afbea49ddc211d9040aa85f0af0c Signed-off-by: Chunming Zhou <David1.Zhou at amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 45716ca..861f586 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -1963,8 +1963,10 @@ static bool amdgpu_check_soft_reset(struct amdgpu_device *adev) continue; if (adev->ip_blocks[i].funcs->check_soft_reset) adev->ip_blocks[i].funcs->check_soft_reset(adev); - if (adev->ip_block_status[i].hang) + if (adev->ip_block_status[i].hang) { + DRM_INFO("IP block:%d is hang!\n", i); asic_hang = true; + } } return asic_hang; } @@ -1992,8 +1994,10 @@ static bool amdgpu_need_full_reset(struct amdgpu_device *adev) adev->ip_block_status[AMD_IP_BLOCK_TYPE_SMC].hang || adev->ip_block_status[AMD_IP_BLOCK_TYPE_VCE].hang || adev->ip_block_status[AMD_IP_BLOCK_TYPE_ACP].hang || - adev->ip_block_status[AMD_IP_BLOCK_TYPE_DCE].hang) + adev->ip_block_status[AMD_IP_BLOCK_TYPE_DCE].hang) { + DRM_INFO("Some block need full reset!\n"); return true; + } return false; } @@ -2068,6 +2072,7 @@ int amdgpu_gpu_reset(struct amdgpu_device *adev) amdgpu_post_soft_reset(adev); if (!amdgpu_check_soft_reset(adev)) goto out; + DRM_INFO("soft reset failed, will try full reset!"); } /* save scratch */ amdgpu_atombios_scratch_regs_save(adev); -- 1.9.1