diff options
author | James Zhu <James.Zhu@amd.com> | 2018-09-10 12:53:25 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-09-13 15:14:08 -0500 |
commit | 52e211c1f04f7544bf3d3cf5ed3939708d5988d2 (patch) | |
tree | 2eb1bfb183ceaf4b098b78cf0aa28322cfd8785e | |
parent | 8901a65f080ad6f4d7c3ef9f23c6f3a0e3e194aa (diff) |
drm/amdgpu:Add error message when register failed to reach expected value
Add error message when register failed to reach expected value, It will
help discover potential issue.
Signed-off-by: James Zhu <James.Zhu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc15_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15_common.h b/drivers/gpu/drm/amd/amdgpu/soc15_common.h index 0942f492d2e1..f5d602540673 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc15_common.h +++ b/drivers/gpu/drm/amd/amdgpu/soc15_common.h @@ -56,6 +56,8 @@ tmp_ = RREG32(adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg); \ loop--; \ if (!loop) { \ + DRM_ERROR("Register(%d) [%s] failed to reach value 0x%08x != 0x%08x\n", \ + inst, #reg, expected_value, (tmp_ & (mask))); \ ret = -ETIMEDOUT; \ break; \ } \ |