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>
这个提交包含在:
Amine Najahi
2020-06-07 19:51:11 -04:00
父节点 83860f0642
当前提交 ed868466f5
修改 11 个文件,包含 231 行新增50 行删除

查看文件

@@ -1351,6 +1351,9 @@ int msm_get_mixer_count(struct msm_drm_private *priv,
const struct drm_display_mode *mode,
const struct msm_resource_caps_info *res, u32 *num_lm);
int msm_get_dsc_count(struct msm_drm_private *priv,
u32 hdisplay, u32 *num_dsc);
int msm_get_src_bpc(int chroma_format, int bpc);
#endif /* __MSM_DRV_H__ */