drm/amd/display: DCN401 full power down in HW init if any link enabled
authorJoshua Aberback <joshua.aberback@amd.com>
Thu, 30 May 2024 20:38:18 +0000 (16:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:18:27 +0000 (16:18 -0400)
commit52971387a05aa012eb73db78f39ae6c6dd47e080
treeaceae56c474d75864e0912bdae0c821456264815
parent3a3be8bb97e14339af7a11b3ee822e268960ead6
drm/amd/display: DCN401 full power down in HW init if any link enabled

[Why]
During HW init, certain operations the driver performs are invalid on
enabled hardware in an unknown state (for example, setting all clock
values to minimum when the GPU is actively driving a display). There is
already code present to call HWSS->power_down during init when any link
is enabled in HW, but that function pointer is unpopulated for most asics.
We want to enable this codepath for DCN401, as it resolves the issue with
being unable to drive certain display configs on adapter re-enable, and we
can restore boot optimizations.

[How]
 - add power_down HWSS function for DCN401
 - remove debug bit to disable boot optimizations for DCN401

Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Joshua Aberback <joshua.aberback@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_init.c
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c