drm/i915: make SDVO TV-out work for multifunction devices
Subsystems (3)
PATCH 1/1 drm/i915: make SDVO TV-out work for multifunction devices
This is the functional backport of upstream commit 09ede5414f0215461c933032630bf9c3a61a8ba3 Original commit message below. Backport has been tested by the bug reporter, please consider applying to all stable kernels.
We need to track this correctly. While at it shovel the boolean to track whether the sdvo is in tv mode or not into pipe_config.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=36997
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=63609
--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 10 -SUBLEVEL = 4 +SUBLEVEL = 5 EXTRAVERSION = NAME = Unicycling Gorilla
Signature · 1 line
1.8.3.2
PATCH 1/1 drm/i915: make SDVO TV-out work for multifunction devices v2
This is the functional backport of upstream commit 09ede5414f0215461c933032630bf9c3a61a8ba3 Original commit message below. Backport has been tested by the bug reporter, please consider applying to all stable kernels.
We need to track this correctly. While at it shovel the boolean to track whether the sdvo is in tv mode or not into pipe_config.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=36997
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=63609
---
backport v2: Fix up the git fail from v1 and actually add the right changes. I suck.
-Daniel
--- drivers/gpu/drm/i915/intel_display.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/intel_display.c +5 -3
@@ -4333,7 +4333,8 @@ static void vlv_update_pll(struct intel_crtc *crtc)static void i9xx_update_pll (struct intel_crtc *crtc,intel_clock_t *reduced_clock, -int num_connectors) +int num_connectors, +bool needs_tv_clock) {struct drm_device *dev = crtc->base.dev;struct drm_i915_private *dev_priv = dev->dev_private;
@@ -4391,7 +4392,7 @@ static void i9xx_update_pll(struct intel_crtc *crtc,if (INTEL_INFO (dev)->gen >=4 ) dpll |= (6 <<PLL_LOAD_PULSE_PHASE_SHIFT ); -if (is_sdvo &&intel_pipe_has_type (&crtc->base,INTEL_OUTPUT_TVOUT )) +if (is_sdvo && needs_tv_clock) dpll |=PLL_REF_INPUT_TVCLKINBC ;else if (intel_pipe_has_type (&crtc->base,INTEL_OUTPUT_TVOUT ))/* XXX: just matching BIOS for now */
@@ -4716,7 +4717,8 @@ static int i9xx_crtc_mode_set(struct drm_crtc *crtc,else i9xx_update_pll (intel_crtc, has_reduced_clock ? &reduced_clock :NULL , - num_connectors); + num_connectors, + is_sdvo && is_tv);/* Set up the display plane register */ dspcntr =DISPPLANE_GAMMA_ENABLE ;
Signature · 1 line
1.8.3.2
Re: [PATCH] drm/i915: make SDVO TV-out work for multifunction devices v2
Quoted 11 lines · Daniel Vetter
This is the functional backport of upstream commit
09ede5414f0215461c933032630bf9c3a61a8ba3Original commit message below. Backport has been tested by the bug reporter, please consider applying to all stable kernels.We need to track this correctly. While at it shovel the boolean to track whether the sdvo is in tv mode or not into
pipe_config.Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=36997
Tested-by Pierre Assal <[email protected]>Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=63609
Quoted 8 lines
Tested-by cancan,feng <[email protected]>Reviewed-by Jani Nikula <[email protected]>Signed-off-by Daniel Vetter <[email protected]>---
backport v2: Fix up the git fail from v1 and actually add the right changes. I suck.
Heh, no worries, it was funny :)
now applied, thanks.
greg k-h