drm/amd/display: Don't map ATOM_ENABLE to ATOM_INIT
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Mon, 20 Jan 2020 19:56:31 +0000 (14:56 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Feb 2020 16:50:48 +0000 (11:50 -0500)
[Why]
In DCN hardware sequencer we do actually call ATOM_INIT correctly per
pipe. The workaround is not necessary for command table offloading.

[How]
Drop the workaround since it's not needed.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Chris Park <Chris.Park@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/bios/command_table2.c

index c38f75a56129cc90a5fcea1b750595ebaed072aa..8edc2506d49e7b1838287a69875ab62429e6774b 100644 (file)
@@ -711,10 +711,6 @@ static void enable_disp_power_gating_dmcub(
        power_gating.header.sub_type = DMUB_CMD__VBIOS_ENABLE_DISP_POWER_GATING;
        power_gating.power_gating.pwr = *pwr;
 
-       /* ATOM_ENABLE is old API in DMUB */
-       if (power_gating.power_gating.pwr.enable == ATOM_ENABLE)
-               power_gating.power_gating.pwr.enable = ATOM_INIT;
-
        dc_dmub_srv_cmd_queue(dmcub, &power_gating.header);
        dc_dmub_srv_cmd_execute(dmcub);
        dc_dmub_srv_wait_idle(dmcub);