Loading drivers/gpu/drm/i915/intel_display.c +10 −10 Original line number Original line Diff line number Diff line Loading @@ -754,8 +754,8 @@ bool intel_pipe_has_type (struct drm_crtc *crtc, int type) return false; return false; } } struct drm_connector * static struct drm_connector * intel_pipe_get_output (struct drm_crtc *crtc) intel_pipe_get_connector (struct drm_crtc *crtc) { { struct drm_device *dev = crtc->dev; struct drm_device *dev = crtc->dev; struct drm_mode_config *mode_config = &dev->mode_config; struct drm_mode_config *mode_config = &dev->mode_config; Loading Loading @@ -2916,7 +2916,7 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc, int dspsize_reg = (plane == 0) ? DSPASIZE : DSPBSIZE; int dspsize_reg = (plane == 0) ? DSPASIZE : DSPBSIZE; int dsppos_reg = (plane == 0) ? DSPAPOS : DSPBPOS; int dsppos_reg = (plane == 0) ? DSPAPOS : DSPBPOS; int pipesrc_reg = (pipe == 0) ? PIPEASRC : PIPEBSRC; int pipesrc_reg = (pipe == 0) ? PIPEASRC : PIPEBSRC; int refclk, num_outputs = 0; int refclk, num_connectors = 0; intel_clock_t clock, reduced_clock; intel_clock_t clock, reduced_clock; u32 dpll = 0, fp = 0, fp2 = 0, dspcntr, pipeconf; u32 dpll = 0, fp = 0, fp2 = 0, dspcntr, pipeconf; bool ok, has_reduced_clock = false, is_sdvo = false, is_dvo = false; bool ok, has_reduced_clock = false, is_sdvo = false, is_dvo = false; Loading Loading @@ -2974,10 +2974,10 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc, break; break; } } num_outputs++; num_connectors++; } } if (is_lvds && dev_priv->lvds_use_ssc && num_outputs < 2) { if (is_lvds && dev_priv->lvds_use_ssc && num_connectors < 2) { refclk = dev_priv->lvds_ssc_freq * 1000; refclk = dev_priv->lvds_ssc_freq * 1000; DRM_DEBUG_KMS("using SSC reference clock of %d MHz\n", DRM_DEBUG_KMS("using SSC reference clock of %d MHz\n", refclk / 1000); refclk / 1000); Loading Loading @@ -3048,7 +3048,7 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc, if (is_edp) { if (is_edp) { struct drm_connector *edp; struct drm_connector *edp; target_clock = mode->clock; target_clock = mode->clock; edp = intel_pipe_get_output(crtc); edp = intel_pipe_get_connector(crtc); intel_edp_link_config(to_intel_encoder(edp), intel_edp_link_config(to_intel_encoder(edp), &lane, &link_bw); &lane, &link_bw); } else { } else { Loading Loading @@ -3230,7 +3230,7 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc, /* XXX: just matching BIOS for now */ /* XXX: just matching BIOS for now */ /* dpll |= PLL_REF_INPUT_TVCLKINBC; */ /* dpll |= PLL_REF_INPUT_TVCLKINBC; */ dpll |= 3; dpll |= 3; else if (is_lvds && dev_priv->lvds_use_ssc && num_outputs < 2) else if (is_lvds && dev_priv->lvds_use_ssc && num_connectors < 2) dpll |= PLLB_REF_INPUT_SPREADSPECTRUMIN; dpll |= PLLB_REF_INPUT_SPREADSPECTRUMIN; else else dpll |= PLL_REF_INPUT_DREFCLK; dpll |= PLL_REF_INPUT_DREFCLK; Loading Loading @@ -3654,9 +3654,9 @@ static void intel_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, * detection. * detection. * * * It will be up to the load-detect code to adjust the pipe as appropriate for * It will be up to the load-detect code to adjust the pipe as appropriate for * its requirements. The pipe will be connected to no other outputs. * its requirements. The pipe will be connected to no other encoders. * * * Currently this code will only succeed if there is a pipe with no outputs * Currently this code will only succeed if there is a pipe with no encoders * configured for it. In the future, it could choose to temporarily disable * configured for it. In the future, it could choose to temporarily disable * some outputs to free up a pipe for its use. * some outputs to free up a pipe for its use. * * Loading Loading @@ -3770,7 +3770,7 @@ void intel_release_load_detect_pipe(struct intel_encoder *intel_encoder, int dpm drm_helper_disable_unused_functions(dev); drm_helper_disable_unused_functions(dev); } } /* Switch crtc and output back off if necessary */ /* Switch crtc and encoder back off if necessary */ if (crtc->enabled && dpms_mode != DRM_MODE_DPMS_ON) { if (crtc->enabled && dpms_mode != DRM_MODE_DPMS_ON) { if (encoder->crtc == crtc) if (encoder->crtc == crtc) encoder_funcs->dpms(encoder, dpms_mode); encoder_funcs->dpms(encoder, dpms_mode); Loading drivers/gpu/drm/i915/intel_sdvo.c +93 −88 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
drivers/gpu/drm/i915/intel_display.c +10 −10 Original line number Original line Diff line number Diff line Loading @@ -754,8 +754,8 @@ bool intel_pipe_has_type (struct drm_crtc *crtc, int type) return false; return false; } } struct drm_connector * static struct drm_connector * intel_pipe_get_output (struct drm_crtc *crtc) intel_pipe_get_connector (struct drm_crtc *crtc) { { struct drm_device *dev = crtc->dev; struct drm_device *dev = crtc->dev; struct drm_mode_config *mode_config = &dev->mode_config; struct drm_mode_config *mode_config = &dev->mode_config; Loading Loading @@ -2916,7 +2916,7 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc, int dspsize_reg = (plane == 0) ? DSPASIZE : DSPBSIZE; int dspsize_reg = (plane == 0) ? DSPASIZE : DSPBSIZE; int dsppos_reg = (plane == 0) ? DSPAPOS : DSPBPOS; int dsppos_reg = (plane == 0) ? DSPAPOS : DSPBPOS; int pipesrc_reg = (pipe == 0) ? PIPEASRC : PIPEBSRC; int pipesrc_reg = (pipe == 0) ? PIPEASRC : PIPEBSRC; int refclk, num_outputs = 0; int refclk, num_connectors = 0; intel_clock_t clock, reduced_clock; intel_clock_t clock, reduced_clock; u32 dpll = 0, fp = 0, fp2 = 0, dspcntr, pipeconf; u32 dpll = 0, fp = 0, fp2 = 0, dspcntr, pipeconf; bool ok, has_reduced_clock = false, is_sdvo = false, is_dvo = false; bool ok, has_reduced_clock = false, is_sdvo = false, is_dvo = false; Loading Loading @@ -2974,10 +2974,10 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc, break; break; } } num_outputs++; num_connectors++; } } if (is_lvds && dev_priv->lvds_use_ssc && num_outputs < 2) { if (is_lvds && dev_priv->lvds_use_ssc && num_connectors < 2) { refclk = dev_priv->lvds_ssc_freq * 1000; refclk = dev_priv->lvds_ssc_freq * 1000; DRM_DEBUG_KMS("using SSC reference clock of %d MHz\n", DRM_DEBUG_KMS("using SSC reference clock of %d MHz\n", refclk / 1000); refclk / 1000); Loading Loading @@ -3048,7 +3048,7 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc, if (is_edp) { if (is_edp) { struct drm_connector *edp; struct drm_connector *edp; target_clock = mode->clock; target_clock = mode->clock; edp = intel_pipe_get_output(crtc); edp = intel_pipe_get_connector(crtc); intel_edp_link_config(to_intel_encoder(edp), intel_edp_link_config(to_intel_encoder(edp), &lane, &link_bw); &lane, &link_bw); } else { } else { Loading Loading @@ -3230,7 +3230,7 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc, /* XXX: just matching BIOS for now */ /* XXX: just matching BIOS for now */ /* dpll |= PLL_REF_INPUT_TVCLKINBC; */ /* dpll |= PLL_REF_INPUT_TVCLKINBC; */ dpll |= 3; dpll |= 3; else if (is_lvds && dev_priv->lvds_use_ssc && num_outputs < 2) else if (is_lvds && dev_priv->lvds_use_ssc && num_connectors < 2) dpll |= PLLB_REF_INPUT_SPREADSPECTRUMIN; dpll |= PLLB_REF_INPUT_SPREADSPECTRUMIN; else else dpll |= PLL_REF_INPUT_DREFCLK; dpll |= PLL_REF_INPUT_DREFCLK; Loading Loading @@ -3654,9 +3654,9 @@ static void intel_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, * detection. * detection. * * * It will be up to the load-detect code to adjust the pipe as appropriate for * It will be up to the load-detect code to adjust the pipe as appropriate for * its requirements. The pipe will be connected to no other outputs. * its requirements. The pipe will be connected to no other encoders. * * * Currently this code will only succeed if there is a pipe with no outputs * Currently this code will only succeed if there is a pipe with no encoders * configured for it. In the future, it could choose to temporarily disable * configured for it. In the future, it could choose to temporarily disable * some outputs to free up a pipe for its use. * some outputs to free up a pipe for its use. * * Loading Loading @@ -3770,7 +3770,7 @@ void intel_release_load_detect_pipe(struct intel_encoder *intel_encoder, int dpm drm_helper_disable_unused_functions(dev); drm_helper_disable_unused_functions(dev); } } /* Switch crtc and output back off if necessary */ /* Switch crtc and encoder back off if necessary */ if (crtc->enabled && dpms_mode != DRM_MODE_DPMS_ON) { if (crtc->enabled && dpms_mode != DRM_MODE_DPMS_ON) { if (encoder->crtc == crtc) if (encoder->crtc == crtc) encoder_funcs->dpms(encoder, dpms_mode); encoder_funcs->dpms(encoder, dpms_mode); Loading
drivers/gpu/drm/i915/intel_sdvo.c +93 −88 File changed.Preview size limit exceeded, changes collapsed. Show changes