]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Mar 2023 10:52:23 +0000 (11:52 +0100)
commit7acfd98cc21a9b018e8abc76d698816d33acbaf9
tree666f7d3b56e5bceac85d667d98b2aeb5c7b2a04a
parent9a25f1c553c6e311b1bb4b9069d6de659c5000f1
drm/amd/display: Move DCN314 DOMAIN power control to DMCUB

commit 1e4eaf8dff98cbbba1b3e153b344e3a850db84ee upstream.

[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>
Cc: "Limonciello, Mario" <Mario.Limonciello@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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