File tree Expand file tree Collapse file tree
drivers/gpu/drm/i915/display Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -585,6 +585,10 @@ static void _panel_replay_init_dpcd(struct intel_dp *intel_dp)
585585 struct intel_display * display = to_intel_display (intel_dp );
586586 int ret ;
587587
588+ /* TODO: Enable Panel Replay on MST once it's properly implemented. */
589+ if (intel_dp -> mst_detect == DRM_DP_MST )
590+ return ;
591+
588592 ret = drm_dp_dpcd_read_data (& intel_dp -> aux , DP_PANEL_REPLAY_CAP_SUPPORT ,
589593 & intel_dp -> pr_dpcd , sizeof (intel_dp -> pr_dpcd ));
590594 if (ret < 0 )
@@ -888,7 +892,8 @@ static bool is_dc5_dc6_blocked(struct intel_dp *intel_dp)
888892{
889893 struct intel_display * display = to_intel_display (intel_dp );
890894 u32 current_dc_state = intel_display_power_get_current_dc_state (display );
891- struct drm_vblank_crtc * vblank = & display -> drm -> vblank [intel_dp -> psr .pipe ];
895+ struct intel_crtc * crtc = intel_crtc_for_pipe (display , intel_dp -> psr .pipe );
896+ struct drm_vblank_crtc * vblank = drm_crtc_vblank_crtc (& crtc -> base );
892897
893898 return (current_dc_state != DC_STATE_EN_UPTO_DC5 &&
894899 current_dc_state != DC_STATE_EN_UPTO_DC6 ) ||
You can’t perform that action at this time.
0 commit comments