drm/edid: Reduce horizontal timings for pixel replicated modes
Subsystems (3)
PATCH 1/1 drm/edid: Reduce horizontal timings for pixel replicated modes
From: Clint Taylor <[email protected]>
Pixel replicated modes should be 720 horizontal pixel and pixel replicated by the HW across the HDMI cable at 2X pixel clock. Current horizontal resolution of 1440 does not allow pixel duplication to occur and scaling artifacts occur on the TV. HDMI certification 7-26 currently fails for all pixel replicated modes. This change fizes the HDMI certification issues with 480i/576i.
V2: Removed interlace flag from VICs 44 and 45. Will be submitted in another patch. Various other formatting fixes.
V3: 576i@200 htotal fixed. Check min and max pixel clocks.
--- drivers/gpu/drm/drm_edid.c | 96 ++++++++++++++++++------------------- drivers/gpu/drm/i915/intel_hdmi.c | 15 ++++-- 2 files changed, 60 insertions(+), 51 deletions(-)
drivers/gpu/drm/drm_edid.c +48 -48
@@ -632,27 +632,27 @@ static const struct drm_display_mode edid_cea_modes[] = {DRM_MODE_FLAG_PHSYNC |DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_INTERLACE), .vrefresh = 60, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, - /* 6 - 1440x480i@60Hz */ - { DRM_MODE("1440x480i", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1478, -1602 ,1716 ,0 ,480 ,488 ,494 ,525 ,0 , + /* 6 - 720(1440)x480i@60Hz */ + { DRM_MODE("720x480i", DRM_MODE_TYPE_DRIVER, 13500, 720, 739, +801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 60, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 7 - 1440x480i@60Hz */ - { DRM_MODE("1440x480i", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1478, -1602 ,1716 ,0 ,480 ,488 ,494 ,525 ,0 , + /* 7 - 720(1440)x480i@60Hz */ + { DRM_MODE("720x480i", DRM_MODE_TYPE_DRIVER, 13500, 720, 739, +801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 60, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, - /* 8 - 1440x240@60Hz */ - { DRM_MODE("1440x240", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1478, -1602 ,1716 ,0 ,240 ,244 ,247 ,262 ,0 , + /* 8 - 720(1440)x240@60Hz */ + { DRM_MODE("720x240", DRM_MODE_TYPE_DRIVER, 13500, 720, 739, +801 ,858 ,0 ,240 ,244 ,247 ,262 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 60, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 9 - 1440x240@60Hz */ - { DRM_MODE("1440x240", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1478, -1602 ,1716 ,0 ,240 ,244 ,247 ,262 ,0 , + /* 9 - 720(1440)x240@60Hz */ + { DRM_MODE("720x240", DRM_MODE_TYPE_DRIVER, 13500, 720, 739, +801 ,858 ,0 ,240 ,244 ,247 ,262 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 60, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },
@@ -714,27 +714,27 @@ static const struct drm_display_mode edid_cea_modes[] = {DRM_MODE_FLAG_PHSYNC |DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_INTERLACE), .vrefresh = 50, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, - /* 21 - 1440x576i@50Hz */ - { DRM_MODE("1440x576i", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1464, -1590 ,1728 ,0 ,576 ,580 ,586 ,625 ,0 , + /* 21 - 720(1440)x576i@50Hz */ + { DRM_MODE("720x576i", DRM_MODE_TYPE_DRIVER, 13500, 720, 732, +795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 50, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 22 - 1440x576i@50Hz */ - { DRM_MODE("1440x576i", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1464, -1590 ,1728 ,0 ,576 ,580 ,586 ,625 ,0 , + /* 22 - 720(1440)x576i@50Hz */ + { DRM_MODE("720x576i", DRM_MODE_TYPE_DRIVER, 13500, 720, 732, +795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 50, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, - /* 23 - 1440x288@50Hz */ - { DRM_MODE("1440x288", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1464, -1590 ,1728 ,0 ,288 ,290 ,293 ,312 ,0 , + /* 23 - 720(1440)x288@50Hz */ + { DRM_MODE("720x288", DRM_MODE_TYPE_DRIVER, 13500, 720, 732, +795 ,864 ,0 ,288 ,290 ,293 ,312 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 50, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 24 - 1440x288@50Hz */ - { DRM_MODE("1440x288", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1464, -1590 ,1728 ,0 ,288 ,290 ,293 ,312 ,0 , + /* 24 - 720(1440)x288@50Hz */ + { DRM_MODE("720x288", DRM_MODE_TYPE_DRIVER, 13500, 720, 732, +795 ,864 ,0 ,288 ,290 ,293 ,312 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 50, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },
@@ -837,15 +837,15 @@ static const struct drm_display_mode edid_cea_modes[] = { 796, 864, 0, 576, 581, 586, 625, 0, DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC), .vrefresh = 100, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, -/* 44 - 1440x576i@100Hz */ - {DRM_MODE ("1440x576" ,DRM_MODE_TYPE_DRIVER ,54000 ,1440 ,1464 , -1590 ,1728 ,0 ,576 ,580 ,586 ,625 ,0 , +/* 44 - 720(1440)x576i@100Hz */ + {DRM_MODE ("720x576i" ,DRM_MODE_TYPE_DRIVER ,27000 ,720 ,732 , +795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_DBLCLK), .vrefresh = 100, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 45 - 1440x576i@100Hz */ - { DRM_MODE("1440x576", DRM_MODE_TYPE_DRIVER, 54000, 1440, 1464, -1590 ,1728 ,0 ,576 ,580 ,586 ,625 ,0 , + /* 45 - 720(1440)x576i@100Hz */ + { DRM_MODE("720x576i", DRM_MODE_TYPE_DRIVER, 27000, 720, 732, +795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 100, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },
@@ -870,15 +870,15 @@ static const struct drm_display_mode edid_cea_modes[] = { 798, 858, 0, 480, 489, 495, 525, 0, DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC), .vrefresh = 120, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, -/* 50 - 1440x480i@120Hz */ - {DRM_MODE ("1440x480i" ,DRM_MODE_TYPE_DRIVER ,54000 ,1440 ,1478 , -1602 ,1716 ,0 ,480 ,488 ,494 ,525 ,0 , +/* 50 - 720(1440)x480i@120Hz */ + {DRM_MODE ("720x480i" ,DRM_MODE_TYPE_DRIVER ,27000 ,720 ,739 , +801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_INTERLACE | DRM_MODE_FLAG_DBLCLK), .vrefresh = 120, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 51 - 1440x480i@120Hz */ - { DRM_MODE("1440x480i", DRM_MODE_TYPE_DRIVER, 54000, 1440, 1478, -1602 ,1716 ,0 ,480 ,488 ,494 ,525 ,0 , + /* 51 - 720(1440)x480i@120Hz */ + { DRM_MODE("720x480i", DRM_MODE_TYPE_DRIVER, 27000, 720, 739, +801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 120, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },
@@ -892,15 +892,15 @@ static const struct drm_display_mode edid_cea_modes[] = { 796, 864, 0, 576, 581, 586, 625, 0, DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC), .vrefresh = 200, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, -/* 54 - 1440x576i@200Hz */ - {DRM_MODE ("1440x576i" ,DRM_MODE_TYPE_DRIVER ,108000 ,1440 ,1464 , -1590 ,1728 ,0 ,576 ,580 ,586 ,625 ,0 , +/* 54 - 720(1440)x576i@200Hz */ + {DRM_MODE ("720x576i" ,DRM_MODE_TYPE_DRIVER ,54000 ,720 ,732 , +795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_INTERLACE | DRM_MODE_FLAG_DBLCLK), .vrefresh = 200, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 55 - 1440x576i@200Hz */ - { DRM_MODE("1440x576i", DRM_MODE_TYPE_DRIVER, 108000, 1440, 1464, -1590 ,1728 ,0 ,576 ,580 ,586 ,625 ,0 , + /* 55 - 720(1440)x576i@200Hz */ + { DRM_MODE("720x576i", DRM_MODE_TYPE_DRIVER, 54000, 720, 732, +795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 200, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },
@@ -914,15 +914,15 @@ static const struct drm_display_mode edid_cea_modes[] = { 798, 858, 0, 480, 489, 495, 525, 0, DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC), .vrefresh = 240, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, -/* 58 - 1440x480i@240 */ - {DRM_MODE ("1440x480i" ,DRM_MODE_TYPE_DRIVER ,108000 ,1440 ,1478 , -1602 ,1716 ,0 ,480 ,488 ,494 ,525 ,0 , +/* 58 - 720(1440)x480i@240 */ + {DRM_MODE ("720x480i" ,DRM_MODE_TYPE_DRIVER ,54000 ,720 ,739 , +801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_INTERLACE | DRM_MODE_FLAG_DBLCLK), .vrefresh = 240, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 59 - 1440x480i@240 */ - { DRM_MODE("1440x480i", DRM_MODE_TYPE_DRIVER, 108000, 1440, 1478, -1602 ,1716 ,0 ,480 ,488 ,494 ,525 ,0 , + /* 59 - 720(1440)x480i@240 */ + { DRM_MODE("720x480i", DRM_MODE_TYPE_DRIVER, 54000, 720, 739, +801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 240, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },
drivers/gpu/drm/i915/intel_hdmi.c +12 -3
@@ -864,10 +864,15 @@ static enum drm_mode_status intel_hdmi_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { -if (mode->clock >hdmi_portclock_limit (intel_attached_hdmi (connector), - true)) + int clock = mode->clock; + +if (mode->flags &DRM_MODE_FLAG_DBLCLK ) + clock *=2 ; + +if (clock >hdmi_portclock_limit (intel_attached_hdmi (connector), + true))return MODE_CLOCK_HIGH ; -if (mode->clock <20000 ) +if (clock <20000 )return MODE_CLOCK_LOW ;if (mode->flags &DRM_MODE_FLAG_DBLSCAN )
@@ -921,6 +926,10 @@ bool intel_hdmi_compute_config(struct intel_encoder *encoder, intel_hdmi->color_range =0 ; } +if (adjusted_mode->flags &DRM_MODE_FLAG_DBLCLK ) { + pipe_config->pixel_multiplier =2 ; + } +if (intel_hdmi->color_range) pipe_config->limited_color_range = true;
Signature · 1 line
1.7.9.5
Quoted 12 lines · On Tue, Aug 19, 2014 at 02:21:21PM -0700, [email protected] wrote:
From: Clint Taylor <[email protected]>
Pixel replicated modes should be 720 horizontal pixel and pixel replicated by the HW across the HDMI cable at 2X pixel clock. Current horizontal resolution of 1440 does not allow pixel duplication to occur and scaling artifacts occur on the TV. HDMI certification 7-26 currently fails for all pixel replicated modes. This change fizes the HDMI certification issues with 480i/576i.
V2: Removed interlace flag from VICs 44 and 45. Will be submitted in another patch. Various other formatting fixes.
Quoted 6 lines
V3: 576i@200 htotal fixed. Check min and max pixel clocks.
Signed-off-by Clint Taylor <[email protected]>--- drivers/gpu/drm/drm_edid.c | 96 ++++++++++++++++++------------------- drivers/gpu/drm/i915/intel_hdmi.c | 15 ++++--
Still plea to split out the i915 change.
Thanks, Daniel
Quoted 215 lines
2 files changed, 60 insertions(+), 51 deletions(-)drivers/gpu/drm/drm_edid.c +48
-48@@ -632,27 +632,27 @@ static const struct drm_display_mode edid_cea_modes[] = {DRM_MODE_FLAG_PHSYNC |DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_INTERLACE), .vrefresh = 60, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, - /* 6 - 1440x480i@60Hz */ - { DRM_MODE("1440x480i", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1478, -1602 ,1716 ,0 ,480 ,488 ,494 ,525 ,0 , + /* 6 - 720(1440)x480i@60Hz */ + { DRM_MODE("720x480i", DRM_MODE_TYPE_DRIVER, 13500, 720, 739, +801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 60, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 7 - 1440x480i@60Hz */ - { DRM_MODE("1440x480i", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1478, -1602 ,1716 ,0 ,480 ,488 ,494 ,525 ,0 , + /* 7 - 720(1440)x480i@60Hz */ + { DRM_MODE("720x480i", DRM_MODE_TYPE_DRIVER, 13500, 720, 739, +801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 60, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, - /* 8 - 1440x240@60Hz */ - { DRM_MODE("1440x240", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1478, -1602 ,1716 ,0 ,240 ,244 ,247 ,262 ,0 , + /* 8 - 720(1440)x240@60Hz */ + { DRM_MODE("720x240", DRM_MODE_TYPE_DRIVER, 13500, 720, 739, +801 ,858 ,0 ,240 ,244 ,247 ,262 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 60, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 9 - 1440x240@60Hz */ - { DRM_MODE("1440x240", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1478, -1602 ,1716 ,0 ,240 ,244 ,247 ,262 ,0 , + /* 9 - 720(1440)x240@60Hz */ + { DRM_MODE("720x240", DRM_MODE_TYPE_DRIVER, 13500, 720, 739, +801 ,858 ,0 ,240 ,244 ,247 ,262 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 60, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },@@ -714,27 +714,27 @@ static const struct drm_display_mode edid_cea_modes[] = {DRM_MODE_FLAG_PHSYNC |DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_INTERLACE), .vrefresh = 50, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, - /* 21 - 1440x576i@50Hz */ - { DRM_MODE("1440x576i", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1464, -1590 ,1728 ,0 ,576 ,580 ,586 ,625 ,0 , + /* 21 - 720(1440)x576i@50Hz */ + { DRM_MODE("720x576i", DRM_MODE_TYPE_DRIVER, 13500, 720, 732, +795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 50, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 22 - 1440x576i@50Hz */ - { DRM_MODE("1440x576i", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1464, -1590 ,1728 ,0 ,576 ,580 ,586 ,625 ,0 , + /* 22 - 720(1440)x576i@50Hz */ + { DRM_MODE("720x576i", DRM_MODE_TYPE_DRIVER, 13500, 720, 732, +795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 50, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, - /* 23 - 1440x288@50Hz */ - { DRM_MODE("1440x288", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1464, -1590 ,1728 ,0 ,288 ,290 ,293 ,312 ,0 , + /* 23 - 720(1440)x288@50Hz */ + { DRM_MODE("720x288", DRM_MODE_TYPE_DRIVER, 13500, 720, 732, +795 ,864 ,0 ,288 ,290 ,293 ,312 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 50, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 24 - 1440x288@50Hz */ - { DRM_MODE("1440x288", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1464, -1590 ,1728 ,0 ,288 ,290 ,293 ,312 ,0 , + /* 24 - 720(1440)x288@50Hz */ + { DRM_MODE("720x288", DRM_MODE_TYPE_DRIVER, 13500, 720, 732, +795 ,864 ,0 ,288 ,290 ,293 ,312 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 50, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },@@ -837,15 +837,15 @@ static const struct drm_display_mode edid_cea_modes[] = { 796, 864, 0, 576, 581, 586, 625, 0, DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC), .vrefresh = 100, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, -/* 44 - 1440x576i@100Hz */ - {DRM_MODE ("1440x576" ,DRM_MODE_TYPE_DRIVER ,54000 ,1440 ,1464 , -1590 ,1728 ,0 ,576 ,580 ,586 ,625 ,0 , +/* 44 - 720(1440)x576i@100Hz */ + {DRM_MODE ("720x576i" ,DRM_MODE_TYPE_DRIVER ,27000 ,720 ,732 , +795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_DBLCLK), .vrefresh = 100, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 45 - 1440x576i@100Hz */ - { DRM_MODE("1440x576", DRM_MODE_TYPE_DRIVER, 54000, 1440, 1464, -1590 ,1728 ,0 ,576 ,580 ,586 ,625 ,0 , + /* 45 - 720(1440)x576i@100Hz */ + { DRM_MODE("720x576i", DRM_MODE_TYPE_DRIVER, 27000, 720, 732, +795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 100, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },@@ -870,15 +870,15 @@ static const struct drm_display_mode edid_cea_modes[] = { 798, 858, 0, 480, 489, 495, 525, 0, DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC), .vrefresh = 120, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, -/* 50 - 1440x480i@120Hz */ - {DRM_MODE ("1440x480i" ,DRM_MODE_TYPE_DRIVER ,54000 ,1440 ,1478 , -1602 ,1716 ,0 ,480 ,488 ,494 ,525 ,0 , +/* 50 - 720(1440)x480i@120Hz */ + {DRM_MODE ("720x480i" ,DRM_MODE_TYPE_DRIVER ,27000 ,720 ,739 , +801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_INTERLACE | DRM_MODE_FLAG_DBLCLK), .vrefresh = 120, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 51 - 1440x480i@120Hz */ - { DRM_MODE("1440x480i", DRM_MODE_TYPE_DRIVER, 54000, 1440, 1478, -1602 ,1716 ,0 ,480 ,488 ,494 ,525 ,0 , + /* 51 - 720(1440)x480i@120Hz */ + { DRM_MODE("720x480i", DRM_MODE_TYPE_DRIVER, 27000, 720, 739, +801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 120, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },@@ -892,15 +892,15 @@ static const struct drm_display_mode edid_cea_modes[] = { 796, 864, 0, 576, 581, 586, 625, 0, DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC), .vrefresh = 200, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, -/* 54 - 1440x576i@200Hz */ - {DRM_MODE ("1440x576i" ,DRM_MODE_TYPE_DRIVER ,108000 ,1440 ,1464 , -1590 ,1728 ,0 ,576 ,580 ,586 ,625 ,0 , +/* 54 - 720(1440)x576i@200Hz */ + {DRM_MODE ("720x576i" ,DRM_MODE_TYPE_DRIVER ,54000 ,720 ,732 , +795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_INTERLACE | DRM_MODE_FLAG_DBLCLK), .vrefresh = 200, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 55 - 1440x576i@200Hz */ - { DRM_MODE("1440x576i", DRM_MODE_TYPE_DRIVER, 108000, 1440, 1464, -1590 ,1728 ,0 ,576 ,580 ,586 ,625 ,0 , + /* 55 - 720(1440)x576i@200Hz */ + { DRM_MODE("720x576i", DRM_MODE_TYPE_DRIVER, 54000, 720, 732, +795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 200, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },@@ -914,15 +914,15 @@ static const struct drm_display_mode edid_cea_modes[] = { 798, 858, 0, 480, 489, 495, 525, 0, DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC), .vrefresh = 240, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, -/* 58 - 1440x480i@240 */ - {DRM_MODE ("1440x480i" ,DRM_MODE_TYPE_DRIVER ,108000 ,1440 ,1478 , -1602 ,1716 ,0 ,480 ,488 ,494 ,525 ,0 , +/* 58 - 720(1440)x480i@240 */ + {DRM_MODE ("720x480i" ,DRM_MODE_TYPE_DRIVER ,54000 ,720 ,739 , +801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_INTERLACE | DRM_MODE_FLAG_DBLCLK), .vrefresh = 240, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 59 - 1440x480i@240 */ - { DRM_MODE("1440x480i", DRM_MODE_TYPE_DRIVER, 108000, 1440, 1478, -1602 ,1716 ,0 ,480 ,488 ,494 ,525 ,0 , + /* 59 - 720(1440)x480i@240 */ + { DRM_MODE("720x480i", DRM_MODE_TYPE_DRIVER, 54000, 720, 739, +801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 240, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },drivers/gpu/drm/i915/intel_hdmi.c +12
-3@@ -864,10 +864,15 @@ static enum drm_mode_status intel_hdmi_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { -if (mode->clock >hdmi_portclock_limit (intel_attached_hdmi (connector), - true)) + int clock = mode->clock; + +if (mode->flags &DRM_MODE_FLAG_DBLCLK ) + clock *=2 ; + +if (clock >hdmi_portclock_limit (intel_attached_hdmi (connector), + true))return MODE_CLOCK_HIGH ; -if (mode->clock <20000 ) +if (clock <20000 )return MODE_CLOCK_LOW ;if (mode->flags &DRM_MODE_FLAG_DBLSCAN )@@ -921,6 +926,10 @@ bool intel_hdmi_compute_config(struct intel_encoder *encoder, intel_hdmi->color_range =0 ; } +if (adjusted_mode->flags &DRM_MODE_FLAG_DBLCLK ) { + pipe_config->pixel_multiplier =2 ; + } +if (intel_hdmi->color_range) pipe_config->limited_color_range = true;Signature · 6 lines
1.7.9.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
Quoted 13 lines · Daniel Vetter
Quoted 12 lines · On Tue, Aug 19, 2014 at 02:21:21PM -0700, [email protected] wrote:
From: Clint Taylor <[email protected]>
Pixel replicated modes should be 720 horizontal pixel and pixel replicated by the HW across the HDMI cable at 2X pixel clock. Current horizontal resolution of 1440 does not allow pixel duplication to occur and scaling artifacts occur on the TV. HDMI certification 7-26 currently fails for all pixel replicated modes. This change fizes the HDMI certification issues with 480i/576i.
V2: Removed interlace flag from VICs 44 and 45. Will be submitted in another patch. Various other formatting fixes.
Quoted 8 lines
Quoted 6 lines
V3: 576i@200 htotal fixed. Check min and max pixel clocks.
Signed-off-by Clint Taylor <[email protected]>--- drivers/gpu/drm/drm_edid.c | 96 ++++++++++++++++++------------------- drivers/gpu/drm/i915/intel_hdmi.c | 15 ++++--Still plea to split out the i915 change.
Also it's good practice to add all the people who commented on earlier versions of this patch to the in-patch Cc: list. So Ville should be here for this one.
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
Quoted 21 lines · Daniel Vetter
Quoted 20 lines · Daniel Vetter
Quoted 18 lines · On Tue, Aug 19, 2014 at 02:21:21PM -0700, [email protected] wrote:
From: Clint Taylor <[email protected]>
Pixel replicated modes should be 720 horizontal pixel and pixel replicated by the HW across the HDMI cable at 2X pixel clock. Current horizontal resolution of 1440 does not allow pixel duplication to occur and scaling artifacts occur on the TV. HDMI certification 7-26 currently fails for all pixel replicated modes. This change fizes the HDMI certification issues with 480i/576i.
V2: Removed interlace flag from VICs 44 and 45. Will be submitted in another patch. Various other formatting fixes.
V3: 576i@200 htotal fixed. Check min and max pixel clocks.
Signed-off-by Clint Taylor <[email protected]>--- drivers/gpu/drm/drm_edid.c | 96 ++++++++++++++++++------------------- drivers/gpu/drm/i915/intel_hdmi.c | 15 ++++--
Quoted 5 lines
Quoted 1 line
Still plea to split out the i915 change.
Also it's good practice to add all the people who commented on earlier versions of this patch to the in-patch Cc: list. So Ville should be here for this one.
Also I've totally lost track of these now. Please use --in-reply-to when sending revised patches.
Signature · 2 lines
Ville Syrjälä Intel OTC
Quoted 22 lines · Ville Syrjälä
Quoted 21 lines · Daniel Vetter
Quoted 20 lines · Daniel Vetter
Quoted 18 lines · On Tue, Aug 19, 2014 at 02:21:21PM -0700, [email protected] wrote:
From: Clint Taylor <[email protected]>
Pixel replicated modes should be 720 horizontal pixel and pixel replicated by the HW across the HDMI cable at 2X pixel clock. Current horizontal resolution of 1440 does not allow pixel duplication to occur and scaling artifacts occur on the TV. HDMI certification 7-26 currently fails for all pixel replicated modes. This change fizes the HDMI certification issues with 480i/576i.
V2: Removed interlace flag from VICs 44 and 45. Will be submitted in another patch. Various other formatting fixes.
V3: 576i@200 htotal fixed. Check min and max pixel clocks.
Signed-off-by Clint Taylor <[email protected]>--- drivers/gpu/drm/drm_edid.c | 96 ++++++++++++++++++------------------- drivers/gpu/drm/i915/intel_hdmi.c | 15 ++++--
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Still plea to split out the i915 change.
Also it's good practice to add all the people who commented on earlier versions of this patch to the in-patch Cc: list. So Ville should be here for this one.
Also I've totally lost track of these now. Please use --in-reply-to when sending revised patches.
Oh and please use --to --cc etc. also instead of sending the same patch separately to multiple lists.
Signature · 2 lines
Ville Syrjälä Intel OTC
A message that is not in the archive (sent off-list or not yet received): [email protected]
Readding intel-gfx since this is interesting for everyone.
Quoted 6 lines · Clint Taylor
I will attempt to improve my patch submissions process. I also need to start annotating version in the subject field as well.
When using --in_reply_to= do I just use the Message-ID: from the original patch message header or do I use the Message-ID: from the reply asking for the change?
Usually I reply to the previous patch version to avoid threads nesting too badly, but other people reply to the last review comment. It doesn't really matter.
More important is to Cc: all the people (in the commit message to make sure it doesn't get lost, git send-email then takes care of everything) who commented on that patch so that they'll see your updated version.
Quoted 1 line
Sorry for the newbie questions, I'm coming over from the embedded world.
Not at all, this just means our documentation isn't good enough yet.
Cheers, Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
Jani Nikula
maintainerQuoted 4 lines · Daniel Vetter
More important is to Cc: all the people (in the commit message to make sure it doesn't get lost, git send-email then takes care of everything) who commented on that patch so that they'll see your updated version.
git send-email taking care of everything is subject to sendemail.suppresscc and other configuration values. With the git defaults, you need to be careful not to accidentally Cc people, typically when sending a patch privately/internally.
BR,
Jani.
Signature · 1 line
Jani Nikula, Intel Open Source Technology Center
Quoted 6 lines · Daniel Vetter
Readding intel-gfx since this is interesting for everyone.
Quoted 3 lines · Clint Taylor
I will attempt to improve my patch submissions process. I also need to start annotating version in the subject field as well.
Quoted 7 lines
Quoted 3 lines
When using --in_reply_to= do I just use the Message-ID: from the original patch message header or do I use the Message-ID: from the reply asking for the change?
Usually I reply to the previous patch version to avoid threads nesting too badly, but other people reply to the last review comment. It doesn't really matter.
I tend to do the latter, but I must admit the threads sometimes get rather messy, so I think I'll change my ways. The changelog in the patch should anyway keep the story together.
Signature · 2 lines
Ville Syrjälä Intel OTC
Quoted 9 lines · On Tue, Aug 19, 2014 at 02:21:21PM -0700, [email protected] wrote:
From: Clint Taylor <[email protected]>
Pixel replicated modes should be 720 horizontal pixel and pixel replicated by the HW across the HDMI cable at 2X pixel clock. Current horizontal resolution of 1440 does not allow pixel duplication to occur and scaling artifacts occur on the TV. HDMI certification 7-26 currently fails for all pixel replicated modes. This change fizes the HDMI certification issues with 480i/576i.
Quoted 6 lines
V2: Removed interlace flag from VICs 44 and 45. Will be submitted in another patch. Various other formatting fixes.
V3: 576i@200 htotal fixed. Check min and max pixel clocks.
Signed-off-by Clint Taylor <[email protected]>
Assuming you split it up like Daniel wanted you can slap
onto both parts.
Quoted 218 lines
--- drivers/gpu/drm/drm_edid.c | 96 ++++++++++++++++++------------------- drivers/gpu/drm/i915/intel_hdmi.c | 15 ++++-- 2 files changed, 60 insertions(+), 51 deletions(-)drivers/gpu/drm/drm_edid.c +48
-48@@ -632,27 +632,27 @@ static const struct drm_display_mode edid_cea_modes[] = {DRM_MODE_FLAG_PHSYNC |DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_INTERLACE), .vrefresh = 60, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, - /* 6 - 1440x480i@60Hz */ - { DRM_MODE("1440x480i", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1478, -1602 ,1716 ,0 ,480 ,488 ,494 ,525 ,0 , + /* 6 - 720(1440)x480i@60Hz */ + { DRM_MODE("720x480i", DRM_MODE_TYPE_DRIVER, 13500, 720, 739, +801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 60, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 7 - 1440x480i@60Hz */ - { DRM_MODE("1440x480i", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1478, -1602 ,1716 ,0 ,480 ,488 ,494 ,525 ,0 , + /* 7 - 720(1440)x480i@60Hz */ + { DRM_MODE("720x480i", DRM_MODE_TYPE_DRIVER, 13500, 720, 739, +801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 60, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, - /* 8 - 1440x240@60Hz */ - { DRM_MODE("1440x240", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1478, -1602 ,1716 ,0 ,240 ,244 ,247 ,262 ,0 , + /* 8 - 720(1440)x240@60Hz */ + { DRM_MODE("720x240", DRM_MODE_TYPE_DRIVER, 13500, 720, 739, +801 ,858 ,0 ,240 ,244 ,247 ,262 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 60, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 9 - 1440x240@60Hz */ - { DRM_MODE("1440x240", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1478, -1602 ,1716 ,0 ,240 ,244 ,247 ,262 ,0 , + /* 9 - 720(1440)x240@60Hz */ + { DRM_MODE("720x240", DRM_MODE_TYPE_DRIVER, 13500, 720, 739, +801 ,858 ,0 ,240 ,244 ,247 ,262 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 60, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },@@ -714,27 +714,27 @@ static const struct drm_display_mode edid_cea_modes[] = {DRM_MODE_FLAG_PHSYNC |DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_INTERLACE), .vrefresh = 50, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, - /* 21 - 1440x576i@50Hz */ - { DRM_MODE("1440x576i", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1464, -1590 ,1728 ,0 ,576 ,580 ,586 ,625 ,0 , + /* 21 - 720(1440)x576i@50Hz */ + { DRM_MODE("720x576i", DRM_MODE_TYPE_DRIVER, 13500, 720, 732, +795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 50, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 22 - 1440x576i@50Hz */ - { DRM_MODE("1440x576i", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1464, -1590 ,1728 ,0 ,576 ,580 ,586 ,625 ,0 , + /* 22 - 720(1440)x576i@50Hz */ + { DRM_MODE("720x576i", DRM_MODE_TYPE_DRIVER, 13500, 720, 732, +795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 50, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, - /* 23 - 1440x288@50Hz */ - { DRM_MODE("1440x288", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1464, -1590 ,1728 ,0 ,288 ,290 ,293 ,312 ,0 , + /* 23 - 720(1440)x288@50Hz */ + { DRM_MODE("720x288", DRM_MODE_TYPE_DRIVER, 13500, 720, 732, +795 ,864 ,0 ,288 ,290 ,293 ,312 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 50, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 24 - 1440x288@50Hz */ - { DRM_MODE("1440x288", DRM_MODE_TYPE_DRIVER, 27000, 1440, 1464, -1590 ,1728 ,0 ,288 ,290 ,293 ,312 ,0 , + /* 24 - 720(1440)x288@50Hz */ + { DRM_MODE("720x288", DRM_MODE_TYPE_DRIVER, 13500, 720, 732, +795 ,864 ,0 ,288 ,290 ,293 ,312 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 50, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },@@ -837,15 +837,15 @@ static const struct drm_display_mode edid_cea_modes[] = { 796, 864, 0, 576, 581, 586, 625, 0, DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC), .vrefresh = 100, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, -/* 44 - 1440x576i@100Hz */ - {DRM_MODE ("1440x576" ,DRM_MODE_TYPE_DRIVER ,54000 ,1440 ,1464 , -1590 ,1728 ,0 ,576 ,580 ,586 ,625 ,0 , +/* 44 - 720(1440)x576i@100Hz */ + {DRM_MODE ("720x576i" ,DRM_MODE_TYPE_DRIVER ,27000 ,720 ,732 , +795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_DBLCLK), .vrefresh = 100, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 45 - 1440x576i@100Hz */ - { DRM_MODE("1440x576", DRM_MODE_TYPE_DRIVER, 54000, 1440, 1464, -1590 ,1728 ,0 ,576 ,580 ,586 ,625 ,0 , + /* 45 - 720(1440)x576i@100Hz */ + { DRM_MODE("720x576i", DRM_MODE_TYPE_DRIVER, 27000, 720, 732, +795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 100, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },@@ -870,15 +870,15 @@ static const struct drm_display_mode edid_cea_modes[] = { 798, 858, 0, 480, 489, 495, 525, 0, DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC), .vrefresh = 120, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, -/* 50 - 1440x480i@120Hz */ - {DRM_MODE ("1440x480i" ,DRM_MODE_TYPE_DRIVER ,54000 ,1440 ,1478 , -1602 ,1716 ,0 ,480 ,488 ,494 ,525 ,0 , +/* 50 - 720(1440)x480i@120Hz */ + {DRM_MODE ("720x480i" ,DRM_MODE_TYPE_DRIVER ,27000 ,720 ,739 , +801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_INTERLACE | DRM_MODE_FLAG_DBLCLK), .vrefresh = 120, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 51 - 1440x480i@120Hz */ - { DRM_MODE("1440x480i", DRM_MODE_TYPE_DRIVER, 54000, 1440, 1478, -1602 ,1716 ,0 ,480 ,488 ,494 ,525 ,0 , + /* 51 - 720(1440)x480i@120Hz */ + { DRM_MODE("720x480i", DRM_MODE_TYPE_DRIVER, 27000, 720, 739, +801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 120, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },@@ -892,15 +892,15 @@ static const struct drm_display_mode edid_cea_modes[] = { 796, 864, 0, 576, 581, 586, 625, 0, DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC), .vrefresh = 200, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, -/* 54 - 1440x576i@200Hz */ - {DRM_MODE ("1440x576i" ,DRM_MODE_TYPE_DRIVER ,108000 ,1440 ,1464 , -1590 ,1728 ,0 ,576 ,580 ,586 ,625 ,0 , +/* 54 - 720(1440)x576i@200Hz */ + {DRM_MODE ("720x576i" ,DRM_MODE_TYPE_DRIVER ,54000 ,720 ,732 , +795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_INTERLACE | DRM_MODE_FLAG_DBLCLK), .vrefresh = 200, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 55 - 1440x576i@200Hz */ - { DRM_MODE("1440x576i", DRM_MODE_TYPE_DRIVER, 108000, 1440, 1464, -1590 ,1728 ,0 ,576 ,580 ,586 ,625 ,0 , + /* 55 - 720(1440)x576i@200Hz */ + { DRM_MODE("720x576i", DRM_MODE_TYPE_DRIVER, 54000, 720, 732, +795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 200, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },@@ -914,15 +914,15 @@ static const struct drm_display_mode edid_cea_modes[] = { 798, 858, 0, 480, 489, 495, 525, 0, DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC), .vrefresh = 240, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, }, -/* 58 - 1440x480i@240 */ - {DRM_MODE ("1440x480i" ,DRM_MODE_TYPE_DRIVER ,108000 ,1440 ,1478 , -1602 ,1716 ,0 ,480 ,488 ,494 ,525 ,0 , +/* 58 - 720(1440)x480i@240 */ + {DRM_MODE ("720x480i" ,DRM_MODE_TYPE_DRIVER ,54000 ,720 ,739 , +801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_INTERLACE | DRM_MODE_FLAG_DBLCLK), .vrefresh = 240, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, - /* 59 - 1440x480i@240 */ - { DRM_MODE("1440x480i", DRM_MODE_TYPE_DRIVER, 108000, 1440, 1478, -1602 ,1716 ,0 ,480 ,488 ,494 ,525 ,0 , + /* 59 - 720(1440)x480i@240 */ + { DRM_MODE("720x480i", DRM_MODE_TYPE_DRIVER, 54000, 720, 739, +801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 ,DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_INTERLACE |DRM_MODE_FLAG_DBLCLK ), .vrefresh = 240, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9, },drivers/gpu/drm/i915/intel_hdmi.c +12
-3@@ -864,10 +864,15 @@ static enum drm_mode_status intel_hdmi_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { -if (mode->clock >hdmi_portclock_limit (intel_attached_hdmi (connector), - true)) + int clock = mode->clock; + +if (mode->flags &DRM_MODE_FLAG_DBLCLK ) + clock *=2 ; + +if (clock >hdmi_portclock_limit (intel_attached_hdmi (connector), + true))return MODE_CLOCK_HIGH ; -if (mode->clock <20000 ) +if (clock <20000 )return MODE_CLOCK_LOW ;if (mode->flags &DRM_MODE_FLAG_DBLSCAN )@@ -921,6 +926,10 @@ bool intel_hdmi_compute_config(struct intel_encoder *encoder, intel_hdmi->color_range =0 ; } +if (adjusted_mode->flags &DRM_MODE_FLAG_DBLCLK ) { + pipe_config->pixel_multiplier =2 ; + } +if (intel_hdmi->color_range) pipe_config->limited_color_range = true;Signature · 6 lines
1.7.9.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 2 lines
Ville Syrjälä Intel OTC