Loading Documentation/devicetree/bindings/media/video/msm-vidc.txt +3 −0 Original line number Diff line number Diff line Loading @@ -79,6 +79,8 @@ Optional properties: scalable = 0x1 (if the driver should vary the clock's frequency based on load) - qcom,sw-power-collapse = A bool indicating if video hardware core can be power collapsed in idle state. - qcom,slave-side-cp = A bool indicating the content protection mode for an ongoing video session. It is true for targets where the mode is slave side. - qcom,never-unload-fw = A bool indicating if video firmware should be not be unloaded after all active sessions have closed. Once a new session starts up after this, the firmware will be ready to go. This should be set on platforms Loading Loading @@ -214,6 +216,7 @@ Example: <0x1fe 0x2>; qcom,enable-thermal-mitigation; qcom,use-non-secure-pil; qcom,slave-side-cp; qcom,use_dynamic_bw_update; qcom,fw-bias = <0xe000000>; msm_vidc_cb1: msm_vidc_cb1 { Loading drivers/media/platform/msm/vidc/msm_smem.c +6 −0 Original line number Diff line number Diff line Loading @@ -326,6 +326,12 @@ static int alloc_ion_mem(struct smem_client *client, size_t size, u32 align, ion_flags |= ION_FLAG_SECURE | secure_flag; heap_mask = ION_HEAP(ION_SECURE_HEAP_ID); if (client->res->slave_side_cp) { heap_mask = ION_HEAP(ION_CP_MM_HEAP_ID); size = ALIGN(size, SZ_1M); align = ALIGN(size, SZ_1M); } } trace_msm_smem_buffer_ion_op_start("ALLOC", (u32)buffer_type, Loading drivers/media/platform/msm/vidc/msm_vidc_res_parse.c +5 −0 Original line number Diff line number Diff line Loading @@ -858,6 +858,11 @@ int read_platform_resources_from_dt( of_property_read_u32(pdev->dev.of_node, "qcom,pm-qos-latency-us", &res->pm_qos_latency_us); res->slave_side_cp = of_property_read_bool(pdev->dev.of_node, "qcom,slave-side-cp"); dprintk(VIDC_DBG, "Slave side cp = %s\n", res->slave_side_cp ? "yes" : "no"); return rc; err_setup_legacy_cb: Loading drivers/media/platform/msm/vidc/msm_vidc_resources.h +1 −0 Original line number Diff line number Diff line Loading @@ -156,6 +156,7 @@ struct msm_vidc_platform_resources { bool use_non_secure_pil; bool sw_power_collapsible; bool sys_idle_indicator; bool slave_side_cp; struct list_head context_banks; bool thermal_mitigable; const char *fw_name; Loading Loading
Documentation/devicetree/bindings/media/video/msm-vidc.txt +3 −0 Original line number Diff line number Diff line Loading @@ -79,6 +79,8 @@ Optional properties: scalable = 0x1 (if the driver should vary the clock's frequency based on load) - qcom,sw-power-collapse = A bool indicating if video hardware core can be power collapsed in idle state. - qcom,slave-side-cp = A bool indicating the content protection mode for an ongoing video session. It is true for targets where the mode is slave side. - qcom,never-unload-fw = A bool indicating if video firmware should be not be unloaded after all active sessions have closed. Once a new session starts up after this, the firmware will be ready to go. This should be set on platforms Loading Loading @@ -214,6 +216,7 @@ Example: <0x1fe 0x2>; qcom,enable-thermal-mitigation; qcom,use-non-secure-pil; qcom,slave-side-cp; qcom,use_dynamic_bw_update; qcom,fw-bias = <0xe000000>; msm_vidc_cb1: msm_vidc_cb1 { Loading
drivers/media/platform/msm/vidc/msm_smem.c +6 −0 Original line number Diff line number Diff line Loading @@ -326,6 +326,12 @@ static int alloc_ion_mem(struct smem_client *client, size_t size, u32 align, ion_flags |= ION_FLAG_SECURE | secure_flag; heap_mask = ION_HEAP(ION_SECURE_HEAP_ID); if (client->res->slave_side_cp) { heap_mask = ION_HEAP(ION_CP_MM_HEAP_ID); size = ALIGN(size, SZ_1M); align = ALIGN(size, SZ_1M); } } trace_msm_smem_buffer_ion_op_start("ALLOC", (u32)buffer_type, Loading
drivers/media/platform/msm/vidc/msm_vidc_res_parse.c +5 −0 Original line number Diff line number Diff line Loading @@ -858,6 +858,11 @@ int read_platform_resources_from_dt( of_property_read_u32(pdev->dev.of_node, "qcom,pm-qos-latency-us", &res->pm_qos_latency_us); res->slave_side_cp = of_property_read_bool(pdev->dev.of_node, "qcom,slave-side-cp"); dprintk(VIDC_DBG, "Slave side cp = %s\n", res->slave_side_cp ? "yes" : "no"); return rc; err_setup_legacy_cb: Loading
drivers/media/platform/msm/vidc/msm_vidc_resources.h +1 −0 Original line number Diff line number Diff line Loading @@ -156,6 +156,7 @@ struct msm_vidc_platform_resources { bool use_non_secure_pil; bool sw_power_collapsible; bool sys_idle_indicator; bool slave_side_cp; struct list_head context_banks; bool thermal_mitigable; const char *fw_name; Loading