disp: msm: sde: expose cdm block count through connector

Expose the number of cdm blocks available through the connector
capabilities. Add CDM to the topology_control table, so usermode
can use the property to reserve the CDM block during modeset.
Additionally, fix a error code return during CDM block reservation
failure in sde resource manager.

Change-Id: Ib42ca4e8614076a8e5df77d8abc77a9e73674390
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
This commit is contained in:
Veera Sundaram Sankaran
2022-09-06 11:06:02 -07:00
committed by Gerrit - the friendly Code Review server
parent 4afb745c53
commit 8602fee9f8
4 changed files with 12 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
*/
@@ -114,6 +115,7 @@ enum sde_rm_topology_group {
* @SDE_RM_TOPCTL_CWB : Require layer mixers with CWB capabilities
* @SDE_RM_TOPCTL_DCWB : Require layer mixers with DCWB capabilities
* @SDE_RM_TOPCTL_DNSC_BLUR : Require writeback with downscale blur capabilities
* @SDE_RM_TOPCTL_CDM : Require writeback with CDM capabilities
*/
enum sde_rm_topology_control {
SDE_RM_TOPCTL_RESERVE_LOCK,
@@ -123,6 +125,7 @@ enum sde_rm_topology_control {
SDE_RM_TOPCTL_CWB,
SDE_RM_TOPCTL_DCWB,
SDE_RM_TOPCTL_DNSC_BLUR,
SDE_RM_TOPCTL_CDM,
};
/**