Lines Matching +full:active +full:-

1 // SPDX-License-Identifier: MIT
29 struct intel_connector *connector = to_intel_connector(conn_state->connector); in intel_connector_verify_state()
30 struct drm_i915_private *i915 = to_i915(connector->base.dev); in intel_connector_verify_state()
32 drm_dbg_kms(&i915->drm, "[CONNECTOR:%d:%s]\n", in intel_connector_verify_state()
33 connector->base.base.id, connector->base.name); in intel_connector_verify_state()
35 if (connector->get_hw_state(connector)) { in intel_connector_verify_state()
44 I915_STATE_WARN(i915, !crtc_state->hw.active, in intel_connector_verify_state()
45 "connector is active, but attached crtc isn't\n"); in intel_connector_verify_state()
47 if (!encoder || encoder->type == INTEL_OUTPUT_DP_MST) in intel_connector_verify_state()
51 conn_state->best_encoder != &encoder->base, in intel_connector_verify_state()
54 I915_STATE_WARN(i915, conn_state->crtc != encoder->base.crtc, in intel_connector_verify_state()
57 I915_STATE_WARN(i915, crtc_state && crtc_state->hw.active, in intel_connector_verify_state()
58 "attached crtc is active, but connector isn't\n"); in intel_connector_verify_state()
59 I915_STATE_WARN(i915, !crtc_state && conn_state->best_encoder, in intel_connector_verify_state()
72 for_each_new_connector_in_state(&state->base, connector, new_conn_state, i) { in verify_connector_state()
73 struct drm_encoder *encoder = connector->encoder; in verify_connector_state()
76 if (new_conn_state->crtc != &crtc->base) in verify_connector_state()
84 I915_STATE_WARN(to_i915(connector->dev), new_conn_state->best_encoder != encoder, in verify_connector_state()
91 struct drm_i915_private *i915 = to_i915(crtc_state->uapi.crtc->dev); in intel_pipe_config_sanity_check()
93 if (crtc_state->has_pch_encoder) { in intel_pipe_config_sanity_check()
95 &crtc_state->fdi_m_n); in intel_pipe_config_sanity_check()
96 int dotclock = crtc_state->hw.adjusted_mode.crtc_clock; in intel_pipe_config_sanity_check()
103 drm_WARN(&i915->drm, abs(fdi_dotclock - dotclock) > 1, in intel_pipe_config_sanity_check()
112 struct drm_i915_private *i915 = to_i915(state->base.dev); in verify_encoder_state()
118 for_each_intel_encoder(&i915->drm, encoder) { in verify_encoder_state()
122 drm_dbg_kms(&i915->drm, "[ENCODER:%d:%s]\n", in verify_encoder_state()
123 encoder->base.base.id, in verify_encoder_state()
124 encoder->base.name); in verify_encoder_state()
126 for_each_oldnew_connector_in_state(&state->base, connector, old_conn_state, in verify_encoder_state()
128 if (old_conn_state->best_encoder == &encoder->base) in verify_encoder_state()
131 if (new_conn_state->best_encoder != &encoder->base) in verify_encoder_state()
138 new_conn_state->crtc != encoder->base.crtc, in verify_encoder_state()
145 I915_STATE_WARN(i915, !!encoder->base.crtc != enabled, in verify_encoder_state()
147 !!encoder->base.crtc, enabled); in verify_encoder_state()
149 if (!encoder->base.crtc) { in verify_encoder_state()
150 bool active; in verify_encoder_state() local
152 active = encoder->get_hw_state(encoder, &pipe); in verify_encoder_state()
153 I915_STATE_WARN(i915, active, in verify_encoder_state()
164 struct drm_device *dev = crtc->base.dev; in verify_crtc_state()
176 drm_dbg_kms(&i915->drm, "[CRTC:%d:%s]\n", crtc->base.base.id, in verify_crtc_state()
177 crtc->base.name); in verify_crtc_state()
179 hw_crtc_state->hw.enable = sw_crtc_state->hw.enable; in verify_crtc_state()
184 if (IS_I830(i915) && hw_crtc_state->hw.active) in verify_crtc_state()
185 hw_crtc_state->hw.active = sw_crtc_state->hw.active; in verify_crtc_state()
188 sw_crtc_state->hw.active != hw_crtc_state->hw.active, in verify_crtc_state()
189 "crtc active state doesn't match with hw state (expected %i, found %i)\n", in verify_crtc_state()
190 sw_crtc_state->hw.active, hw_crtc_state->hw.active); in verify_crtc_state()
192 I915_STATE_WARN(i915, crtc->active != sw_crtc_state->hw.active, in verify_crtc_state()
193 "transitional active state does not match atomic hw state (expected %i, found %i)\n", in verify_crtc_state()
194 sw_crtc_state->hw.active, crtc->active); in verify_crtc_state()
198 for_each_encoder_on_crtc(dev, &master_crtc->base, encoder) { in verify_crtc_state()
200 bool active; in verify_crtc_state() local
202 active = encoder->get_hw_state(encoder, &pipe); in verify_crtc_state()
203 I915_STATE_WARN(i915, active != sw_crtc_state->hw.active, in verify_crtc_state()
204 "[ENCODER:%i] active %i with crtc active %i\n", in verify_crtc_state()
205 encoder->base.base.id, active, in verify_crtc_state()
206 sw_crtc_state->hw.active); in verify_crtc_state()
208 I915_STATE_WARN(i915, active && master_crtc->pipe != pipe, in verify_crtc_state()
212 if (active) in verify_crtc_state()
216 if (!sw_crtc_state->hw.active) in verify_crtc_state()
229 intel_crtc_destroy_state(&crtc->base, &hw_crtc_state->uapi); in verify_crtc_state()