diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2724-drm-amd-display-add-warning-on-long-reg_wait.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2724-drm-amd-display-add-warning-on-long-reg_wait.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2724-drm-amd-display-add-warning-on-long-reg_wait.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2724-drm-amd-display-add-warning-on-long-reg_wait.patch new file mode 100644 index 00000000..b083e4a9 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2724-drm-amd-display-add-warning-on-long-reg_wait.patch @@ -0,0 +1,35 @@ +From aaefbca5879edfe949431ab174d2fc4b0bb6a6a5 Mon Sep 17 00:00:00 2001 +From: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> +Date: Thu, 2 Nov 2017 14:55:14 -0400 +Subject: [PATCH 2724/4131] drm/amd/display: add warning on long reg_wait + +Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> +Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> +Acked-by: Harry Wentland <harry.wentland@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/display/dc/dc_helper.c | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/display/dc/dc_helper.c b/drivers/gpu/drm/amd/display/dc/dc_helper.c +index 0d84b2a..c584252 100644 +--- 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", +-- +2.7.4 + |