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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user