diff options
| author | Dmytro Laktyushkin <[email protected]> | 2017-06-01 22:35:54 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-09-26 22:07:57 +0000 |
| commit | f0558542a72e72919dae2ac2187847ec312c2bcb (patch) | |
| tree | 52a4e9a69749f8f956297e6505fde672158f151a /drivers/gpu/drm/amd/display/dc/dc_helper.c | |
| parent | drm/amd/display: disable dcc when reset front end. (diff) | |
| download | kernel-f0558542a72e72919dae2ac2187847ec312c2bcb.tar.gz kernel-f0558542a72e72919dae2ac2187847ec312c2bcb.zip | |
drm/amd/display: redesign mpc
Signed-off-by: Dmytro Laktyushkin <[email protected]>
Reviewed-by: Dmytro Laktyushkin <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_helper.c')
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/dc_helper.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_helper.c b/drivers/gpu/drm/amd/display/dc/dc_helper.c index 87fd5b9c8a16..8ed1440d2b01 100644 --- a/drivers/gpu/drm/amd/display/dc/dc_helper.c +++ b/drivers/gpu/drm/amd/display/dc/dc_helper.c @@ -135,8 +135,11 @@ uint32_t generic_reg_wait(const struct dc_context *ctx, uint32_t reg_val; int i; - if (ctx->dce_environment == DCE_ENV_FPGA_MAXIMUS) - time_out_num_tries *= 20; + if (IS_FPGA_MAXIMUS_DC(ctx->dce_environment)) { + /* 35 seconds */ + delay_between_poll_us = 35000; + time_out_num_tries = 1000; + } for (i = 0; i <= time_out_num_tries; i++) { if (i) { @@ -157,7 +160,8 @@ uint32_t generic_reg_wait(const struct dc_context *ctx, dm_error("REG_WAIT timeout %dus * %d tries - %s\n", delay_between_poll_us, time_out_num_tries, func_name); - if (ctx->dce_environment != DCE_ENV_FPGA_MAXIMUS) + + if (!IS_FPGA_MAXIMUS_DC(ctx->dce_environment)) BREAK_TO_DEBUGGER(); return reg_val; |
