]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use the fixed pixel clock for eDP in intel_dp_set_m_n()
authorTakashi Iwai <tiwai@suse.de>
Mon, 18 Mar 2013 10:25:36 +0000 (11:25 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 18 Mar 2013 10:25:36 +0000 (11:25 +0100)
commita633675f3bc1968def9adaea707ece2a9a479e59
tree3f77f0d1d0be0c02273399d7befbe593f7bd465e
parentdcecfc44695221a1586847cbe0c29973a92986c9
drm/i915: Use the fixed pixel clock for eDP in intel_dp_set_m_n()

The eDP output on HP Z1 is still broken when X is started even after
fixing the infinite link-train loop.  The regression was introduced in
3.6 kernel for cleaning up the mode clock handling code in intel_dp.c
by the commit [f0d2388c: drm/i915: adjusted_mode->clock in the dp
mode_fix].

In the past, the clock of the reference mode was modified in
intel_dp_mode_fixup() in the case of eDP fixed clock, and this clock was
used for calculating in intel_dp_set_m_n().  This override was removed,
thus the wrong mode clock is used for the calculation, resulting in a
psychedelic smoking output in the end.

This patch corrects the clock to be used in the place.

v1->v2: Use intel_edp_target_clock() for checking eDP fixed clock
instead of open code as in ironlake_set_m_n().

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c