diff --git a/msm/vidc/hfi_common.c b/msm/vidc/hfi_common.c index 0a0d15796195..997d92685e42 100644 --- a/msm/vidc/hfi_common.c +++ b/msm/vidc/hfi_common.c @@ -1738,10 +1738,6 @@ static int venus_hfi_core_init(void *device) __set_ubwc_config(device); - if (dev->res->pm_qos_latency_us) { - pm_qos_add_request(&dev->qos, PM_QOS_CPU_DMA_LATENCY, - dev->res->pm_qos_latency_us); - } d_vpr_h("Core inited successfully\n"); mutex_unlock(&dev->lock); return rc; @@ -1767,9 +1763,6 @@ static int venus_hfi_core_release(void *dev) mutex_lock(&device->lock); d_vpr_h("Core releasing\n"); - if (device->res->pm_qos_latency_us && - pm_qos_request_active(&device->qos)) - pm_qos_remove_request(&device->qos); __resume(device, DEFAULT_SID); __set_state(device, VENUS_STATE_DEINIT); @@ -3809,10 +3802,6 @@ static inline int __suspend(struct venus_hfi_device *device) d_vpr_h("Entering suspend\n"); - if (device->res->pm_qos_latency_us && - pm_qos_request_active(&device->qos)) - pm_qos_remove_request(&device->qos); - rc = __tzbsp_set_video_state(TZBSP_VIDEO_STATE_SUSPEND, DEFAULT_SID); if (rc) { d_vpr_e("Failed to suspend video core %d\n", rc); @@ -3875,11 +3864,6 @@ static inline int __resume(struct venus_hfi_device *device, u32 sid) goto err_reset_core; } - if (device->res->pm_qos_latency_us) { - pm_qos_add_request(&device->qos, PM_QOS_CPU_DMA_LATENCY, - device->res->pm_qos_latency_us); - } - __sys_set_debug(device, (msm_vidc_debug & FW_LOGMASK) >> FW_LOGSHIFT, sid); diff --git a/msm/vidc/hfi_common.h b/msm/vidc/hfi_common.h index 6043db6e7473..216e3c25a5ad 100644 --- a/msm/vidc/hfi_common.h +++ b/msm/vidc/hfi_common.h @@ -8,7 +8,6 @@ #include #include -#include #include #include #include @@ -279,7 +278,6 @@ struct venus_hfi_device { enum hfi_packetization_type packetization_type; struct msm_vidc_cb_info *response_pkt; u8 *raw_packet; - struct pm_qos_request qos; unsigned int skip_pc_count; struct venus_hfi_vpu_ops *vpu_ops; }; diff --git a/msm/vidc/msm_vidc_res_parse.c b/msm/vidc/msm_vidc_res_parse.c index 809597fa4324..756277fb6e63 100644 --- a/msm/vidc/msm_vidc_res_parse.c +++ b/msm/vidc/msm_vidc_res_parse.c @@ -769,9 +769,6 @@ int read_platform_resources_from_drv_data( res->debug_timeout = find_key_value(platform_data, "qcom,debug-timeout"); - res->pm_qos_latency_us = find_key_value(platform_data, - "qcom,pm-qos-latency-us"); - res->max_secure_inst_count = find_key_value(platform_data, "qcom,max-secure-instances"); diff --git a/msm/vidc/msm_vidc_resources.h b/msm/vidc/msm_vidc_resources.h index 9d296e33d63d..3cc9e483fd05 100644 --- a/msm/vidc/msm_vidc_resources.h +++ b/msm/vidc/msm_vidc_resources.h @@ -165,7 +165,6 @@ struct msm_vidc_platform_resources { const char *hfi_version; bool never_unload_fw; bool debug_timeout; - uint32_t pm_qos_latency_us; uint32_t max_inst_count; uint32_t max_secure_inst_count; uint32_t prefetch_pix_buf_count;