Revert "drm/amd: Keep display off while going into S4"
Subsystems (3)
PATCH 1/1 Revert "drm/amd: Keep display off while going into S4"
commit 68bfdc8dc0a1a ("drm/amd: Keep display off while going into S4") attempted to keep displays off during the S4 sequence by not resuming display IP. This however leads to hangs because DRM clients such as the console can try to access registers and cause a hang.
Fixes 68bfdc8dc0a1a ("drm/amd: Keep display off while going into S4")
Signed-off-by Mario Limonciello <[email protected]>
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0 -5
@@ -3469,11 +3469,6 @@ static int dm_resume(struct amdgpu_ip_block *ip_block)return 0 ; } - -/* leave display off for S4 sequence */ -if (adev->in_s4) -return 0 ; -/* Recreate dc_state - DC invalidates it when setting power state to S3. */ dc_state_release (dm_state->context); dm_state->context =dc_state_create (dm->dc,NULL );
Signature · 1 line
2.49.0
Quoted 10 lines · Mario Limonciello
commit
68bfdc8dc0a1a("drm/amd: Keep display off while going into S4") attempted to keep displays off during the S4 sequence by not resuming display IP. This however leads to hangs because DRM clients such as the console can try to access registers and cause a hang.Fixes 68bfdc8dc0a1a ("drm/amd: Keep display off while going into S4")Signed-off-by Mario Limonciello <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Quoted 23 lines
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 ----- 1 file changed, 5 deletions(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0
-6@@ -3469,11 +3469,6 @@ static int dm_resume(struct amdgpu_ip_block *ip_block)return 0 ; } - -/* leave display off for S4 sequence */ -if (adev->in_s4) -return 0 ; -/* Recreate dc_state - DC invalidates it when setting power state to S3. */ dc_state_release (dm_state->context); dm_state->context =dc_state_create (dm->dc,NULL ); --2.49.0