drm/amd/display: block DP YCbCr420 modes
authorEric Yang <Eric.Yang2@amd.com>
Fri, 14 Sep 2018 17:53:14 +0000 (13:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Oct 2018 22:02:08 +0000 (17:02 -0500)
[why]
Currently not supported, will black screen when set.

[How]
Fail validate timing helper for those modes.

Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c

index 4942590e8b9cdae980ed1b9a7b07457dc0eb1e91..70eb9472ccd9fe47a38ec868d38d1f2133dfabf5 100644 (file)
@@ -662,6 +662,9 @@ bool dce110_link_encoder_validate_dp_output(
        const struct dce110_link_encoder *enc110,
        const struct dc_crtc_timing *crtc_timing)
 {
+       if (crtc_timing->pixel_encoding == PIXEL_ENCODING_YCBCR420)
+               return false;
+
        /* default RGB only */
        if (crtc_timing->pixel_encoding == PIXEL_ENCODING_RGB)
                return true;
index 6f675206a136a7406859f5486ef5400893f75b11..bef0011a98b09f2a9d289e81223bb75d0b49b5e8 100644 (file)
@@ -606,6 +606,9 @@ bool dcn10_link_encoder_validate_dp_output(
        const struct dcn10_link_encoder *enc10,
        const struct dc_crtc_timing *crtc_timing)
 {
+       if (crtc_timing->pixel_encoding == PIXEL_ENCODING_YCBCR420)
+               return false;
+
        /* default RGB only */
        if (crtc_timing->pixel_encoding == PIXEL_ENCODING_RGB)
                return true;