drm/amd/display: Only use ODM2:1 policy for high pixel rate displays
authorAlvin Lee <Alvin.Lee2@amd.com>
Wed, 21 Sep 2022 16:04:39 +0000 (12:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Sep 2022 13:41:46 +0000 (09:41 -0400)
commit047783cdd5f604d87398236beb4971abb4d43293
tree43f11da0328b91b56fbc7e73afc9cbbcdf5568ca
parent1e939ea1bf4917095575fe4ff1a42578ff234605
drm/amd/display: Only use ODM2:1 policy for high pixel rate displays

We only gain a benefit of using the ODM2:1 dynamic policy if it allow us
to decrease DISPCLK to use the VMIN freq.  If the display config can
already achieve VMIN DISPCLK freq without ODM2:1, don't apply the
policy.

Signed-off-by: Alvin Lee <Alvin.Lee2@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@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/dcn32/dcn32_resource.h