Signed-off-by: Adam Jackson <ajax at redhat.com> --- drivers/gpu/drm/i915/intel_sdvo.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index 3003fb2..82de0b0 100644 --- a/drivers/gpu/drm/i915/intel_sdvo.c +++ b/drivers/gpu/drm/i915/intel_sdvo.c @@ -1174,6 +1174,18 @@ static int intel_sdvo_mode_valid(struct drm_connector *connector, return MODE_PANEL; } + if (mode->vtotal - mode->vdisplay < 3) + return MODE_VBLANK_NARROW; + + if (mode->vsync_end - mode->vsync_start < 1) + return MODE_VSYNC_NARROW; + + if (mode->htotal - mode->hdisplay < 16) + return MODE_HBLANK_NARROW; + + if (mode->hsync_end - mode->hsync_start < 16) + return MODE_HSYNC_NARROW; + return MODE_OK; } -- 1.7.6.4