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:
33af27b
)
drm/amd/display: add warning on long reg_wait
author
Dmytro Laktyushkin
<
[email protected]
>
Thu, 2 Nov 2017 18:55:14 +0000
(14:55 -0400)
committer
Alex Deucher
<
[email protected]
>
Wed, 6 Dec 2017 17:47:32 +0000
(12:47 -0500)
Signed-off-by: Dmytro Laktyushkin <
[email protected]
>
Reviewed-by: Tony Cheng <
[email protected]
>
Acked-by: Harry Wentland <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/display/dc/dc_helper.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/display/dc/dc_helper.c
b/drivers/gpu/drm/amd/display/dc/dc_helper.c
index 0d84b2a1ccfdf276785b89be795aee0478899d2c..c584252669fde5a73813aee0b5a79ab51aeb9c76 100644
(file)
--- a/
drivers/gpu/drm/amd/display/dc/dc_helper.c
+++ b/
drivers/gpu/drm/amd/display/dc/dc_helper.c
@@
-156,8
+156,13
@@
uint32_t generic_reg_wait(const struct dc_context *ctx,
field_value = get_reg_field_value_ex(reg_val, mask, shift);
- if (field_value == condition_value)
+ if (field_value == condition_value) {
+ if (i * delay_between_poll_us > 1000)
+ dm_output_to_console("REG_WAIT taking a while: %dms in %s line:%d\n",
+ delay_between_poll_us * i / 1000,
+ func_name, line);
return reg_val;
+ }
}
dm_error("REG_WAIT timeout %dus * %d tries - %s line:%d\n",