diff options
| author | Hugo Sales <hugo@hsal.es> | 2026-10-29 16:54:20 +0000 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-11-18 01:47:25 -0500 |
| commit | 09b6bf1a04cc6bbcbb8bb29fa1e38fa8a9f8d1dc (patch) | |
| tree | d763c0e8e23e7ee3f2c00ff8cbeb3de916a8b7b7 /tools/perf/scripts/python | |
| parent | 264b67a79010cd3ffa85603d85e594867a45a01d (diff) | |
drm/amd/display: Take every stream out of self-refresh before a modeset
Commit 3c108046e1d6 ("drm/amd/display: Add power module on Linux")
dropped amdgpu_dm_psr_disable_all() and amdgpu_dm_replay_disable_all()
from amdgpu_dm_commit_streams(). Since then, a modeset only disables
self-refresh on the CRTCs in the commit, so an eDP on another CRTC stays
in PSR through dc_commit_streams()
Commit 6ee90e88b976 ("drm/amd/display: PSR eDP p-state warning occurs
intermittently after unplug DP") added that disable-all for this very
case. With it gone, turning off or unplugging an HDMI monitor while the
eDP is in PSR hangs DMUB on a Cezanne laptop (DCN 2.1), on the first
try:
dc_dmub_srv_log_diagnostic_data: DMCUB error
Error queueing DMUB command: status=2
The eDP then stays frozen until a GPU reset
Do the same through the power module's events. When a CRTC that is or
was active needs a modeset, raise the PSR and Replay pause events on
every stream mod_power tracks and wait for self-refresh to exit, before
amdgpu_dm_mod_power_update_streams() changes the stream set. Clear them
on the commit's streams after amdgpu_dm_mod_power_setup_streams(), since
enabling a stream clears psr_feature_enabled until then. Use
psr_event_pause and replay_event_pause rather than the hw_programming
events, which a fast update on the eDP can clear in
amdgpu_dm_enable_self_refresh() while the modeset is still running
Fixes: 3c108046e1d6 ("drm/amd/display: Add power module on Linux")
Reviewed-by: Ray Wu <ray.wu@amd.com>
Signed-off-by: Hugo Sales <hugo@hsal.es>
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 5d90fdb959505b5f42f2dec699521ac56b4174be)
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
