diff options
author | Dmytro Laktyushkin | 2019-03-18 23:20:56 +0100 |
---|---|---|
committer | Alex Deucher | 2019-06-22 16:34:08 +0200 |
commit | 00999d991fdebc1ee2d0b06342c6d10e3c51d4c8 (patch) | |
tree | 2b196644a00643b43d2eafa485e6b2a275730581 /drivers/gpu/drm/amd/display/dc/dcn20 | |
parent | drm/amd/display: fixed DCC corruption (diff) | |
download | kernel-qcow2-linux-00999d991fdebc1ee2d0b06342c6d10e3c51d4c8.tar.gz kernel-qcow2-linux-00999d991fdebc1ee2d0b06342c6d10e3c51d4c8.tar.xz kernel-qcow2-linux-00999d991fdebc1ee2d0b06342c6d10e3c51d4c8.zip |
drm/amd/display: clean up validation failure log spam
Currently dcn2+ validation will unconditionally print a failure
reason before validation completes. This change categorizes the
failure reason as a warning log and only prints at the end of
validation resolving false positives.
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Nikola Cornij <Nikola.Cornij@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn20')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c index e2a6e80013f3..49114d823240 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c @@ -1880,6 +1880,7 @@ bool dcn20_validate_bandwidth(struct dc *dc, int split_threshold = dc->res_pool->pipe_count / 2; bool avoid_split = dc->debug.pipe_split_policy != MPC_SPLIT_DYNAMIC; display_e2e_pipe_params_st *pipes = kzalloc(dc->res_pool->pipe_count * sizeof(display_e2e_pipe_params_st), GFP_KERNEL); + DC_LOGGER_INIT(dc->ctx->logger); ASSERT(pipes); if (!pipes) @@ -2183,6 +2184,8 @@ validate_pass: return true; validate_fail: + DC_LOG_WARNING("Mode Validation Warning: %s failed validation.\n", + dml_get_status_message(context->bw_ctx.dml.vba.ValidationStatus[context->bw_ctx.dml.vba.soc.num_states])); kfree(pipes); return false; } |