]> git.infradead.org Git - nvme.git/commit
drm/amd/display: Add IPS checks before dcn register access
authorRoman Li <roman.li@amd.com>
Tue, 9 Jan 2024 22:31:33 +0000 (17:31 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Jan 2024 21:00:24 +0000 (16:00 -0500)
commit196107eb1e1557df25e1425bbfb53e0f7588b80a
treed7f8897c49ced6298e3133f273d1385aafa41104
parent955406e6fd241b2936e7f033a03b2956922c8f32
drm/amd/display: Add IPS checks before dcn register access

[Why]
With IPS enabled a system hangs once PSR is active.
PSR active triggers transition to IPS2 state.
While in IPS2 an access to dcn registers results in hard hang.
Existing check doesn't cover for PSR sequence.

[How]
Safeguard register access by disabling idle optimization in atomic commit
and crtc scanout. It will be re-enabled on next vblank.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Roman Li <roman.li@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c