]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Move DCN314 DOMAIN power control to DMCUB
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Mon, 23 Jan 2023 19:59:28 +0000 (14:59 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Feb 2023 20:47:20 +0000 (15:47 -0500)
commite383b12709e32d6494c948422070c2464b637e44
tree8d18b773140e40cfae4e06ecc3cdd23501e8ed02
parent230dd6bb61173acccdfbf855ba907286e850cd67
drm/amd/display: Move DCN314 DOMAIN power control to DMCUB

[Why]
DOMAIN power gating control is now required to be done via firmware
due to interlock with other power features. This is to avoid
intermittent issues in the LB memories.

[How]
If the firmware supports the command then use the new firmware as
the sequence can avoid potential display corruption issues.

The command will be ignored on firmware that does not support DOMAIN
power control and the pipes will remain always on - frequent PG cycling
can cause the issue to occur on the old sequence, so we should avoid it.

Reviewed-by: Hansen Dsouza <hansen.dsouza@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_hwseq.c
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_hwseq.h
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_init.c
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h