Loading Documentation/devicetree/bindings/display/msm/sde.txt +3 −0 Original line number Diff line number Diff line Loading @@ -123,6 +123,8 @@ Optional properties: - qcom,sde-ubwc-version: Property to specify the UBWC feature version. - qcom,sde-ubwc-static: Property to specify the default UBWC static configuration value. - qcom,sde-ubwc-bw-calc-version: A u32 property to specify version of UBWC bandwidth calculation algorithm - qcom,sde-ubwc-swizzle: Property to specify the default UBWC swizzle configuration value. - qcom,sde-smart-panel-align-mode: A u32 property to specify the align mode for Loading Loading @@ -557,6 +559,7 @@ Example: qcom,sde-ubwc-version = <0x100>; qcom,sde-ubwc-static = <0x100>; qcom,sde-ubwc-swizzle = <0>; qcom,sde-ubwc-bw-calc-version = <0x1>; qcom,sde-smart-panel-align-mode = <0xd>; qcom,sde-panic-per-pipe; qcom,sde-has-src-split; Loading drivers/gpu/drm/msm/sde/sde_crtc.c +4 −0 Original line number Diff line number Diff line Loading @@ -5205,6 +5205,10 @@ static void sde_crtc_install_properties(struct drm_crtc *crtc, sde_kms_info_add_keyint(info, "min_prefill_lines", catalog->perf.min_prefill_lines); if (catalog->ubwc_bw_calc_version) sde_kms_info_add_keyint(info, "ubwc_bw_calc_ver", catalog->ubwc_bw_calc_version); msm_property_set_blob(&sde_crtc->property_info, &sde_crtc->blob_info, info->data, SDE_KMS_INFO_DATALEN(info), CRTC_PROP_INFO); Loading drivers/gpu/drm/msm/sde/sde_hw_catalog.c +6 −0 Original line number Diff line number Diff line Loading @@ -154,6 +154,7 @@ enum sde_prop { DEST_SCALER, SMART_PANEL_ALIGN_MODE, MACROTILE_MODE, UBWC_BW_CALC_VERSION, SDE_PROP_MAX, }; Loading Loading @@ -425,6 +426,8 @@ static struct sde_prop_type sde_prop[] = { {SMART_PANEL_ALIGN_MODE, "qcom,sde-smart-panel-align-mode", false, PROP_TYPE_U32}, {MACROTILE_MODE, "qcom,sde-macrotile-mode", false, PROP_TYPE_U32}, {UBWC_BW_CALC_VERSION, "qcom,sde-ubwc-bw-calc-version", false, PROP_TYPE_U32}, }; static struct sde_prop_type sde_perf_prop[] = { Loading Loading @@ -2918,6 +2921,9 @@ static int sde_parse_dt(struct device_node *np, struct sde_mdss_cfg *cfg) if (!prop_exists[MACROTILE_MODE]) cfg->macrotile_mode = DEFAULT_SDE_UBWC_MACROTILE_MODE; cfg->ubwc_bw_calc_version = PROP_VALUE_ACCESS(prop_value, UBWC_BW_CALC_VERSION, 0); cfg->mdp[0].ubwc_static = PROP_VALUE_ACCESS(prop_value, UBWC_STATIC, 0); if (!prop_exists[UBWC_STATIC]) cfg->mdp[0].ubwc_static = DEFAULT_SDE_UBWC_STATIC; Loading drivers/gpu/drm/msm/sde/sde_hw_catalog.h +2 −0 Original line number Diff line number Diff line Loading @@ -1001,6 +1001,7 @@ struct sde_perf_cfg { * @has_cdp Client driven prefetch feature status * @has_wb_ubwc UBWC feature supported on WB * @ubwc_version UBWC feature version (0x0 for not supported) * @ubwc_bw_calc_version indicate how UBWC BW has to be calculated * @has_sbuf indicate if stream buffer is available * @sbuf_headroom stream buffer headroom in lines * @sbuf_prefill stream buffer prefill default in lines Loading Loading @@ -1030,6 +1031,7 @@ struct sde_mdss_cfg { bool has_dim_layer; bool has_wb_ubwc; u32 ubwc_version; u32 ubwc_bw_calc_version; bool has_sbuf; u32 sbuf_headroom; u32 sbuf_prefill; Loading Loading
Documentation/devicetree/bindings/display/msm/sde.txt +3 −0 Original line number Diff line number Diff line Loading @@ -123,6 +123,8 @@ Optional properties: - qcom,sde-ubwc-version: Property to specify the UBWC feature version. - qcom,sde-ubwc-static: Property to specify the default UBWC static configuration value. - qcom,sde-ubwc-bw-calc-version: A u32 property to specify version of UBWC bandwidth calculation algorithm - qcom,sde-ubwc-swizzle: Property to specify the default UBWC swizzle configuration value. - qcom,sde-smart-panel-align-mode: A u32 property to specify the align mode for Loading Loading @@ -557,6 +559,7 @@ Example: qcom,sde-ubwc-version = <0x100>; qcom,sde-ubwc-static = <0x100>; qcom,sde-ubwc-swizzle = <0>; qcom,sde-ubwc-bw-calc-version = <0x1>; qcom,sde-smart-panel-align-mode = <0xd>; qcom,sde-panic-per-pipe; qcom,sde-has-src-split; Loading
drivers/gpu/drm/msm/sde/sde_crtc.c +4 −0 Original line number Diff line number Diff line Loading @@ -5205,6 +5205,10 @@ static void sde_crtc_install_properties(struct drm_crtc *crtc, sde_kms_info_add_keyint(info, "min_prefill_lines", catalog->perf.min_prefill_lines); if (catalog->ubwc_bw_calc_version) sde_kms_info_add_keyint(info, "ubwc_bw_calc_ver", catalog->ubwc_bw_calc_version); msm_property_set_blob(&sde_crtc->property_info, &sde_crtc->blob_info, info->data, SDE_KMS_INFO_DATALEN(info), CRTC_PROP_INFO); Loading
drivers/gpu/drm/msm/sde/sde_hw_catalog.c +6 −0 Original line number Diff line number Diff line Loading @@ -154,6 +154,7 @@ enum sde_prop { DEST_SCALER, SMART_PANEL_ALIGN_MODE, MACROTILE_MODE, UBWC_BW_CALC_VERSION, SDE_PROP_MAX, }; Loading Loading @@ -425,6 +426,8 @@ static struct sde_prop_type sde_prop[] = { {SMART_PANEL_ALIGN_MODE, "qcom,sde-smart-panel-align-mode", false, PROP_TYPE_U32}, {MACROTILE_MODE, "qcom,sde-macrotile-mode", false, PROP_TYPE_U32}, {UBWC_BW_CALC_VERSION, "qcom,sde-ubwc-bw-calc-version", false, PROP_TYPE_U32}, }; static struct sde_prop_type sde_perf_prop[] = { Loading Loading @@ -2918,6 +2921,9 @@ static int sde_parse_dt(struct device_node *np, struct sde_mdss_cfg *cfg) if (!prop_exists[MACROTILE_MODE]) cfg->macrotile_mode = DEFAULT_SDE_UBWC_MACROTILE_MODE; cfg->ubwc_bw_calc_version = PROP_VALUE_ACCESS(prop_value, UBWC_BW_CALC_VERSION, 0); cfg->mdp[0].ubwc_static = PROP_VALUE_ACCESS(prop_value, UBWC_STATIC, 0); if (!prop_exists[UBWC_STATIC]) cfg->mdp[0].ubwc_static = DEFAULT_SDE_UBWC_STATIC; Loading
drivers/gpu/drm/msm/sde/sde_hw_catalog.h +2 −0 Original line number Diff line number Diff line Loading @@ -1001,6 +1001,7 @@ struct sde_perf_cfg { * @has_cdp Client driven prefetch feature status * @has_wb_ubwc UBWC feature supported on WB * @ubwc_version UBWC feature version (0x0 for not supported) * @ubwc_bw_calc_version indicate how UBWC BW has to be calculated * @has_sbuf indicate if stream buffer is available * @sbuf_headroom stream buffer headroom in lines * @sbuf_prefill stream buffer prefill default in lines Loading Loading @@ -1030,6 +1031,7 @@ struct sde_mdss_cfg { bool has_dim_layer; bool has_wb_ubwc; u32 ubwc_version; u32 ubwc_bw_calc_version; bool has_sbuf; u32 sbuf_headroom; u32 sbuf_prefill; Loading