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:
@@ -1938,6 +1938,32 @@ int msm_get_mixer_count(struct msm_drm_private *priv,
|
||||
return funcs->get_mixer_count(priv->kms, mode, res, num_lm);
|
||||
}
|
||||
|
||||
int msm_get_dsc_count(struct msm_drm_private *priv,
|
||||
u32 hdisplay, u32 *num_dsc)
|
||||
{
|
||||
struct msm_kms *kms;
|
||||
const struct msm_kms_funcs *funcs;
|
||||
|
||||
if (!priv) {
|
||||
DRM_ERROR("invalid drm private struct\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
kms = priv->kms;
|
||||
if (!kms) {
|
||||
DRM_ERROR("invalid msm kms struct\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
funcs = kms->funcs;
|
||||
if (!funcs || !funcs->get_dsc_count) {
|
||||
DRM_ERROR("invalid function pointers\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return funcs->get_dsc_count(priv->kms, hdisplay, num_dsc);
|
||||
}
|
||||
|
||||
static int msm_drm_bind(struct device *dev)
|
||||
{
|
||||
return msm_drm_component_init(dev);
|
||||
|
Reference in New Issue
Block a user