drm/amd/display: Disable PG on NV12
authorAlvin Lee <alvin.lee2@amd.com>
Tue, 4 Feb 2020 20:19:21 +0000 (15:19 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2020 16:03:05 +0000 (11:03 -0500)
commit3c9de4da021c7c2aaa421b5c37057890348bd58a
tree0d9d6d2f749936a3b3d4a43bbc4ca0e8f3809b28
parentddde28a5f31613c535609805296fd32367850390
drm/amd/display: Disable PG on NV12

[Why]
According to HW team, PG is dropped for NV12, but programming
the registers will still cause power to be consumed, so don't
program for NV12.

[How]
Set function pointer to NULL if NV12

Signed-off-by: Alvin Lee <alvin.lee2@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c