disp: msm: dp: Extend mode filtering to support 8K

Currently DP driver determines if a mode is DSC capable
based on a DTSI entry and the required number of DSC
to support it. This approach does not scale when there
is an overlap in DSC requirement between DSI displays
and external DP display, thus causing one of the display to
report modes that cannot be supported.

This change compares the resources reserved for DP driver
calculated at initialization time and the currently available
ones to determine the correct number of resources that DP driver
can use. It also adds DSC and topology filtering logic and moves
DSC hardware specific from DP driver to SDE driver.

Change-Id: I8e601de33422b7c6d786826f7bfe152c4af8a6b5
Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
This commit is contained in:
Amine Najahi
2020-06-07 19:51:11 -04:00
parent 83860f0642
commit ed868466f5
11 changed files with 231 additions and 50 deletions

View File

@@ -722,27 +722,13 @@ static int dp_parser_mst(struct dp_parser *parser)
static void dp_parser_dsc(struct dp_parser *parser)
{
int rc;
struct device *dev = &parser->pdev->dev;
parser->dsc_feature_enable = of_property_read_bool(dev->of_node,
"qcom,dsc-feature-enable");
rc = of_property_read_u32(dev->of_node,
"qcom,max-dp-dsc-blks", &parser->max_dp_dsc_blks);
if (rc || !parser->max_dp_dsc_blks)
parser->dsc_feature_enable = false;
rc = of_property_read_u32(dev->of_node,
"qcom,max-dp-dsc-input-width-pixs",
&parser->max_dp_dsc_input_width_pixs);
if (rc || !parser->max_dp_dsc_input_width_pixs)
parser->dsc_feature_enable = false;
DP_DEBUG("dsc parsing successful. dsc:%d, blks:%d, width:%d\n",
parser->dsc_feature_enable,
parser->max_dp_dsc_blks,
parser->max_dp_dsc_input_width_pixs);
DP_DEBUG("dsc parsing successful. dsc:%d\n",
parser->dsc_feature_enable);
}
static void dp_parser_fec(struct dp_parser *parser)