mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
drm/i915/lttpr: Enable Extended Wake Timeout
Usually retimers take around 30 to 40ms to exit all devices from sleep state. Extended wake timeout mechanism helps to give that additional time. --v2 -Grant the requested time only if greater than 1ms [Arun/Jani] -Reframe commit message [Arun] --v3 -Move the function to drm_core [Dmitry/Jani] Spec: DP v2.1 Section 3.6.12.3 Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com> Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com> Acked-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250122053358.1545039-4-suraj.kandpal@intel.com
This commit is contained in:
parent
eaf53ac490
commit
242d9bf59a
|
|
@ -2546,6 +2546,7 @@ static void mtl_ddi_pre_enable_dp(struct intel_atomic_state *state,
|
|||
{
|
||||
struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
|
||||
bool is_mst = intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST);
|
||||
bool transparent_mode;
|
||||
|
||||
intel_dp_set_link_params(intel_dp,
|
||||
crtc_state->port_clock,
|
||||
|
|
@ -2600,6 +2601,9 @@ static void mtl_ddi_pre_enable_dp(struct intel_atomic_state *state,
|
|||
if (!is_mst)
|
||||
intel_dp_set_power(intel_dp, DP_SET_POWER_D0);
|
||||
|
||||
transparent_mode = intel_dp_lttpr_transparent_mode_enabled(intel_dp);
|
||||
drm_dp_lttpr_wake_timeout_setup(&intel_dp->aux, transparent_mode);
|
||||
|
||||
intel_dp_configure_protocol_converter(intel_dp, crtc_state);
|
||||
if (!is_mst)
|
||||
intel_dp_sink_enable_decompression(state,
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ intel_dp_set_lttpr_transparent_mode(struct intel_dp *intel_dp, bool enable)
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool intel_dp_lttpr_transparent_mode_enabled(struct intel_dp *intel_dp)
|
||||
bool intel_dp_lttpr_transparent_mode_enabled(struct intel_dp *intel_dp)
|
||||
{
|
||||
return intel_dp->lttpr_common_caps[DP_PHY_REPEATER_MODE -
|
||||
DP_LT_TUNABLE_PHY_REPEATER_FIELD_DATA_STRUCTURE_REV] ==
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ struct intel_dp;
|
|||
|
||||
int intel_dp_read_dprx_caps(struct intel_dp *intel_dp, u8 dpcd[DP_RECEIVER_CAP_SIZE]);
|
||||
int intel_dp_init_lttpr_and_dprx_caps(struct intel_dp *intel_dp);
|
||||
bool intel_dp_lttpr_transparent_mode_enabled(struct intel_dp *intel_dp);
|
||||
|
||||
void intel_dp_link_training_set_mode(struct intel_dp *intel_dp,
|
||||
int link_rate, bool is_vrr);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user