drm/amd/display: Add Error Code for Dml Validation Failure
authorFangzhi Zuo <jerry.zuo@amd.com>
Tue, 16 May 2023 19:36:45 +0000 (15:36 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Jun 2023 14:44:13 +0000 (10:44 -0400)
commitbe3a432a9d382a09e02c3359e4f6fcd991fe7d2a
tree6e68e5e0d101752177aefa0d23ad35c8c1091a66
parent3d8de40fd639c8be24e4aa557a98e20e1d09bdc3
drm/amd/display: Add Error Code for Dml Validation Failure

Any invalid mode from hw perspective should be given corresponding
error code, otherwise it leads to confusing warning message
"[drm] Mode Validation Warning: Validation OK failed validation."

Acked-by: Stylon Wang <stylon.wang@amd.com>
Signed-off-by: Fangzhi Zuo <jerry.zuo@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c
drivers/gpu/drm/amd/display/dc/dml/display_mode_enums.h