diff options
author | Dave Airlie <airlied@redhat.com> | 2014-05-06 18:56:03 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-05-06 18:56:03 -0400 |
commit | 508200c5c076b20436a04cb264168095fe1b1f1a (patch) | |
tree | aa28dfc18ee585b46933ef0622590c6a7cb0a232 /drivers/gpu/drm/i915/intel_display.c | |
parent | 9eabb9110094d92e112d1027e2f05133fa4ae602 (diff) | |
parent | 9bbfd20abe5025adbb0ac75160bd2e41158a9e83 (diff) |
Merge tag 'topc/core-stuff-2014-05-05' of git://anongit.freedesktop.org/drm-intel into drm-fixes
Some more i915 fixes. There's still some DP issues we are looking into,
but wanted to get these moving.
* tag 'topc/core-stuff-2014-05-05' of git://anongit.freedesktop.org/drm-intel:
drm/i915: don't try DP_LINK_BW_5_4 on HSW ULX
drm/i915: Sanitize the enable_ppgtt module option once
drm/i915: Break encoder->crtc link separately in intel_sanitize_crtc()
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 69bcc42a0e44..48aa516a1ac0 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -11395,15 +11395,6 @@ void intel_modeset_init(struct drm_device *dev) | |||
11395 | } | 11395 | } |
11396 | } | 11396 | } |
11397 | 11397 | ||
11398 | static void | ||
11399 | intel_connector_break_all_links(struct intel_connector *connector) | ||
11400 | { | ||
11401 | connector->base.dpms = DRM_MODE_DPMS_OFF; | ||
11402 | connector->base.encoder = NULL; | ||
11403 | connector->encoder->connectors_active = false; | ||
11404 | connector->encoder->base.crtc = NULL; | ||
11405 | } | ||
11406 | |||
11407 | static void intel_enable_pipe_a(struct drm_device *dev) | 11398 | static void intel_enable_pipe_a(struct drm_device *dev) |
11408 | { | 11399 | { |
11409 | struct intel_connector *connector; | 11400 | struct intel_connector *connector; |
@@ -11485,8 +11476,17 @@ static void intel_sanitize_crtc(struct intel_crtc *crtc) | |||
11485 | if (connector->encoder->base.crtc != &crtc->base) | 11476 | if (connector->encoder->base.crtc != &crtc->base) |
11486 | continue; | 11477 | continue; |
11487 | 11478 | ||
11488 | intel_connector_break_all_links(connector); | 11479 | connector->base.dpms = DRM_MODE_DPMS_OFF; |
11480 | connector->base.encoder = NULL; | ||
11489 | } | 11481 | } |
11482 | /* multiple connectors may have the same encoder: | ||
11483 | * handle them and break crtc link separately */ | ||
11484 | list_for_each_entry(connector, &dev->mode_config.connector_list, | ||
11485 | base.head) | ||
11486 | if (connector->encoder->base.crtc == &crtc->base) { | ||
11487 | connector->encoder->base.crtc = NULL; | ||
11488 | connector->encoder->connectors_active = false; | ||
11489 | } | ||
11490 | 11490 | ||
11491 | WARN_ON(crtc->active); | 11491 | WARN_ON(crtc->active); |
11492 | crtc->base.enabled = false; | 11492 | crtc->base.enabled = false; |
@@ -11568,6 +11568,8 @@ static void intel_sanitize_encoder(struct intel_encoder *encoder) | |||
11568 | drm_get_encoder_name(&encoder->base)); | 11568 | drm_get_encoder_name(&encoder->base)); |
11569 | encoder->disable(encoder); | 11569 | encoder->disable(encoder); |
11570 | } | 11570 | } |
11571 | encoder->base.crtc = NULL; | ||
11572 | encoder->connectors_active = false; | ||
11571 | 11573 | ||
11572 | /* Inconsistent output/port/pipe state happens presumably due to | 11574 | /* Inconsistent output/port/pipe state happens presumably due to |
11573 | * a bug in one of the get_hw_state functions. Or someplace else | 11575 | * a bug in one of the get_hw_state functions. Or someplace else |
@@ -11578,8 +11580,8 @@ static void intel_sanitize_encoder(struct intel_encoder *encoder) | |||
11578 | base.head) { | 11580 | base.head) { |
11579 | if (connector->encoder != encoder) | 11581 | if (connector->encoder != encoder) |
11580 | continue; | 11582 | continue; |
11581 | 11583 | connector->base.dpms = DRM_MODE_DPMS_OFF; | |
11582 | intel_connector_break_all_links(connector); | 11584 | connector->base.encoder = NULL; |
11583 | } | 11585 | } |
11584 | } | 11586 | } |
11585 | /* Enabled encoders without active connectors will be fixed in | 11587 | /* Enabled encoders without active connectors will be fixed in |