]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: update odm mode validation to be in line with policy
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Fri, 30 Aug 2019 20:32:13 +0000 (16:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Oct 2019 20:29:23 +0000 (16:29 -0400)
commit89c7e9b5e4f5f3260f8369c59f98feee81aed20a
tree8aa8fbdfb4505d8f993ed5e51d7878ecf87d6d13
parent2f6f39d4941630b5c3786262e12447f5c8808b15
drm/amd/display: update odm mode validation to be in line with policy

Previously 8k30 worked with dsc and odm combine due to a workaround that ran
the formula a second time with dsc support enable should dsc validation fail.
This worked when clocks were low enough for formula to enable odm to lower
voltage, however now broke due to increased clocks.

This change updates the ODM combine policy within the formula to properly
reflect our current policy within DC, only enabling ODM when we have to, as
well as adding a check for viewport width when dsc is enabled.

As a side effect the redundant call to dml when odm is required is now
unnecessary.

Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c