summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dml
diff options
context:
space:
mode:
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>2019-03-18 18:20:56 -0400
committerAlex Deucher <alexander.deucher@amd.com>2019-06-22 09:34:08 -0500
commit00999d991fdebc1ee2d0b06342c6d10e3c51d4c8 (patch)
tree2b196644a00643b43d2eafa485e6b2a275730581 /drivers/gpu/drm/amd/display/dc/dml
parent0cd3262566797b3c2de5a180b32fa820808f7f1a (diff)
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/dml')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c b/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c
index 3560319a5c6f..7f3ea740bfe8 100644
--- a/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c
+++ b/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c
@@ -73,17 +73,7 @@ unsigned int dml_get_voltage_level(
fetch_pipe_params(mode_lib);
PixelClockAdjustmentForProgressiveToInterlaceUnit(mode_lib);
}
- mode_lib->funcs.validate(mode_lib);
-
- /* check if Mode Support Validation failed */
- if (mode_lib->vba.VoltageLevel > mode_lib->vba.soc.num_states) {
- /* get the validation status for highest voltage level and output console message */
- enum dm_validation_status status = mode_lib->vba.ValidationStatus[mode_lib->vba.soc.num_states];
- if (status != DML_FAIL_PITCH_SUPPORT) {
- /*AlignedYPitch is based on swizzle mode, so it is normal if some swizzle mode not supported*/
- dm_output_to_console("Mode Validation Error: %s failed validation.\n", dml_get_status_message(status));
- }
- }
+ mode_lib->funcs.validate(mode_lib);
return mode_lib->vba.VoltageLevel;
}