File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
drivers/gpu/drm/i915/display Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -1517,7 +1517,10 @@ static bool _psr_compute_config(struct intel_dp *intel_dp,
1517
1517
return true;
1518
1518
}
1519
1519
1520
- static bool _panel_replay_compute_config (struct intel_dp * intel_dp )
1520
+ static bool
1521
+ _panel_replay_compute_config (struct intel_dp * intel_dp ,
1522
+ const struct intel_crtc_state * crtc_state ,
1523
+ const struct drm_connector_state * conn_state )
1521
1524
{
1522
1525
struct drm_i915_private * i915 = dp_to_i915 (intel_dp );
1523
1526
@@ -1529,6 +1532,18 @@ static bool _panel_replay_compute_config(struct intel_dp *intel_dp)
1529
1532
return false;
1530
1533
}
1531
1534
1535
+ if (!intel_dp_is_edp (intel_dp ))
1536
+ return true;
1537
+
1538
+ /* Remaining checks are for eDP only */
1539
+
1540
+ /* 128b/132b Panel Replay is not supported on eDP */
1541
+ if (intel_dp_is_uhbr (crtc_state )) {
1542
+ drm_dbg_kms (& i915 -> drm ,
1543
+ "Panel Replay is not supported with 128b/132b\n" );
1544
+ return false;
1545
+ }
1546
+
1532
1547
return true;
1533
1548
}
1534
1549
@@ -1567,7 +1582,9 @@ void intel_psr_compute_config(struct intel_dp *intel_dp,
1567
1582
return ;
1568
1583
}
1569
1584
1570
- crtc_state -> has_panel_replay = _panel_replay_compute_config (intel_dp );
1585
+ crtc_state -> has_panel_replay = _panel_replay_compute_config (intel_dp ,
1586
+ crtc_state ,
1587
+ conn_state );
1571
1588
1572
1589
crtc_state -> has_psr = crtc_state -> has_panel_replay ? true :
1573
1590
_psr_compute_config (intel_dp , crtc_state );
You can’t perform that action at this time.
0 commit comments