Lines Matching refs:i915
34 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in intel_tc_port_in_mode() local
35 enum phy phy = intel_port_to_phy(i915, dig_port->base.port); in intel_tc_port_in_mode()
37 return intel_phy_is_tc(i915, phy) && dig_port->tc_mode == mode; in intel_tc_port_in_mode()
57 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in intel_tc_cold_requires_aux_pw() local
59 return (DISPLAY_VER(i915) == 11 && dig_port->tc_legacy_port) || in intel_tc_cold_requires_aux_pw()
60 IS_ALDERLAKE_P(i915); in intel_tc_cold_requires_aux_pw()
66 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in tc_cold_get_power_domain() local
71 return intel_display_power_legacy_aux_domain(i915, dig_port->aux_ch); in tc_cold_get_power_domain()
78 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in tc_cold_block_in_mode() local
82 return intel_display_power_get(i915, *domain); in tc_cold_block_in_mode()
95 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in tc_cold_unblock() local
105 intel_display_power_put(i915, domain, wakeref); in tc_cold_unblock()
111 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in assert_tc_cold_blocked() local
114 enabled = intel_display_power_is_enabled(i915, in assert_tc_cold_blocked()
117 drm_WARN_ON(&i915->drm, !enabled); in assert_tc_cold_blocked()
123 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in tc_port_power_domain() local
124 enum tc_port tc_port = intel_port_to_tc(i915, dig_port->base.port); in tc_port_power_domain()
132 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in assert_tc_port_power_enabled() local
134 drm_WARN_ON(&i915->drm, in assert_tc_port_power_enabled()
135 !intel_display_power_is_enabled(i915, tc_port_power_domain(dig_port))); in assert_tc_port_power_enabled()
140 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in intel_tc_port_get_lane_mask() local
141 struct intel_uncore *uncore = &i915->uncore; in intel_tc_port_get_lane_mask()
147 drm_WARN_ON(&i915->drm, lane_mask == 0xffffffff); in intel_tc_port_get_lane_mask()
156 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in intel_tc_port_get_pin_assignment_mask() local
157 struct intel_uncore *uncore = &i915->uncore; in intel_tc_port_get_pin_assignment_mask()
163 drm_WARN_ON(&i915->drm, pin_mask == 0xffffffff); in intel_tc_port_get_pin_assignment_mask()
172 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in intel_tc_port_fia_max_lane_count() local
182 with_intel_display_power(i915, POWER_DOMAIN_DISPLAY_CORE, wakeref) in intel_tc_port_fia_max_lane_count()
205 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in intel_tc_port_set_fia_lane_count() local
207 struct intel_uncore *uncore = &i915->uncore; in intel_tc_port_set_fia_lane_count()
210 drm_WARN_ON(&i915->drm, in intel_tc_port_set_fia_lane_count()
244 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in tc_port_fixup_legacy_flag() local
257 drm_dbg_kms(&i915->drm, in tc_port_fixup_legacy_flag()
266 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in icl_tc_port_live_status_mask() local
267 struct intel_uncore *uncore = &i915->uncore; in icl_tc_port_live_status_mask()
268 u32 isr_bit = i915->display.hotplug.pch_hpd[dig_port->base.hpd_pin]; in icl_tc_port_live_status_mask()
276 drm_dbg_kms(&i915->drm, in icl_tc_port_live_status_mask()
291 if (!drm_WARN_ON_ONCE(&i915->drm, hweight32(mask) > 1)) in icl_tc_port_live_status_mask()
299 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in adl_tc_port_live_status_mask() local
300 enum tc_port tc_port = intel_port_to_tc(i915, dig_port->base.port); in adl_tc_port_live_status_mask()
301 u32 isr_bit = i915->display.hotplug.pch_hpd[dig_port->base.hpd_pin]; in adl_tc_port_live_status_mask()
302 struct intel_uncore *uncore = &i915->uncore; in adl_tc_port_live_status_mask()
320 if (!drm_WARN_ON(&i915->drm, hweight32(mask) > 1)) in adl_tc_port_live_status_mask()
328 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in tc_port_live_status_mask() local
330 if (IS_ALDERLAKE_P(i915)) in tc_port_live_status_mask()
346 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in icl_tc_phy_status_complete() local
347 struct intel_uncore *uncore = &i915->uncore; in icl_tc_phy_status_complete()
353 drm_dbg_kms(&i915->drm, in icl_tc_phy_status_complete()
371 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in adl_tc_phy_status_complete() local
372 enum tc_port tc_port = intel_port_to_tc(i915, dig_port->base.port); in adl_tc_phy_status_complete()
373 struct intel_uncore *uncore = &i915->uncore; in adl_tc_phy_status_complete()
378 drm_dbg_kms(&i915->drm, in adl_tc_phy_status_complete()
389 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in tc_phy_status_complete() local
391 if (IS_ALDERLAKE_P(i915)) in tc_phy_status_complete()
400 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in icl_tc_phy_take_ownership() local
401 struct intel_uncore *uncore = &i915->uncore; in icl_tc_phy_take_ownership()
407 drm_dbg_kms(&i915->drm, in icl_tc_phy_take_ownership()
427 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in adl_tc_phy_take_ownership() local
428 struct intel_uncore *uncore = &i915->uncore; in adl_tc_phy_take_ownership()
444 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in tc_phy_take_ownership() local
446 if (IS_ALDERLAKE_P(i915)) in tc_phy_take_ownership()
454 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in icl_tc_phy_is_owned() local
455 struct intel_uncore *uncore = &i915->uncore; in icl_tc_phy_is_owned()
461 drm_dbg_kms(&i915->drm, in icl_tc_phy_is_owned()
472 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in adl_tc_phy_is_owned() local
473 struct intel_uncore *uncore = &i915->uncore; in adl_tc_phy_is_owned()
483 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in tc_phy_is_owned() local
485 if (IS_ALDERLAKE_P(i915)) in tc_phy_is_owned()
505 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in icl_tc_phy_connect() local
510 drm_dbg_kms(&i915->drm, "Port %s: PHY not ready\n", in icl_tc_phy_connect()
518 drm_dbg_kms(&i915->drm, "Port %s: PHY ownership not required (live status %02x)\n", in icl_tc_phy_connect()
524 !drm_WARN_ON(&i915->drm, dig_port->tc_legacy_port)) in icl_tc_phy_connect()
529 drm_WARN_ON(&i915->drm, max_lanes != 4); in icl_tc_phy_connect()
540 drm_dbg_kms(&i915->drm, "Port %s: PHY sudden disconnect\n", in icl_tc_phy_connect()
546 drm_dbg_kms(&i915->drm, in icl_tc_phy_connect()
586 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in icl_tc_phy_is_connected() local
589 drm_dbg_kms(&i915->drm, "Port %s: PHY status not complete\n", in icl_tc_phy_is_connected()
595 if (IS_ALDERLAKE_P(i915) && dig_port->tc_mode == TC_PORT_TBT_ALT) in icl_tc_phy_is_connected()
599 drm_dbg_kms(&i915->drm, "Port %s: PHY not owned\n", in icl_tc_phy_is_connected()
612 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in intel_tc_port_get_current_mode() local
617 drm_WARN_ON(&i915->drm, !tc_phy_status_complete(dig_port))) in intel_tc_port_get_current_mode()
624 if (!drm_WARN_ON(&i915->drm, live_mode == TC_PORT_TBT_ALT)) in intel_tc_port_get_current_mode()
645 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in intel_tc_port_reset_mode() local
648 intel_display_power_flush_work(i915); in intel_tc_port_reset_mode()
654 aux_powered = intel_display_power_is_enabled(i915, aux_domain); in intel_tc_port_reset_mode()
655 drm_WARN_ON(&i915->drm, aux_powered); in intel_tc_port_reset_mode()
662 drm_dbg_kms(&i915->drm, "Port %s: TC port mode reset (%s -> %s)\n", in intel_tc_port_reset_mode()
717 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in tc_port_is_enabled() local
721 return intel_de_read(i915, DDI_BUF_CTL(dig_port->base.port)) & in tc_port_is_enabled()
734 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in intel_tc_port_init_mode() local
740 drm_WARN_ON(&i915->drm, dig_port->tc_mode != TC_PORT_DISCONNECTED); in intel_tc_port_init_mode()
741 drm_WARN_ON(&i915->drm, dig_port->tc_lock_wakeref); in intel_tc_port_init_mode()
742 drm_WARN_ON(&i915->drm, dig_port->tc_link_refcount); in intel_tc_port_init_mode()
767 drm_dbg_kms(&i915->drm, "Port %s: init mode (%s)\n", in intel_tc_port_init_mode()
786 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in intel_tc_port_sanitize_mode() local
797 drm_WARN_ON(&i915->drm, dig_port->tc_link_refcount != 1); in intel_tc_port_sanitize_mode()
800 drm_dbg_kms(&i915->drm, in intel_tc_port_sanitize_mode()
811 drm_dbg_kms(&i915->drm, in intel_tc_port_sanitize_mode()
822 drm_dbg_kms(&i915->drm, "Port %s: sanitize mode (%s)\n", in intel_tc_port_sanitize_mode()
857 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in __intel_tc_port_lock() local
867 drm_WARN_ON(&i915->drm, dig_port->tc_mode == TC_PORT_DISCONNECTED); in __intel_tc_port_lock()
868 drm_WARN_ON(&i915->drm, dig_port->tc_mode != TC_PORT_TBT_ALT && in __intel_tc_port_lock()
948 tc_has_modular_fia(struct drm_i915_private *i915, struct intel_digital_port *dig_port) in tc_has_modular_fia() argument
954 if (!INTEL_INFO(i915)->display.has_modular_fia) in tc_has_modular_fia()
959 val = intel_uncore_read(&i915->uncore, PORT_TX_DFLEXDPSP(FIA1)); in tc_has_modular_fia()
963 drm_WARN_ON(&i915->drm, val == 0xffffffff); in tc_has_modular_fia()
969 tc_port_load_fia_params(struct drm_i915_private *i915, struct intel_digital_port *dig_port) in tc_port_load_fia_params() argument
972 enum tc_port tc_port = intel_port_to_tc(i915, port); in tc_port_load_fia_params()
978 if (tc_has_modular_fia(i915, dig_port)) { in tc_port_load_fia_params()
989 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in intel_tc_port_init() local
991 enum tc_port tc_port = intel_port_to_tc(i915, port); in intel_tc_port_init()
993 if (drm_WARN_ON(&i915->drm, tc_port == TC_PORT_NONE)) in intel_tc_port_init()
1004 tc_port_load_fia_params(i915, dig_port); in intel_tc_port_init()