drm/amdgpu:Add error message when register failed to reach expected value
Subsystems (2)
PATCH 1/1 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.
--- drivers/gpu/drm/amd/amdgpu/soc15_common.h | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc15_common.h +2 -0
@@ -56,6 +56,8 @@ tmp_ = RREG32(adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg); \ loop--; \if (!loop) { \ +DRM_ERROR ("Register [%s](%d) failed to reach value 0x%08x != 0x%08x\n" , \ + inst, #reg, expected_value, (tmp_ & (mask))); \ ret = -ETIMEDOUT ; \break ; \ } \
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): 1536598718-20309-1-git-send-email-James.Zhu-5C7GfCeVMHo@public.gmane.org
PATCH v2 1/1 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.
--- drivers/gpu/drm/amd/amdgpu/soc15_common.h | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc15_common.h +2 -0
@@ -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 ; \ } \
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): 1536599143-21213-1-git-send-email-James.Zhu-5C7GfCeVMHo@public.gmane.org
Alex Deucher
Acked-byQuoted 2 lines · James Zhu
Signed-off-by James Zhu <[email protected]>
Quoted 23 lines
Add error message when register failed to reach expected value, It will help discover potential issue.
--- drivers/gpu/drm/amd/amdgpu/soc15_common.h | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/amd/amdgpu/soc15_common.h +2
-1@@ -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 ; \ } \ --2.7.4
Quoted 4 lines
_______________________________________________
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