drm/amd/display: Enable ODM combine default policy
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Thu, 7 Jul 2022 18:28:03 +0000 (14:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 Jul 2022 22:25:12 +0000 (18:25 -0400)
commit9a23fcf79dc647627b3780284a156cc6e7bbd7c4
tree54fe859024d30ae4110e01deddad9c120806c731
parent5531786537e4fcd82a221b0bd01ce375942b3854
drm/amd/display: Enable ODM combine default policy

[Why&How]
Output Data Mapping is a power saving feature that allows us to run at
reduced DPP and DISP clocks compared to what could be achieved with a
single pipe.

Set the default policy for single display use case to use 2 to 1 ODM combine.
The options are queried by DC and appropriate register programming sequence
is initiated to enable this feature.

Fixes: 235c67634230 ("drm/amd/display: add DCN32/321 specific files for Display Core")
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c
drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c