projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8901a65
)
drm/amdgpu:Add error message when register failed to reach expected value
author
James Zhu
<
[email protected]
>
Mon, 10 Sep 2018 16:53:25 +0000
(12:53 -0400)
committer
Alex Deucher
<
[email protected]
>
Thu, 13 Sep 2018 20:14:08 +0000
(15:14 -0500)
Add error message when register failed to reach expected value, It will
help discover potential issue.
Signed-off-by: James Zhu <
[email protected]
>
Acked-by: Alex Deucher <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/soc15_common.h
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/soc15_common.h
b/drivers/gpu/drm/amd/amdgpu/soc15_common.h
index 0942f492d2e19379eedbaf818363fe534922b99c..f5d602540673015c5e12390d9adce39cb24994dc 100644
(file)
--- 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; \
} \