drm/i915: vlv: fix VGA hotplug after modeset
Subsystems (2)
PATCH 1/1 drm/i915: vlv: fix VGA hotplug after modeset
Since
commit 912d812e84cea8689a2bf3dd13b11dfe191f0f1e
Author: Daniel Vetter <[email protected]> Date: Thu Oct 11 20:08:23 2012 +0200
drm/i915/crt: don't set HOTPLUG bits on !PCH
on VLV we don't detect any VGA unplug event after a modeset, since there we reset the ADPA hotplug bits. Fix it by preserving the hotplug bits on VLV as well.
Signed-off-by Imre Deak <[email protected]>
--- drivers/gpu/drm/i915/intel_crt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_crt.c +1 -1
@@ -274,7 +274,7 @@ static void intel_crt_mode_set(struct intel_encoder *encoder)struct drm_display_mode *adjusted_mode = &crtc->config.adjusted_mode;u32 adpa; -if (HAS_PCH_SPLIT (dev)) +if (HAS_PCH_SPLIT (dev) ||IS_VALLEYVIEW (dev)) adpa =ADPA_HOTPLUG_BITS ;else adpa =0 ;
Signature · 1 line
1.8.4
Daniel Vetter
AppliedQuoted 6 lines · Imre Deak
Since
commit
912d812e84cea8689a2bf3dd13b11dfe191f0f1eAuthor: Daniel Vetter <[email protected]> Date: Thu Oct 11 20:08:23 2012 +0200
Quoted 7 lines
drm/i915/crt: don't set HOTPLUG bits on !PCH
on VLV we don't detect any VGA unplug event after a modeset, since there we reset the ADPA hotplug bits. Fix it by preserving the hotplug bits on VLV as well.
Signed-off-by Imre Deak <[email protected]>
Queued for -next (with a bikeshed to make it consistent with Chris' equivalent fix in intel_crt_reset), thanks for the patch. -Daniel
Quoted 24 lines
--- drivers/gpu/drm/i915/intel_crt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/intel_crt.c +1
-1@@ -274,7 +274,7 @@ static void intel_crt_mode_set(struct intel_encoder *encoder)struct drm_display_mode *adjusted_mode = &crtc->config.adjusted_mode;u32 adpa; -if (HAS_PCH_SPLIT (dev)) +if (HAS_PCH_SPLIT (dev) ||IS_VALLEYVIEW (dev)) adpa =ADPA_HOTPLUG_BITS ;else adpa =0 ;Signature · 6 lines
1.8.4 _______________________________________________ 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