diff options
author | Jani Nikula <jani.nikula@intel.com> | 2014-09-02 09:33:52 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-09-03 05:05:33 -0400 |
commit | f9cac7218a6e18f5f95917c9e3331ee7f063c439 (patch) | |
tree | 8e9f9f05db05abe08b86a51eaa6be4a88dceba54 /drivers/gpu/drm | |
parent | 09dba00c0091984626b48e1e2439f25e437c03ae (diff) |
drm/i915: debug sink dpms aux errors also on enable
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 9d655a6b1c61..0c565f95c6e9 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c | |||
@@ -1553,8 +1553,6 @@ void intel_dp_sink_dpms(struct intel_dp *intel_dp, int mode) | |||
1553 | if (mode != DRM_MODE_DPMS_ON) { | 1553 | if (mode != DRM_MODE_DPMS_ON) { |
1554 | ret = drm_dp_dpcd_writeb(&intel_dp->aux, DP_SET_POWER, | 1554 | ret = drm_dp_dpcd_writeb(&intel_dp->aux, DP_SET_POWER, |
1555 | DP_SET_POWER_D3); | 1555 | DP_SET_POWER_D3); |
1556 | if (ret != 1) | ||
1557 | DRM_DEBUG_DRIVER("failed to write sink power state\n"); | ||
1558 | } else { | 1556 | } else { |
1559 | /* | 1557 | /* |
1560 | * When turning on, we need to retry for 1ms to give the sink | 1558 | * When turning on, we need to retry for 1ms to give the sink |
@@ -1568,6 +1566,10 @@ void intel_dp_sink_dpms(struct intel_dp *intel_dp, int mode) | |||
1568 | msleep(1); | 1566 | msleep(1); |
1569 | } | 1567 | } |
1570 | } | 1568 | } |
1569 | |||
1570 | if (ret != 1) | ||
1571 | DRM_DEBUG_KMS("failed to %s sink power state\n", | ||
1572 | mode == DRM_MODE_DPMS_ON ? "enable" : "disable"); | ||
1571 | } | 1573 | } |
1572 | 1574 | ||
1573 | static bool intel_dp_get_hw_state(struct intel_encoder *encoder, | 1575 | static bool intel_dp_get_hw_state(struct intel_encoder *encoder, |