Commit e73c1486 authored by Vandita Kulkarni's avatar Vandita Kulkarni Committed by Jani Nikula

drm/i915/bios: Fix the timing parameters

Fix htotal and vtotal parameters derived from DTD block of VBT. The
values miss the back porch.

Fixes: 33ef6d4f ("drm/i915/vbt: Handle generic DTD block")
Signed-off-by: default avatarVandita Kulkarni <vandita.kulkarni@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200124125829.16973-1-vandita.kulkarni@intel.com
(cherry picked from commit ad278f35)
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 1788fdf1
...@@ -357,14 +357,16 @@ parse_generic_dtd(struct drm_i915_private *dev_priv, ...@@ -357,14 +357,16 @@ parse_generic_dtd(struct drm_i915_private *dev_priv,
panel_fixed_mode->hdisplay + dtd->hfront_porch; panel_fixed_mode->hdisplay + dtd->hfront_porch;
panel_fixed_mode->hsync_end = panel_fixed_mode->hsync_end =
panel_fixed_mode->hsync_start + dtd->hsync; panel_fixed_mode->hsync_start + dtd->hsync;
panel_fixed_mode->htotal = panel_fixed_mode->hsync_end; panel_fixed_mode->htotal =
panel_fixed_mode->hdisplay + dtd->hblank;
panel_fixed_mode->vdisplay = dtd->vactive; panel_fixed_mode->vdisplay = dtd->vactive;
panel_fixed_mode->vsync_start = panel_fixed_mode->vsync_start =
panel_fixed_mode->vdisplay + dtd->vfront_porch; panel_fixed_mode->vdisplay + dtd->vfront_porch;
panel_fixed_mode->vsync_end = panel_fixed_mode->vsync_end =
panel_fixed_mode->vsync_start + dtd->vsync; panel_fixed_mode->vsync_start + dtd->vsync;
panel_fixed_mode->vtotal = panel_fixed_mode->vsync_end; panel_fixed_mode->vtotal =
panel_fixed_mode->vdisplay + dtd->vblank;
panel_fixed_mode->clock = dtd->pixel_clock; panel_fixed_mode->clock = dtd->pixel_clock;
panel_fixed_mode->width_mm = dtd->width_mm; panel_fixed_mode->width_mm = dtd->width_mm;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment